Jim Priest
08/16/2023, 3:10 PMENV CFPM_INSTALL but then read this doesn't work without a warmed up server
So then tried
# Install required packages with ColdFusion Package Manager (CFPM)
${BIN_DIR}/box cfpm install adminapi,administrator,ajax,caching,chart,document,feed,image,mail,mysql,spreadsheet,zip
But see this error:
Packages have been downloaded. Now they will get installed.
devenv-1 | caching package cannot be installed by the server. Please check the server logs and try installing again.
etc for each package I'm trying to install?
What's weird however is later in the console I see:
devenv-1 | [INFO] 2023-08-16T11:09:49-04:00 runwar.context - Aug 16, 2023 11:09:49 AM Information [main] - Package caching started...Mark Takata (Adobe)
08/16/2023, 5:58 PMJim Priest
08/16/2023, 6:34 PMMark Takata (Adobe)
08/16/2023, 6:53 PMJim Priest
08/16/2023, 7:09 PMcfml | [INFO] 2023-08-16T19:03:38Z runwar.context - Aug 16, 2023 19:03:38 PM Information [main] - Package ajax started...Jim Priest
08/16/2023, 7:10 PMjclausen
08/16/2023, 7:11 PMjclausen
08/16/2023, 7:11 PMJim Priest
08/16/2023, 7:12 PMjclausen
08/16/2023, 7:12 PMJim Priest
08/16/2023, 7:14 PMJim Priest
08/16/2023, 7:20 PMjclausen
08/16/2023, 7:20 PMWEB-INF/bundlesjclausen
08/16/2023, 7:21 PMJim Priest
08/16/2023, 7:21 PMjclausen
08/16/2023, 7:21 PMJim Priest
08/16/2023, 7:23 PMMark Takata (Adobe)
08/16/2023, 7:24 PMjclausen
08/16/2023, 8:17 PMcfpm install does just “download” the packages to the server’s WEB-INF/bundles directory and updates the dependency file. The activation of the packages happens when the server starts. You have to have a server home established, though, when you run the command. Having the ability to install to a non-server bundles directory would be convenient, and portable:
e.g. cfpm.sh --bundleDirectory /var/opt/cfpm_bundles install orm,mysql,administrator,adminapi
I wouldn’t complain about native server startup environment variable support ( your Docker images have this - but they pass through to cfpm.sh, same with the Ortus ones ). Lucee has the latter and it makes it easy to start a server and ensure that the requested extensions/packages are downloaded and installed at the first time of server start.
e.g. CFPM_INSTALL=orm,mysql,administrator,adminapiJim Priest
08/16/2023, 8:24 PM