Skip to content

Instantly share code, notes, and snippets.

@donrestarone
Created December 27, 2020 16:36
Show Gist options
  • Save donrestarone/ef7ef0231dab0c846a0ed49e8b92d10c to your computer and use it in GitHub Desktop.
Save donrestarone/ef7ef0231dab0c846a0ed49e8b92d10c to your computer and use it in GitHub Desktop.
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