From 65e9c30030540ba3fc77748b03cafa8b74febbee Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 10 Nov 2021 17:32:58 +0100 Subject: [PATCH 1/3] user new supported mailcatcher image --- docker/development/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/development/docker-compose.yml b/docker/development/docker-compose.yml index af5d4e3c5..ec66c0a2c 100644 --- a/docker/development/docker-compose.yml +++ b/docker/development/docker-compose.yml @@ -65,7 +65,7 @@ services: # - "6379:6379" mailcatcher: - image: sleede/mailcatcher + image: sj26/mailcatcher restart: always ## linux networks: From 501411e2935bb02f564b96c3ff672b3a5180326d Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 16 Nov 2021 17:17:08 +0100 Subject: [PATCH 2/3] (bug) unable to run the setup/upgrade scripts as root yq has updated its docker image to prevent running as root so we need to provide the current user id when running the image More info: https://github.com/mikefarah/yq/issues/890 --- CHANGELOG.md | 2 ++ setup/setup.sh | 2 +- setup/upgrade.sh | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9a464ef1..4004b6b2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog Fab-manager +- Fix a bug: unable to run the setup/upgrade scripts as root + ## v5.1.12 2021 November 10 - Added an automated test on the plan creation endpoint diff --git a/setup/setup.sh b/setup/setup.sh index 6c757f500..e137752a9 100755 --- a/setup/setup.sh +++ b/setup/setup.sh @@ -194,7 +194,7 @@ prepare_files() } yq() { - docker run --rm -i -v "${FABMANAGER_PATH}:/workdir" mikefarah/yq:4 "$@" + docker run --rm -i -v "${FABMANAGER_PATH}:/workdir" --user "$UID" mikefarah/yq:4 "$@" } prepare_nginx() diff --git a/setup/upgrade.sh b/setup/upgrade.sh index ab0f9c48f..a0634286d 100644 --- a/setup/upgrade.sh +++ b/setup/upgrade.sh @@ -36,7 +36,7 @@ parseparams() } yq() { - docker run --rm -i -v "${PWD}:/workdir" mikefarah/yq:4 "$@" + docker run --rm -i -v "${PWD}:/workdir" --user "$UID" mikefarah/yq:4 "$@" } jq() { From a9578d62e1d21381d3851f835fd12ce27a91df5e Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 16 Nov 2021 17:19:23 +0100 Subject: [PATCH 3/3] Version 5.1.13 --- CHANGELOG.md | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4004b6b2a..345167435 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog Fab-manager +## v5.1.13 2021 November 16 + - Fix a bug: unable to run the setup/upgrade scripts as root ## v5.1.12 2021 November 10 diff --git a/package.json b/package.json index af6a3b3a4..ac0368cd8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fab-manager", - "version": "5.1.12", + "version": "5.1.13", "description": "Fab-manager is the FabLab management solution. It provides a comprehensive, web-based, open-source tool to simplify your administrative tasks and your marker's projects.", "keywords": [ "fablab",