Created
December 27, 2020 16:36
-
-
Save donrestarone/ef7ef0231dab0c846a0ed49e8b92d10c to your computer and use it in GitHub Desktop.
docker-entrypoint for test rails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
echo "Environment: $RAILS_ENV" | |
# Check if we need to install new gems | |
bundle check || bundle install --jobs 20 --retry 5 | |
# Then run any passed command | |
bundle exec ${@} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment