File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,10 @@ COPY --chown=lowcoder:lowcoder --from=lowcoder-ce-node-service /lowcoder/node-se
263
263
COPY --chown=lowcoder:lowcoder deploy/docker/all-in-one/etc /lowcoder/etc
264
264
265
265
# Add startup script
266
- COPY --chown=lowcoder:lowcoder deploy/docker/all-in-one/entrypoint.sh /lowcoder/entrypoint.sh
266
+ COPY --chown=lowcoder:lowcoder --chmod=0755 deploy/docker/all-in-one/entrypoint.sh /lowcoder/entrypoint.sh
267
+
268
+ # Copy default environment properties
269
+ COPY --chown=lowcoder:lowcoder deploy/docker/default.env /lowcoder/etc/default.env
267
270
268
271
# Fixes for OpenShift compatibility (after all files are copied)
269
272
RUN echo \
Original file line number Diff line number Diff line change 5
5
export USER_ID=${LOWCODER_PUID:= 9001}
6
6
export GROUP_ID=${LOWCODER_PGID:= 9001}
7
7
8
+ # Set default variable values
9
+ echo " Overriding default environment variables:"
10
+ for line in ` grep ' ^[ \t]*LOWCODER_.*$' /lowcoder/etc/default.env` ; do
11
+ VARNAME=` echo ${line} | sed -e ' s/^\([A-Z0-9_]\+\)\([ \t]*=[ \t]*\)\(.*\)$/\1/' `
12
+ if [ -z " $( eval echo \"\$ $VARNAME \" ) " ]; then
13
+ export $( eval echo " ${line} " )
14
+ else
15
+ echo " ${line} "
16
+ fi ;
17
+ done ;
18
+ echo " Done."
19
+
8
20
# Update ID of lowcoder user if required
9
21
if [ ! " $( id --user lowcoder) " -eq ${USER_ID} ]; then
10
22
usermod --uid ${USER_ID} lowcoder
You can’t perform that action at this time.
0 commit comments