Skip to content

Commit

Permalink
Merge pull request #3 from samvera-labs/startup_improvements
Browse files Browse the repository at this point in the history
Base Containter Note and Bundle Before Migrations
  • Loading branch information
orangewolf authored Jan 8, 2024
2 parents 1e6b11c + 4538ab3 commit d01e7a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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

0 comments on commit d01e7a0

Please sign in to comment.