-
Notifications
You must be signed in to change notification settings - Fork 171
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
Running multiple commands in entrypoint #52
Comments
You don't need to modify command:
- /bin/sh
- -c
- |
bundle config mirror.https://rubygems.org https://gems.ruby-china.org
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
bundle exec rake tmp:cache:clear tmp:sessions:clear RAILS_ENV=production
/docker-entrypoint.sh passenger start
|
Awesome solution @abcfy2 |
proper way to implement multiline commands with docker-compose, tks to docker-library/redmine#52
Closing, given the excellent solution posted above. 👍 (The only change I'd personally make is adding |
No problem. Because the last line of |
/bin/sh: 1: bundle: not found |
I'm trying to copy some files before running my entrypoint script. I tried something like this in my docker-compose.yml:
entrypoint: ["sh", "-c", "cp -r /usr/src/redmine/public/. /www/public/ && /docker-entrypoint.sh"]
But I'm getting a exit code 0. Suggestions?
The text was updated successfully, but these errors were encountered: