From 251bcc3330d4f3f748d702065f15845a8d0503bc Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Tue, 11 Jul 2023 01:11:10 +0200 Subject: [PATCH] Actually try a command for the bootstrap step :) --- .env.sample | 1 - compose.yml | 9 +++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.sample b/.env.sample index 752351f..85c02ed 100644 --- a/.env.sample +++ b/.env.sample @@ -16,4 +16,3 @@ AGORA_GIT=https://github.com/flancian/agora # The local path where the Agora root will be cloned if necessary. Agora Bridge writes here, Agora Server (mostly) reads. AGORA_PATH=/home/$AGORA_USER/agora - diff --git a/compose.yml b/compose.yml index f41e81c..b510e0f 100644 --- a/compose.yml +++ b/compose.yml @@ -2,7 +2,7 @@ version: "3.8" services: - server: + app: environment: - AGORA_USER=$AGORA_USER - AGORA_PATH=$AGORA_PATH @@ -59,11 +59,12 @@ $AGORA_PATH $AGORA_PATH - AGORA_GIT=$AGORA_GIT image: git.coopcloud.tech/flancian/agora-bridge + command: | + bash -c + "git clone $AGORA_GIT $AGORA_PATH; + cd $AGORA_PATH && git pull" volumes: - data:$AGORA_PATH - deploy: - restart_policy: - delay: 30s networks: