I am a little confused about the role of docker-compose.yml in getting my easy-install project up and running. I have several different docker-compose files and I seem to be breaking the don’t repeat yourself principle.
So far I have a docker-compose.yml in my python application folder which I use for debugging. This is the docker-compose that gets copied to my platform when I use the debug button in VSCode. I also created a second “production” docker-compose.yml, which does not contain the debug image, and which I intend to put in /var/sota/storage/docker-compose/ for auto-running the application. I also use it to install the release containers on my Ivy board when testing them. Now I am reading through the Torizon Core Builder docs and it looks like I need a third docker compose for building these same images into an Easy Installer – this third one lives in my torizoncore builder workspace. I have tried referencing the other docker-compose.yml files from the tcbuild “bundle” utility, but it refuses to find them, and says they do not exist (they do exist):
torizoncore-builder bundle "~/repos/chipotle_dbpt/docker-compose.yml" --bundle-directory bundle
Creating Docker Container bundle...
Error: File does not exist: ~/repos/chipotle_dbpt/docker-compose.yml. Aborting.
So, I have three docker-compose.yml files, which are all basically identical to each other:
docker-compose.yml for debugging
docker-compose.yml for auto-running
docker-compose.yml for torizoncore bundling
All three files just define how to build my application (the app consists of two custom containers/services and nothing else).
Is this the way I am expected to be doing things? It seems wrong. I think I should just have one docker-compose that defines my application, right? Is there a different way to be including my application containers in my OS using the docker-compose that is already part of my Torizon python project?