diff --git a/deploy/enterprise/Dockerfile b/deploy/enterprise/Dockerfile index bf2e020f2d..7c5e3d81df 100644 --- a/deploy/enterprise/Dockerfile +++ b/deploy/enterprise/Dockerfile @@ -75,6 +75,12 @@ WORKDIR /opt/steedos/unpkg RUN yarn && yarn cache clean +# nodered +COPY ./app/nodered /opt/steedos/nodered +WORKDIR /opt/steedos/nodered + +RUN yarn && yarn cache clean + COPY ./fs / # Remove cached files diff --git a/deploy/enterprise/fs/opt/steedos/entrypoint.sh b/deploy/enterprise/fs/opt/steedos/entrypoint.sh index 364c8c11f6..c294cb8f49 100755 --- a/deploy/enterprise/fs/opt/steedos/entrypoint.sh +++ b/deploy/enterprise/fs/opt/steedos/entrypoint.sh @@ -237,6 +237,7 @@ configure_supervisord() { cp -f "$supervisord_conf_source"/nginx.conf "$SUPERVISORD_CONF_TARGET" cp -f "$supervisord_conf_source"/steedos.conf "$SUPERVISORD_CONF_TARGET" cp -f "$supervisord_conf_source"/unpkg.conf "$SUPERVISORD_CONF_TARGET" + cp -f "$supervisord_conf_source"/nodered.conf "$SUPERVISORD_CONF_TARGET" # Disable services based on configuration if [[ -z "${DYNO}" ]]; then @@ -305,7 +306,7 @@ mkdir -p /steedos-storage/unpkg mkdir -p /steedos-storage/data/{backup,restore} # Create sub-directory to store services log in the container mounting folder -mkdir -p /steedos-storage/logs/{supervisor,steedos,cron,mongodb,redis,nginx,unpkg} +mkdir -p /steedos-storage/logs/{supervisor,steedos,cron,mongodb,redis,nginx,unpkg,nodered} # Stop nginx gracefully nginx -s quit