'How to make external file available before the container starts running in AWS ECS fargate cluster
I am very new to docker, I have a docker file that has all instructions to build a docker image. The image has to be deployed in AWS Fargate cluster. Now I have a python script which does the below things:
1. clone a repo from GitHub
2. Locate the docker file, build the image and push the docker image to AWS ecr
3. Create a task definition and deploy into ECS fargate cluster
4. Additionally the script generate a YAML file based on certain logic that has certain parameters(not related to container config) which is required for the application
How can I make this file content available to the container before it starts running in AWS? I was checking --entrypoint and --cmd, but here I can't change the Dockerfile
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
