Skip to content

Commit

Permalink
Update fcrepo import process
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdentremont committed Feb 16, 2024
1 parent 1ee70d4 commit 787e2b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,10 @@ ifndef SRC
$(error SRC is not set)
endif
docker cp "$(SRC)" $$(docker compose ps -q fcrepo):/tmp/fcrepo-export.tgz
docker compose exec -T fcrepo with-contenv bash -lc 'rm -r /data/home/data/ocfl-root/*'
docker compose exec -T fcrepo with-contenv bash -lc 'tar zxvf /tmp/fcrepo-export.tgz -C /data/home/data/ocfl-root/ && chown -R tomcat:tomcat /data/home/data/ocfl-root/ && rm /tmp/fcrepo-export.tgz'
docker compose exec -T mariadb with-contenv bash -lc 'mysql -e "drop database fcrepo;"'
docker compose restart fcrepo


# Dump fcrepo as zipped tarball
Expand Down

0 comments on commit 787e2b9

Please sign in to comment.