Skip to content

Commit

Permalink
[no-issue] upgrade to version 1018 of WebSDK (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
reey committed Sep 25, 2023
1 parent b48b2c5 commit a40f67a
Show file tree
Hide file tree
Showing 8 changed files with 461 additions and 1,125 deletions.
8 changes: 6 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM nodered/node-red:3.0.2-14-minimal
RUN cd /data && npm install @c8y/client@1016.0.214 && npm install node-red-dashboard@3.3.1
FROM nodered/node-red:3.1.0-18-minimal
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
Expand All @@ -8,5 +8,9 @@ RUN cd /data/node-red-c8y-storage-plugin && npm install && npm run build && npx
RUN cd /data && npm init -y
RUN cd /data && npm install ./node-red-contrib-c8y-client
RUN cd /data && npm install ./node-red-c8y-storage-plugin

# https://github.com/npm/cli/issues/4095
RUN chown -R root:root /usr/src/node-red

EXPOSE 80/tcp
ENTRYPOINT ["npm", "start", "--cache", "/data/.npm", "--", "--userDir", "/data"]
4 changes: 2 additions & 2 deletions backend/cumulocity.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"apiVersion": "v1",
"version": "2.0.4",
"apiVersion": "v2",
"version": "2.1.0",
"name": "node-red",
"provider": {
"name": "Tristan Bastian",
Expand Down
2 changes: 1 addition & 1 deletion backend/data/node-red-c8y-storage-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"author": "Tristan Bastian",
"license": "Apache-2.0",
"dependencies": {
"@c8y/client": "^1016.0.214",
"@c8y/client": "^1018.0.143",
"when": "^3.7.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion backend/data/node-red-contrib-c8y-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
},
"dependencies": {
"@c8y/client": "^1016.0.214"
"@c8y/client": "^1018.0.143"
},
"author": "Tristan Bastian",
"license": "Apache-2.0"
Expand Down
Loading

0 comments on commit a40f67a

Please sign in to comment.