Patrick
03/24/2023, 3:27 AMJedihomer Townend
07/04/2023, 1:37 PMJedihomer Townend
07/04/2023, 3:11 PMAdam Cameron
Jim Priest
07/29/2023, 7:04 PMJim Priest
08/08/2023, 7:40 PMcfml | WARNING: package com.sun.java.swing.plaf.nimbus not in java.desktop
cfml | WARNING: package com.sun.java.swing.plaf.windows not in java.desktop
cfml | java.lang.RuntimeException: File not found: /app/ (/app)
cfml | at runwar.options.CommandLineHandler.getFile(CommandLineHandler.java:1367)
cfml | at runwar.options.CommandLineHandler.parseLogArguments(CommandLineHandler.java:803)
cfml | at runwar.options.CommandLineHandler.parseLogArguments(CommandLineHandler.java:767)
cfml | at runwar.Start.main(Start.java:36)
cfml | Exception in thread "main" java.lang.NullPointerException
cfml | at runwar.logging.LoggerFactory.configure(LoggerFactory.java:53)
cfml | at runwar.Start.main(Start.java:37)
So now I'm stuck... 😕
The only place I can find an reference to '/app' is in /usr/local/bin/startup-final.sh?
I pulled some of this code from the multi-stage build example here: https://github.com/Ortus-Solutions/docker-commandbox#multi-stage-builds
'-war' '/app/' \
Patrick
08/08/2023, 8:15 PMJim 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...
Jim Priest
09/14/2023, 1:16 PMSam Scott
09/27/2023, 8:54 PM[INFO] 2023-09-25T18:17:54Z - CF Engine defined as lucee@5.3.10+120
[INFO] 2023-09-25T18:17:54Z - Server Home Directory set to: /usr/local/lib/serverHome
[INFO] 2023-09-25T18:17:54Z - Generating server startup script
dirname: missing operand
Try 'dirname --help' for more information.
Error: Unable to access jarfile server
[INFO] 2023-09-25T18:17:54Z -
[INFO] 2023-09-25T18:17:54Z - Starting server using generated script: /usr/local/bin/startup.sh
mv: cannot stat '/app/server-start.sh': No such file or directory
Anyone run into this issue? Does this have to do with something in my Docker file?Leon Miller-Out
10/04/2023, 8:40 PMAyushi
11/01/2023, 3:52 PMHi I am running docker container of ortussolutions/commandbox:adobe2021-3.8.0
with cfengine = adobe@2021 on ECS Fargate task.
When container starts running it is missing all these packages mentioned in install.txt file:
packages=felixclassloader\:2021.0.3.329779,zip:\2021.0.02.328618,chart\:2021.0.02.328618,pdf\:2021.0.02.328618,awss3legacy\:2021.0.02.328618,feed\:2021.0.02.328618,sqlserver\:2021.0.02.328618,document\:2021.0.02.328618,scheduler\:2021.0.02.328618,debugger\:2021.0.02.328618,mail\:2021.0.02.328618,image\:2021.0.02.328618,spreadsheet\:2021.0.02.328618,caching\:2021.0.02.328618,adminapi\:2021.0.02.328618,administrator\:2021.0.02.328618
All this packages are needed for our coldfusion application. I tried installing all the packages via below command in dockerfile but it doesn't help:
FROM ortussolutions/commandbox:adobe2021-3.8.0
WORKDIR /app
ENV ACCEPT_EULA "Y"
RUN box cfpm import /app/config/install.txt
Also, I tried running this command as entrypoint script but still getting same error. Since the docker image (ortussolutions/commandbox:adobe2021-3.8.0 ) once start running the container, it create WEB_INF dir and other startup process post which only it accept this command ( box cfpm import /app/config/install.txt_ to work.
For this we have to wait around 4-5 minutes then execute this command manually in docker cotnainer to get all packages installed. Anyway we can automate that during docker build.
dougcain
11/01/2023, 5:09 PMbox cfpm install caching,document,xxxxx
I do this as part of my docker buildAyushi
11/02/2023, 9:59 AMdougcain
11/02/2023, 11:22 AMdougcain
11/02/2023, 11:23 AMAyushi
11/02/2023, 1:36 PMAyushi
11/02/2023, 1:37 PM[INFO] 2023-11-02T13:30:30Z runwar.context - Nov 2, 2023 13:30:30 PM Information [main] - feed package will not be deployed as it is not installed.
[INFO] 2023-11-02T13:30:30Z runwar.context - Nov 2, 2023 13:30:30 PM Information [main] - axis package will not be deployed as it is not installed.
[INFO] 2023-11-02T13:30:30Z runwar.context - Nov 2, 2023 13:30:30 PM Information [main] - chart package will not be deployed as it is not installed.
[INFO] 2023-11-02T13:30:30Z runwar.context - Nov 2, 2023 13:30:30 PM Information [main] - spreadsheet package will not be deployed as it is not installed.
[INFO] 2023-11-02T13:30:30Z runwar.context - Nov 2, 2023 13:30:30 PM Information [main] - cfmongodb package will not be deployed as it is not installed.
[INFO] 2023-11-02T13:30:30Z runwar.context - Nov 2, 2023 13:30:30 PM Information [main] - mail package will not be deployed as it is not installed.
[INFO] 2023-11-02T13:30:30Z runwar.context - Nov 2, 2023 13:30:30 PM Information [main] - caching package will not be deployed as it is not installed.
[INFO] 2023-11-02T13:30:30Z runwar.context - Nov 2, 2023 13:30:30 PM Information [main] - zip package will not be deployed as it is not installed.
[INFO] 2023-11-02T13:30:30Z runwar.context - Nov 2, 2023 13:30:30 PM Information [main] - image package will not be deployed as it is not installed.
[INFO] 2023-11-02T13:30:30Z runwar.context - Nov 2, 2023 13:30:30 PM Information [main] - redissessionstorage package will not be deployed as it is not installed.
[INFO] 2023-11-02T13:30:30Z runwar.context - Nov 2, 2023 13:30:30 PM Information [main] - debugger package will not be deployed as it is not installed
Adam Cameron
Leon Miller-Out
11/22/2023, 9:12 PMdocker inspect ortussolutions/commandbox:3.7.3
, it has:
"Id": "sha256:2fe979c002badc0dc93a83a44e125b885f55a711568923cb426aa7ba482acbf9",
"RepoTags": [
"ortussolutions/commandbox:3.7.3"
],
"RepoDigests": [
"ortussolutions/commandbox@sha256:de82a552476be37fa85cd53ac3309b35af539cb1b6b1e3a4d465424a8c75162a"
],
Yet, the page for this image (in my arch) is https://hub.docker.com/layers/ortussolutions/commandbox/3.7.3/images/sha256-a7302890bb652705cb25bad778775dbc7ae14d6836515449ba1b1c29a23942c5?context=explore , and it lists the image’s digest as a7302890bb652705cb25bad778775dbc7ae14d6836515449ba1b1c29a23942c5
MattiasR
12/18/2023, 2:09 PMharryk
01/29/2024, 1:54 PMDirk
01/30/2024, 10:59 AMRodney
06/14/2024, 7:48 PMdawesi
07/02/2024, 9:55 AMDaniel Mejia
08/17/2024, 1:59 AMnyahgfx
08/19/2024, 8:07 AMSteveJ
01/31/2025, 6:16 PMjumpmaster
04/16/2025, 9:40 PMRUN box cfpm ...
I am running into a strange error while attempting to build a cf app on docker. Everything works fine on my mac, but I recently tried the same build process on my windows laptop since my client is running a windows server and my build fails. Here is the error:
=> ERROR [stage-1 4/4] RUN cfpm install sqlserver, orm, debugger, pdf, mail 0.5s
------
> [stage-1 4/4] RUN cfpm install sqlserver, orm, debugger, pdf, mail:
0.436 /bin/sh: 1: cfpm: not found
My Dockerfile:
FROM ubuntu:latest
RUN apt-get update \
&& apt-get install -y
FROM ortussolutions/commandbox:adobe2023
# copy application
WORKDIR /app
COPY . .
# Set cf env values
ENV CFCONFIG_ADMINPASSWORD=${CF_ADMIN_PASSWORD}
# install required adobe server packages
RUN cfpm install sqlserver, orm, debugger, pdf, mail
EXPOSE 8080
I assume this is a PATH issue, but I don't know why this would only happen on docker for windows. The ubuntu image is the same. Still, I tried updating the eol using the following:
.gitattributes
* text=auto eol=lf
cmd
git rm --cached -r .
git reset --hard
git add --update --renormalize
This did not work. I also tried moving the install commands to the CMD in the dockerfile and within the scripts.onServerInitialInstall in the server.json. No luck.
My plan now is to run the container w/out the cfpm scripts and use docker exec to make sure it is actually defined in the container somewhere. Has anyone run into this issue before?tattva5
04/28/2025, 5:20 PM