-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
changed logic so make up won't run make demo if docker-compose up fails #335
changed logic so make up won't run make demo if docker-compose up fails #335
Conversation
This is still being tested by Yamil. It accidentally got committed with this merge: #336 |
@joshdentremont sorry it took this long, and I know this commit was already merged by accident. I still wanted to test it and I learned a few new things about ILSE in the process, like how the workbench image/container is used. BTW, my delay was caused because on my macOS M1 system I could not build an ISLE2 system until last night. In this case it turned out that the temporary workbench container could not install ruamel.yaml, but last night a new version of ruamel.yaml was released (0.17.26) and maybe that is what made it work. I followed the testing steps and I think it worked, since it error our very quickly and did not seem to try to run Below is the output I got with the tag value of 1.0.100:
|
Running
make up
is supposed to runmake demo
if there is not a docker-compose file already in place, or rundocker-compose up
otherwiseThe existing logic tells it to run
make demo
if there is no docker-compose.yml OR ifdocker-compose up
fails. This can cause problems if you have installed a site and then made some change that causes some of your containers to be unable to spin up. For example, if you take down your containers to update from version 1.0.10 to 1.0.11, but the pull of the new images fails.This PR changes the logic so that if there is a docker-compose.yml file, but docker-compose up fails it will not try to install demo.
To test:
make up
to install a demo sitemake down
make up
to bring containers back upmake down
make -B docker-compose.yml
to update the docker-compose with the non-existent imagesmake up
to see it fail without trying to install a demo site