Skip to content

Commit

Permalink
Update docker-compose-rest.yml - Updated symlink command and custom_r…
Browse files Browse the repository at this point in the history
…un.sh path (#766)
  • Loading branch information
milanmajchrak authored Dec 10, 2024
1 parent 60fc63d commit 359954a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docker/docker-compose-rest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,16 @@ services:
- /bin/bash
- '-c'
# When customizing the namespace, add the following command to the entrypoint command below (after `while ...`):
# `pushd ../webapps && unlink server && ln -s /dspace/webapps/server/ 'repository#server' && popd`
# `pushd ../webapps && (unlink server || true) && (ln -s /dspace/webapps/server/ 'repository#server' || true) && popd`
# The `(... || true)` condition is necessary to ensure the `popd` command runs at the end.
# It used to fail when the `server` folder did not exist in `/webapps`.
# This will create a symlink from the webapps directory to the server directory with the custom namespace
# (e.g. /dspace/webapps/server -> /dspace/webapps/repository#server)
- |
while (!</dev/tcp/dspacedb/543${INSTANCE}) > /dev/null 2>&1; do sleep 1; done;
pushd ../webapps && unlink server && ln -s /dspace/webapps/server/ 'repository#server' && popd
pushd ../webapps && (unlink server || true) && (ln -s /dspace/webapps/server/ 'repository#server' || true) && popd
/dspace/bin/dspace database migrate force
custom_run.sh
./custom_run.sh
/dspace/bin/start-handle-server
# DSpace database container
dspacedb:
Expand Down

0 comments on commit 359954a

Please sign in to comment.