forked from RCOSDP/weko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
22 lines (19 loc) · 1.05 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
find . | grep -E "(__pycache__|\.eggs|\.pyc|\.pyo$)" | xargs rm -rf
docker-compose down -v
for volume in $(docker volume ls -f name=weko -q); do
docker volume rm $(volume)
done
DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker-compose build --no-cache --force-rm
# Initialize resources
docker-compose run --rm web ./scripts/populate-instance.sh
docker cp scripts/demo/item_type3.sql $(docker-compose ps -q postgresql):/tmp/item_type.sql
docker-compose exec postgresql psql -U invenio -d invenio -f /tmp/item_type.sql
docker-compose run --rm web invenio workflow init action_status,Action
docker cp scripts/demo/resticted_access.sql $(docker-compose ps -q postgresql):/tmp/resticted_access.sql
docker-compose exec postgresql psql -U invenio -d invenio -f /tmp/resticted_access.sql
docker-compose run --rm web invenio workflow init gakuninrdm_data
docker-compose run --rm web invenio shell scripts/demo/register_oai_schema.py overwrite_all
docker-compose run --rm web invenio shell tools/update/addjpcoar_v1_mapping.py
# Start services
docker-compose up -d