From 4b972903dda6080e34404504d41c4a699853d319 Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Fri, 20 Nov 2020 11:59:31 +0200 Subject: [PATCH] Disable `node upgrade` during launch --- README.md | 6 ++++-- docker-entrypoint.sh | 7 ------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index dc061cc..f2fc65c 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ Create local archives of both the `adapt_authoring` folder and database: ### Docker Swarm -See [`compose-stacks/adapt_authoring`] for an example Docker "swarm mode" +See [`coop-cloud/adapt_authoring`] for an example Docker "swarm mode" configuration, including secrets, SSL reverse proxy, and continuous integration tests of the stack deployment. @@ -82,5 +82,7 @@ tests of the stack deployment. rate-limited by Github (the script checks Github for the latest Adapt Authoring version, and to clone the Authoring Framework and plug-ins). Wait an hour, or use a VPN. + - `node upgrade` doesn't work, because code is downloaded as a ZIP archive + instead of using a `git clone` -[`compose-stacks/adapt_authoring`]: https://git.autonomic.zone/compose-stacks/adapt_authoring/ +[`coop-cloud/adapt_authoring`]: https://git.autonomic.zone/coop-cloud/adapt_authoring/ diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 106903f..e559cbf 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -50,11 +50,6 @@ install_adapt() { #--smtpUsername "${SMTP_USERNAME}" --smtpPassword "${SMTP_PASSWORD}" \ } -update_adapt() { - echo "'conf' dir found, running 'node upgrade ...'" - node upgrade --continue Y --updateAutomatically Y -} - main() { set -eu @@ -62,8 +57,6 @@ main() { if [ ! -d conf ]; then install_adapt - else - update_adapt fi }