Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base Containter Note and Bundle Before Migrations #3

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions db-migrate-seed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ db-wait.sh "$SOLR_HOST:$SOLR_PORT"
migrations_run=`PGPASSWORD=$DB_PASSWORD psql -h $DB_HOST -U $DB_USER $DB_NAME -t -c "SELECT version FROM schema_migrations ORDER BY schema_migrations" | wc -c`
migrations_fs=`ls -l db/migrate/ | awk '{print $9}' | grep -o '[0-9]\+' | wc -c`
if [[ "$migrations_run" -lt "$migrations_fs" ]]; then
bundle
bundle exec rails db:create
bundle exec rails db:migrate
bundle exec rails db:seed
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ services:
file: hyrax-webapp/docker-compose.yml
service: base
image: ghcr.io/samvera/hyku/base:${TAG:-latest}
command: bash -l -c "echo 'base is only used for building base images, which in turn reduces image build times. It does not need to be run'"

web:
<<: *app
Expand Down
Loading