ANALYSIS_PATH: Pfad, unter dem Sie die Analyseausgabe gespeichert haben.
OUTPUT_ARTIFACTS_PATH: Pfad, unter dem Sie die erstellten Artefakte speichern möchten.
Migrationsartefakte für WebSphere-Arbeitslasten erstellen
Zum Erstellen von Migrationsartefakten für WebSphere-Arbeitslasten müssen Sie neben dem Pfad für die Analyseausgabe und dem Pfad, unter dem die erstellten Artefakte gespeichert werden sollen, auch den Pfad zur Datei binaryAppScanner.jar angeben, die Sie beim Erstellen des Migrationsplans eingerichtet haben.
Führen Sie den folgenden Befehl aus, um Migrationsartefakte zu erstellen:
Ersetzen Sie PATH_TO_BINARYAPPSCANNER durch den Pfad zur Datei binaryAppScanner.jar. Wenn Sie beispielsweise beim Einrichten von binaryAppScanner.jar als Zielverzeichnis /tmp angegeben haben, ist sie unter /tmp/wamt/binaryAppScanner.jar zu finden.
Erstellte Artefakte prüfen
Die erstellten Migrationsartefakte sind unter dem angegebenen Ausgabepfad verfügbar. Je nach Plug-in und Migrationsplan enthalten die erstellten Artefakte ein oder mehrere Dockerfiles, die zum Erstellen von Container-Images verwendet werden, sowie eine oder mehrere Kubernetes-Deployment-Spezifikationen.
Darüber hinaus erstellt die Migrate to Containers-Befehlszeile eine Skaffold-Konfiguration, mit der Sie alle generierten Images in einem einzigen Schritt erstellen und bereitstellen können.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-31 (UTC)."],[],[],null,["# Execute the migration\n=====================\n\nThis page describes how to generate the migration artifacts which you can use\nto deploy your workloads to the target cluster.\n\nGenerate migration artifacts\n----------------------------\n\nAfter you've customized your migration plan, to generate the artifacts, run the\nfollowing command: \n\n ./m2c generate -i \u003cvar translate=\"no\"\u003eANALYSIS_PATH\u003c/var\u003e -o \u003cvar translate=\"no\"\u003eOUTPUT_ARTIFACTS_PATH\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eANALYSIS_PATH\u003c/var\u003e: the path where you saved the analysis output\n- \u003cvar translate=\"no\"\u003eOUTPUT_ARTIFACTS_PATH\u003c/var\u003e: the path where you want to save the generated artifacts\n\n### Generate migration artifacts for WebSphere workloads\n\nTo generate migration artifacts for WebSphere workloads, in addition to the\nanalysis output path and the path where you want to save the generated\nartifacts, you also need to specify the path to the `binaryAppScanner.jar` file\nthat you had set up when you [created the migration plan](/migrate/containers/docs/m2c-cli/create-a-migration-plan#create_a_migration_plan_for_websphere_workloads).\n\nTo generate migration artifacts, run the following command: \n\n ./m2c generate \\\n -i \u003cvar translate=\"no\"\u003eANALYSIS_PATH\u003c/var\u003e \\\n -o \u003cvar translate=\"no\"\u003eOUTPUT_ARTIFACTS_PATH\u003c/var\u003e \\\n --volume \u003cvar translate=\"no\"\u003ePATH_TO_BINARYAPPSCANNER\u003c/var\u003e:/binaryAppScanner.jar\n\nReplace \u003cvar translate=\"no\"\u003ePATH_TO_BINARYAPPSCANNER\u003c/var\u003e with the\npath to the `binaryAppScanner.jar` file. For example, if you specified `/tmp`\nas your target directory while [setting up the `binaryAppScanner.jar`](/migrate/containers/docs/m2c-cli/create-a-migration-plan#set_up_the_binaryappscannerjar), then it is available\nat `/tmp/wamt/binaryAppScanner.jar`.\n\nReview the generated artifacts\n------------------------------\n\nThe generated migration artifacts are available in the\nspecified output path. Depending on your plugin and migration plan, the\ngenerated artifacts contain one or more Dockerfiles that are used to build\ncontainer images, and one or more Kubernetes deployment specs.\n\nAdditionally, Migrate to Containers CLI generates a Skaffold configuration that you can\nuse to build and deploy all of the generated images in a single step.\n\nWhat's next\n-----------\n\n- Learn more about the [migration artifacts](/migrate/containers/docs/review-deployment-files)."]]