Skip to content

Commit

Permalink
Use modern docker compose plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoRoth committed Nov 20, 2024
1 parent ee1efa9 commit bfb794f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion bokeh/run_bokeh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ exec panel serve "$APP" \
--use-xheaders \
--num-procs "$BOKEH_NUM_PROCS" \
--prefix "$BOKEH_PREFIX"

2 changes: 1 addition & 1 deletion runner/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3

RUN apk add --update --no-cache docker-cli docker-compose git bash
RUN apk add --update --no-cache docker-cli docker-cli-compose git bash

ENV \
WS_ORIGIN=bokeh.oggm.org
Expand Down
16 changes: 8 additions & 8 deletions runner/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ rm -rf repo
git clone https://github.com/OGGM/Bokeh-Docker.git repo
cd repo/bokeh.oggm.org

docker-compose down --remove-orphans
docker compose down --remove-orphans
docker system prune -f
docker-compose pull
docker-compose build --pull
docker-compose up -d
docker compose pull
docker compose build --pull
docker compose up -d

while true; do
sleep 300
Expand All @@ -19,11 +19,11 @@ while true; do
git reset --hard FETCH_HEAD &&
git clean -fxd &&

docker-compose down --remove-orphans &&
docker compose down --remove-orphans &&
docker system prune -f &&
docker-compose pull &&
docker-compose build --pull &&
docker-compose up -d ||
docker compose pull &&
docker compose build --pull &&
docker compose up -d ||

git reset --hard ${OHEAD}
fi
Expand Down

0 comments on commit bfb794f

Please sign in to comment.