EDIT: resolved - needed to add box: `RUN box cfpm...
# docker
j
EDIT: resolved - needed to add box:
RUN 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:
Copy code
=> 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:
Copy code
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
Copy code
* text=auto eol=lf
cmd
Copy code
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?
Copy code
# cfpm install sqlserver
/bin/sh: 1: cfpm: not found
# echo $PATH
/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin