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

Upgrade to avalon 8 and fedora 6 #82

Merged
merged 1 commit into from
Jan 8, 2025
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
8 changes: 8 additions & 0 deletions db/init-db/init-fedora-cache-db.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -e

psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
CREATE ROLE fedora_cache LOGIN PASSWORD '$FEDORA_DB_PASSWORD';
CREATE DATABASE fcrepo_cache WITH ENCODING='UTF8';
GRANT ALL PRIVILEGES ON DATABASE fcrepo_cache TO fedora_cache;
EOSQL
8 changes: 0 additions & 8 deletions db/init-db/init-fedora-db.sh

This file was deleted.

16 changes: 6 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,14 @@ services:
- POSTGRES_USER=postgres
- POSTGRES_HOST_AUTH_METHOD=trust
fedora:
image: avalonmediasystem/fedora:4.7.5
build:
context: ./fedora
args:
- FEDORA_VERSION=4.7.5
image: fcrepo/fcrepo:6-tomcat9
environment:
- FEDORA_DB_PASSWORD
- JAVA_OPTIONS=-Dfcrepo.postgresql.password=${FEDORA_DB_PASSWORD} -Dfcrepo.postgresql.username=fedora -Dfcrepo.postgresql.host=db -Dfcrepo.modeshape.configuration=classpath:/config/jdbc-postgresql/repository.json -Dfcrepo.home=/data
- CATALINA_OPTS=-Dfcrepo.autoversioning.enabled=false -Dfcrepo.db.password=${FEDORA_DB_PASSWORD} -Dfcrepo.db.user=fedora -Dfcrepo.db.url=jdbc:postgresql://db:5432/fcrepo_cache -Dfcrepo.home=/data
depends_on:
- db
volumes:
- fedora:/data
- ./fedora_data:/data
solr:
image: solr:9
volumes:
Expand All @@ -53,9 +49,9 @@ services:
redis:
image: redis:alpine
avalon: &avalon
image: avalonmediasystem/avalon:7
image: avalonmediasystem/avalon:8
build:
context: https://github.com/avalonmediasystem/avalon.git#v7.8
context: https://github.com/avalonmediasystem/avalon.git#v8.0
target: prod
command: bash -c "bundle exec rake db:migrate && bundle exec rails server -b 0.0.0.0"
depends_on:
Expand All @@ -79,7 +75,7 @@ services:
- ENCODE_WORK_DIR=/streamfiles
- FEDORA_BASE_PATH
- FEDORA_NAMESPACE=avalon
- FEDORA_URL=http://fedoraAdmin:fedoraAdmin@fedora:8080/fedora/rest
- FEDORA_URL=http://fedoraAdmin:fedoraAdmin@fedora:8080/fcrepo/rest
- SETTINGS__FFMPEG__PATH=/usr/bin/ffmpeg
- MASTER_FILE_PATH
- SETTINGS__MASTER_FILE_MANAGEMENT__STRATEGY=delete
Expand Down
Empty file added fedora_data/.keep
Empty file.