Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions build/.docker/standalone.bake.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ RUN apt-get -y update && \
COPY build/configs/standalone/supervisor/ /etc/supervisor/conf.d/
COPY --chmod=755 build/scripts/standalone/entrypoint.sh /entrypoint.sh

# Give the 'ds' service user a writable HOME. supervisord runs as root and does
# not reset HOME when dropping to user=ds, so without this the node services
# inherit HOME=/root and fail to write their cache (e.g. sharp/pkg extracting
# native modules to ~/.cache), disabling image processing. HOME is set per
# program in the supervisor confs; this just ensures the directory exists.
RUN mkdir -p /home/ds && chown ds:ds /home/ds

#RUN mkdir -p ${EO_LOG}/docservice ${EO_LOG}/converter \
# ${EO_LOG}/adminpanel ${EO_LOG}/metrics

Expand Down
2 changes: 1 addition & 1 deletion build/configs/standalone/supervisor/ds-adminpanel.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
command=%(ENV_EO_ROOT)s/server/AdminPanel/server/adminpanel
directory=%(ENV_EO_ROOT)s/server/AdminPanel
user=ds
environment=NODE_ENV=production-linux,NODE_CONFIG_DIR=%(ENV_EO_CONF)s,NODE_DISABLE_COLORS=1,APPLICATION_NAME=onlyoffice,LD_LIBRARY_PATH=%(ENV_EO_ROOT)s/server/FileConverter/bin:%(ENV_EO_ROOT)s/server/FileConverter/lib
environment=HOME=/home/ds,NODE_ENV=production-linux,NODE_CONFIG_DIR=%(ENV_EO_CONF)s,NODE_DISABLE_COLORS=1,APPLICATION_NAME=onlyoffice,LD_LIBRARY_PATH=%(ENV_EO_ROOT)s/server/FileConverter/bin:%(ENV_EO_ROOT)s/server/FileConverter/lib
stdout_logfile=%(ENV_EO_LOG)s/adminpanel/out.log
stdout_logfile_backups=0
stdout_logfile_maxbytes=0
Expand Down
2 changes: 1 addition & 1 deletion build/configs/standalone/supervisor/ds-converter.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
command=%(ENV_EO_ROOT)s/server/FileConverter/converter
directory=%(ENV_EO_ROOT)s/server/FileConverter
user=ds
environment=NODE_ENV=production-linux,NODE_CONFIG_DIR=%(ENV_EO_CONF)s,NODE_DISABLE_COLORS=1,APPLICATION_NAME=onlyoffice,LD_LIBRARY_PATH=%(ENV_EO_ROOT)s/server/FileConverter/bin:%(ENV_EO_ROOT)s/server/FileConverter/lib
environment=HOME=/home/ds,NODE_ENV=production-linux,NODE_CONFIG_DIR=%(ENV_EO_CONF)s,NODE_DISABLE_COLORS=1,APPLICATION_NAME=onlyoffice,LD_LIBRARY_PATH=%(ENV_EO_ROOT)s/server/FileConverter/bin:%(ENV_EO_ROOT)s/server/FileConverter/lib
stdout_logfile=%(ENV_EO_LOG)s/converter/out.log
stdout_logfile_backups=0
stdout_logfile_maxbytes=0
Expand Down
2 changes: 1 addition & 1 deletion build/configs/standalone/supervisor/ds-docservice.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
command=%(ENV_EO_ROOT)s/server/DocService/docservice
directory=%(ENV_EO_ROOT)s/server/DocService
user=ds
environment=NODE_ENV=production-linux,NODE_CONFIG_DIR=%(ENV_EO_CONF)s,NODE_DISABLE_COLORS=1,APPLICATION_NAME=onlyoffice,LD_LIBRARY_PATH=%(ENV_EO_ROOT)s/server/FileConverter/bin:%(ENV_EO_ROOT)s/server/FileConverter/lib
environment=HOME=/home/ds,NODE_ENV=production-linux,NODE_CONFIG_DIR=%(ENV_EO_CONF)s,NODE_DISABLE_COLORS=1,APPLICATION_NAME=onlyoffice,LD_LIBRARY_PATH=%(ENV_EO_ROOT)s/server/FileConverter/bin:%(ENV_EO_ROOT)s/server/FileConverter/lib
stdout_logfile=%(ENV_EO_LOG)s/docservice/out.log
stdout_logfile_backups=0
stdout_logfile_maxbytes=0
Expand Down
2 changes: 1 addition & 1 deletion build/configs/standalone/supervisor/ds-example.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
command=%(ENV_EO_ROOT)s-example/example
directory=%(ENV_EO_ROOT)s-example/
user=ds
environment=NODE_ENV=production-linux,NODE_CONFIG_DIR=%(ENV_EO_CONF)s-example,NODE_DISABLE_COLORS=1,APPLICATION_NAME=onlyoffice
environment=HOME=/home/ds,NODE_ENV=production-linux,NODE_CONFIG_DIR=%(ENV_EO_CONF)s-example,NODE_DISABLE_COLORS=1,APPLICATION_NAME=onlyoffice
stdout_logfile=%(ENV_EO_LOG)s/ds-example_out.log
stdout_logfile_backups=0
stdout_logfile_maxbytes=0
Expand Down
2 changes: 1 addition & 1 deletion build/configs/standalone/supervisor/ds-metrics.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
command=%(ENV_EO_ROOT)s/server/Metrics/metrics ./config/config.js
directory=%(ENV_EO_ROOT)s/server/Metrics
user=ds
environment=NODE_DISABLE_COLORS=1,LD_LIBRARY_PATH=%(ENV_EO_ROOT)s/server/FileConverter/bin:%(ENV_EO_ROOT)s/server/FileConverter/lib
environment=HOME=/home/ds,NODE_DISABLE_COLORS=1,LD_LIBRARY_PATH=%(ENV_EO_ROOT)s/server/FileConverter/bin:%(ENV_EO_ROOT)s/server/FileConverter/lib
stdout_logfile=%(ENV_EO_LOG)s/metrics/out.log
stdout_logfile_backups=0
stdout_logfile_maxbytes=0
Expand Down
Loading