mefellows / dockerize-compose-demo Goto Github PK
View Code? Open in Web Editor NEWDocker Compose demo using Dockerize to wait for dependencies
License: MIT License
Docker Compose demo using Dockerize to wait for dependencies
License: MIT License
Nice demo, but following your readme this project need branchs fail and dockerize and the repo don't have this branchs, i think that branch fail up compose without dockerize and branch dockerize up compose with dockerize wait..
what do you think that instead use branch, project use one Makefile with two targets?
i could make this change if you want..
This works great outside of Visual Studio.
However, running a docker-compose project which tries to use command override in the docker-compose.override.yml to start the container using dockerize, Visual Studio results in Can not find the container with the name starting with 'MyProject'
errors because the container does not have a status of running as dockerize is waiting to start it.
docker-compose.override.yml
command: ["./dockerize", "-wait", "tcp://mydatabase:1433", "-wait-retry-interval", "20s", "-timeout", "3m", "dotnet", "MyProject.dll"]
Visual Studio output
========== Debugging ==========
docker ps --filter "status=running" --filter "label=com.docker.compose.service" --filter "name=^/MyProject$" --format {{.ID}} -n 1
Removing the command override from the docker-compose.override.yml file and moving it to inside the Dockerfile seems to let Visual Studio work, but doesn't seem to honor the dockerize command and just goes into the dotnet cmd. Not being able to override the CMD from the docker-compose.override.yml is problematic in trying to change the name of the target to wait on per environment.
Dockerfile
COPY ["dockerize", "./"]
RUN chmod +x ./dockerize
CMD ["./dockerize", "-wait", "tcp://mydatabase:1433", "-wait-retry-interval", "20s", "-timeout", "3m", "dotnet", "MyProject.dll"]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.