Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
docker-entrypoint for test rails
#!/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