Hi guys! Hope you are all doing well.
I´m having issues trying to build an enviroment using some of the images available at Docker Hub ( ortussolutions/commandbox:adobe2023-alpine, ortussolutions/commandbox:adobe2023-3.8.0 and ortussolutions/commandbox:adobe2023) all producing the same result:
What should I do to fix this? Trying to build this project with any CF-2021 works as expected.
My impression is that something in the CF-2023 version is blocking the script from creating the /usr/local/lib/CommandBox/lib directory.
This is the docker file that runs with it:
FROM ortussolutions/commandbox:adobe2023-alpine as workbench
Generate the startup script only
ENV FINALIZE_STARTUP true
RUN $BUILD_DIR/run.sh
Copy application files to root
COPY . /app/
Install our box.json dependencies (if you use coldbox)
#RUN cd /app && box install
Generate server-start.sh files
*** Don´t forget inform the release of CF, cfengine parameter ***
RUN box start cfengine=adobe@2023.0.4.330500 startScript=bash --console --dryRun --debug
#RUN box start startScript=bash --console --dryRun --debug
Listar arquivos do /app
RUN echo “Arquivos no diretório /app da imagem de build (workbench) :”
RUN echo $(ls -1 /app)
Debian Slim is the smallest OpenJDK image on that kernel. For most apps, this should work to run your applications
FROM adoptopenjdk/openjdk11:x86_64-ubuntu-jre-11.0.18_10 as app
RUN echo “Moving files from build image to deployable image…”
COPY our generated server-start
COPY --from=workbench /app/server-start.sh /usr/local/bin/server-start.sh
RUN chmod 744 /usr/local/bin/server-start.sh
COPY --from=workbench /app /app
RUN mkdir -p /usr/local/lib/CommandBox/lib
RUN mkdir -p /usr/local/lib/CommandBox/server/serverHome
Verify the specific runwar on the build image using the command : docker run -it ortussolutions/commandbox:adobe2018 bash
COPY --from=workbench /usr/local/lib/CommandBox/lib/runwar-4.7.7.jar /usr/local/lib/CommandBox/lib/runwar-4.7.7.jar
COPY --from=workbench /usr/local/lib/CommandBox/server/serverHome /usr/local/lib/CommandBox/server/serverHome
COPY --from=workbench /usr/local/lib/CommandBox/cfml /usr/local/lib/CommandBox/cfml
Install Adobe CF bundles
RUN cd /usr/local/lib/CommandBox/server/serverHome/adobe-2023.0.4.330500/WEB-INF/cfusion/bin && ./cfpm.sh install azureservicebus,websocket,pdf,print,report,exchange,oracle,htmltopdf,sharepoint,azureblob,scheduler,saml,debugger,mail,zip,image,spreadsheet,caching,adminapi,administrator
RUN echo “Everything is Ok! Starting the Server…”
Let´s start the Server
CMD /usr/local/bin/server-start.sh
Thanks in advance,
Vinicius Perdigão