Generating an Application Docker Image Locally

Before you beginInstall Docker and ensure it is running properly.
Note: Generating the default Docker image from Visual Studio Code is supported only on the Linux platform because it requires a Linux binary, which cannot be generated from other platforms, such as macOS and Windows, due to no support for cross-compilation. To generate a Docker image on Windows or macOS, you must use a Dockerfile.
Note: The default Docker image generated from Visual Studio Code extension is a non-production image and meant for testing and debugging. It terminates after 24 hours. To generate a production Docker image, either use a docker file or see Building Flogo App Executable and Docker Image Using Flogo - App Build CLI.

To generate an application Docker image, perform the following steps:

  1. Choose an app for which you want to build an application Docker image and run as an application Docker container.
  2. Select Runtime: local and choose the Configure and Run Action mode.
    Note: The application Docker image generation is only supported for local runtime.
  3. In the dropdown list, choose Configure Run mode.
  4. Note: To override the app property at runtime, see Overriding Using Configure and Run Locally in Overriding an App Property at Runtime.
  5. To generate an application Docker image, select Run as Docker App.
  6. Note: Once you click on Run as Docker App, a container instance of the app Docker image is started. The container instance is terminated after you close the application.
  7. Rename the application Docker image in the next prompt. By default, it takes the name of the current app and version.
  8. Click Run to run it once or choose Save and Run to save and then generate the application Docker image.
Note: By default, the Dockerfile used to generate the application Docker image uses amazonlinux as the base image. You can use alpine:3.14 and other compatible base images as well.