A fork of sottenad/jService used for educational, non-profit purposes
secrets/db_password.txt
config/master.key
- Clone the repo
- Run
docker compose up
bundle exec rake get_clues[1,2]- Or use the
restore-db.sh <backup-file>script if you already have a database backup file that you want to restore.- The backup file has to be located in the mounted directory for backups (e.g.
./backupsfor local env, prod env may have a different mount)
- The backup file has to be located in the mounted directory for backups (e.g.
- See outdated dependencies:
docker exec jservice bundle outdated - Update the Ruby version used in
Dockerfile.dev - Update the Ruby and Rails versions used in
Gemfile - Remove
Gemfile.lockfrom the repo - Update the
COPYcommand inDockerfile.dev(removeGemfile.lockfrom it):COPY Gemfile ./ - Remove the
jservicecontainer,jserviceimage andjservice-bundlevolume from the host - Rebuild the image:
docker compose build --no-cache - Run
docker compose run jservice bundle installto also have the expected Gemfile.lock in our host - Adjust the code as needed, follow the release notes and migration guides
- Run
docker compose upand make sure everything works as expected - Revert the
Dockerfile.devchange back to:COPY Gemfile Gemfile.lock ./ - Update the Ruby version used in
Dockerfileto match the one we migrated to earlier (for production image) - Commit & Push
- Deploy to staging server and test, then to prod server
- Build with
docker compose --env-file ./env/jservice.env --env-file ./env/db.env -f docker-compose.yml -f docker-compose.prod.yml build --no-cache - For prod, the CI/CD build script should already handle this
- Build with