From e122c2076b9b1bbc4265f644e3d1b8cd34ab8113 Mon Sep 17 00:00:00 2001 From: Tristan Bastian Date: Thu, 12 Oct 2023 18:30:15 +0200 Subject: [PATCH] fix: root issue (#158) * fix: root issue Signed-off-by: Tristan Bastian * version bump and dependabot adjustments Signed-off-by: Tristan Bastian --------- Signed-off-by: Tristan Bastian --- .github/dependabot.yml | 13 +++++++------ backend/Dockerfile | 3 ++- backend/cumulocity.json | 2 +- frontend/package-lock.json | 4 ++-- frontend/package.json | 2 +- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index c62cd4e..b89e049 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,15 +11,16 @@ updates: interval: "weekly" assignees: - "reey" - allow: - - dependency-type: "direct" - dependency-name: "@c8y*" labels: - "npm" - "dependencies" - "c8y" reviewers: - "reey" - ignore: - - dependency-name: "*" - update-types: ["version-update:semver-major", "version-update:semver-minor"] + groups: + web-sdk: + patterns: + - "@c8y/*" + update-types: + - "minor" + - "patch" diff --git a/backend/Dockerfile b/backend/Dockerfile index e598ff8..7a120d5 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,7 +1,8 @@ FROM nodered/node-red:3.1.0-18-minimal +USER root +RUN chown -R root:root /data/ RUN cd /data && npm install @c8y/client@1018.0.143 && npm install node-red-dashboard@3.6.0 COPY ./data /data -USER root # compile typescript to javascript and afterwards remove node_modules to reduce container size RUN cd /data/node-red-c8y-storage-plugin && npm install && npm run build && npx rimraf node_modules diff --git a/backend/cumulocity.json b/backend/cumulocity.json index 626d88b..d4ff3f0 100644 --- a/backend/cumulocity.json +++ b/backend/cumulocity.json @@ -1,6 +1,6 @@ { "apiVersion": "v2", - "version": "2.1.0", + "version": "2.1.1", "name": "node-red", "provider": { "name": "Tristan Bastian", diff --git a/frontend/package-lock.json b/frontend/package-lock.json index f517c99..64c7b95 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "node-red-ui", - "version": "2.1.0", + "version": "2.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "node-red-ui", - "version": "2.1.0", + "version": "2.1.1", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/frontend/package.json b/frontend/package.json index ab2fcaf..9ee3a53 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "node-red-ui", - "version": "2.1.0", + "version": "2.1.1", "description": "Node-RED integration into Cumulocity. With the Node-RED instance running as a microservice inside of Cumulocity.", "scripts": { "start": "c8ycli server",