Created
October 4, 2019 18:37
-
-
Save akofink/952c8fdb09e62719fe8777224af67c6c to your computer and use it in GitHub Desktop.
Using a local gem within the compliance-backend docker compose environment
This file contains 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
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