Leon Miller-Out
03/23/2022, 3:23 PMAPP_ENV
in my docker-compose.yml
to be /app/htdocs_www
, and I’ve mounted the app code appropriately. Early in the startup process for the container, I see:
Start script for shell [bash] generated at: /app/server-start.sh
(This is coming from commandbox’s ServerCommandLine.cfc
)
Then later I see:
har-lucee-1 | INFO: Starting server using generated script: /usr/local/bin/startup.sh
har-lucee-1 | + [[ ! -n '' ]]
har-lucee-1 | + [[ ! -n '' ]]
har-lucee-1 | + echo 'INFO: Starting server using generated script: /usr/local/bin/startup.sh'
har-lucee-1 | + mv /app/htdocs_www/server-start.sh /usr/local/bin/startup.sh
har-lucee-1 | mv: cannot stat '/app/htdocs_www/server-start.sh': No such file or directory
har-lucee-1 exited with code 1
(This is coming from docker-commandbox’s start-server.sh
)
So there’s some disagreement about where server-start.sh
is supposed to be. It seems like docker-commandbox is respecting APP_ENV, but commandbox is not. Any ideas about where to start troubleshooting this?Leon Miller-Out
03/23/2022, 3:24 PMbdw429s
03/23/2022, 7:16 PMbdw429s
03/23/2022, 7:16 PMbdw429s
03/23/2022, 7:17 PMbdw429s
03/23/2022, 7:17 PMAPP_ENV
, did you actually mean to say APP_DIR
?Leon Miller-Out
03/23/2022, 7:18 PMLeon Miller-Out
03/23/2022, 7:18 PMAPP_DIR
.Leon Miller-Out
03/23/2022, 7:18 PMbdw429s
03/23/2022, 7:20 PMbdw429s
03/23/2022, 7:20 PMENV APP_DIR=/var/www
that's the only setting I have-- nothing else is in place that affects the web root, and it's working finebdw429s
03/23/2022, 7:20 PMLeon Miller-Out
03/23/2022, 7:21 PMenvironment:
APP_DIR: /app/htdocs_www
Leon Miller-Out
03/23/2022, 7:21 PMENV
in the Dockerfile.bdw429s
03/23/2022, 7:38 PMbdw429s
03/23/2022, 7:38 PMbdw429s
03/23/2022, 7:38 PMbdw429s
03/23/2022, 7:38 PMbdw429s
03/23/2022, 7:38 PMbdw429s
03/23/2022, 7:38 PMLeon Miller-Out
03/23/2022, 7:57 PMLeon Miller-Out
03/23/2022, 7:58 PMLeon Miller-Out
03/23/2022, 7:59 PMENTRYPOINT /app/server-start.sh
in my Dockerfile.bdw429s
03/23/2022, 8:14 PMLeon Miller-Out
03/23/2022, 9:19 PMRUN box config set server.singleServerMode=false
bdw429s
03/23/2022, 9:20 PMbdw429s
03/23/2022, 9:20 PMbdw429s
03/23/2022, 9:20 PMbdw429s
03/23/2022, 9:20 PMLeon Miller-Out
03/23/2022, 9:20 PMbdw429s
03/23/2022, 9:20 PMLeon Miller-Out
03/23/2022, 9:20 PMFROM ortussolutions/commandbox:lucee5-3.4.5
Leon Miller-Out
03/23/2022, 9:21 PMbdw429s
03/23/2022, 9:21 PMbdw429s
03/23/2022, 9:21 PMbdw429s
03/23/2022, 9:21 PMbdw429s
03/23/2022, 9:21 PMbdw429s
03/23/2022, 9:21 PMbdw429s
03/23/2022, 9:21 PMbdw429s
03/23/2022, 9:21 PMbdw429s
03/23/2022, 9:21 PMbdw429s
03/23/2022, 9:21 PMbdw429s
03/23/2022, 9:23 PMFROM ortussolutions/commandbox
and then set the CFengine you want
ENV BOX_SERVER_APP_CFENGINE=lucee@5.3.8+206
bdw429s
03/23/2022, 9:23 PMLeon Miller-Out
03/23/2022, 9:24 PMLeon Miller-Out
03/23/2022, 9:27 PMLeon Miller-Out
03/23/2022, 9:28 PMbdw429s
03/23/2022, 9:35 PMbdw429s
03/23/2022, 9:36 PMbdw429s
03/23/2022, 9:36 PMbdw429s
03/23/2022, 9:36 PMbdw429s
03/23/2022, 9:36 PMLeon Miller-Out
03/24/2022, 2:27 PM