Build the application docker image by extending the runtime base docker image and copying the app binary into it. To do this:
Procedure
Tag the Runtime base docker image. For example, use
flogo-runtime:<version>
Create a Docker file in the directory containing the Flogo app binary and add the two commands displayed below.
FROM flogo-runtime:<version>
ADD <FLOGO_APP_BINARY_NAME> flogoapp
Note: As seen above, you must configure the application binary as
flogoapp before you can run it.
For example:
FROM flogo-runtime:2.4.0
ADD hello_world-linux_amd64 flogoapp
Run the docker build command to build the app docker image.
docker build -t <APP_IMAGE_NAME>:<TAG>
Push the app docker image to ECR. For more information about ECR, see the
ECR documentation.
While configuring the task definition, the policy (shown below) must be set and attached to the IAM role configured for the task. Otherwise, the app will not start: