Skip to content

Instantly share code, notes, and snippets.

@akofink
Created October 4, 2019 18:37
Show Gist options
  • Save akofink/952c8fdb09e62719fe8777224af67c6c to your computer and use it in GitHub Desktop.
Save akofink/952c8fdb09e62719fe8777224af67c6c to your computer and use it in GitHub Desktop.
Using a local gem within the compliance-backend docker compose environment
docker-compose up -d # start all compliance services
# add the path attribute in the Gemfile
# gem 'openscap_parser', path: '/openscap_parser'
# stop sidekiq, bring it up with an additional volume mount
docker-compose stop sidekiq && d-c run -v $PWD:/app:z -v $PWD/../openscap_parser:/openscap_parser --name sidekiq --rm sidekiq
# update the gem
docker exec -it sidekiq bundle update openscap_parser
# do whatever you want with the new gem environment
docker exec -it sidekiq bundle exec rake ssg:import
docker exec -it sidekiq bundle exec rake db:setup # clear the db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment