Skip to content

Commit

Permalink
[Feature]: 企业版 docker 预装node-red #7002
Browse files Browse the repository at this point in the history
  • Loading branch information
hotlong committed Sep 19, 2024
1 parent 2acc81a commit 1aa838c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions deploy/enterprise/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion deploy/enterprise/fs/opt/steedos/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1aa838c

Please sign in to comment.