http://coldfusion.com logo
Join Slack
Powered by
# docker
  • p

    Patrick

    03/24/2023, 3:27 AM
    Has anyone utilize mongo db on a lightweight base image like Alpine to help improve spin up time? Mongo's official images are all ubuntu based; any feedback would be great. Thanks!
  • j

    Jedihomer Townend

    07/04/2023, 1:37 PM
    Is it possible to 'warm-up' a ColdFusion docker image? We're trying to create a base image with the modules installed and settings setup so that our apps don't have to install all this when they launch... but so far, our Dockerfile can launch CF so that it does this, but there doesn't seem to be a way of stopping CF afterwards... Our Lucee images, we start lucee, curl a command then stop lucee, can we do similar for ColdFusion?
  • j

    Jedihomer Townend

    07/04/2023, 3:11 PM
    Seem to have convolutedly sorted this by copying the startup script inside the image, modifying it so that it stops cf at the end and running it in the base image code
    a
    t
    +2
    • 5
    • 5
  • a

    Adam Cameron

    07/27/2023, 9:06 AM
    What do you check for with your docker health checks? For our app containers, we have been checking it can reach the DB, and the one critical upstream web service (which is in an adjacent container on the same VPS). But our hosting providers said "nah, Docker health check should just check stuff about the container itself; have other alerts - which we do have - for overall system stability". The reason being that when a health check fails, the usual thing is to restart the container... and an upstream service not part of the container is not ever gonna be fixed by that. I kinda see the sense there. But thought I'd check elsewhere for other opinions too.
    t
    p
    +2
    • 5
    • 5
  • j

    Jim Priest

    07/29/2023, 7:04 PM
    Anyone successfully build CF2021 with Docker on a Mac M1? I've got a CF2018 container which runs fine on Linux, Mac Intel and Mac M1. New CF2021 container is running Debian Bullseye and Java 11 and we're using the zip installer. I've simply tweaked the 2018 dockerfile and related scripts to use CF2021 instead with some additions for cfpm. This runs fine on Linux and Mac Intel but on the M1 chip it constantly, and randomly fails... usually when starting/stopping CF initially or during the installations of packages. I've had 2 co-workers try it and I just commandeered my daughters M1 and see the same thing. 😕
    p
    l
    • 3
    • 14
  • j

    Jim Priest

    08/08/2023, 7:40 PM
    OK - @jclausen has been helping me with my multi-stage build to get CF2021 working on Mac M1. Now I've run into a weird issue trying to change the APP_DIR to something other than /app which seems like it should be simple LOL I've simplified my build and posted it here: https://github.com/jimpriest/mac-m1-test/blob/main/Dockerfile If I set APP_DIR to /app - everything works. I can build it, run it and hit the CFAdmin, etc. If I set APP_DIR to /jim - it builds, but when I run docker compose up it fails with an error about /app
    Copy code
    cfml  | 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
    Copy code
    '-war' '/app/' \
  • p

    Patrick

    08/08/2023, 8:15 PM
    @Jim Priest any reason to need a full heavy docker local setup/builds when commandbox can be running on a mac m1 in 2 minutes?
    j
    j
    j
    • 4
    • 22
  • j

    Jim Priest

    08/16/2023, 3:10 PM
    Still working on my Docker setup - almost there. I've run into a weird issue with cfpm though - I've tried both
    Copy code
    ENV 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:
    Copy code
    devenv-1 | [INFO] 2023-08-16T11:09:49-04:00 runwar.context - Aug 16, 2023 11:09:49 AM Information [main] - Package caching started...
    m
    j
    • 3
    • 19
  • j

    Jim Priest

    09/14/2023, 1:16 PM
    If you use Docker and a Mac please vote for this ticket: https://tracker.adobe.com/#/view/CF-4219337 I've been trying to get CF2021 working on a Mac M1 for a bit now - making progress with CommandBox but it would be nice if Adobe officially supported this I contacted Adobe support and official word from Adobe 😕 "MAC is not a certified and verified environment for CF docker images."
    👍🏻 1
    j
    • 2
    • 1
  • s

    Sam Scott

    09/27/2023, 8:54 PM
    Not sure what I did here... I've been building and testing images on my Windows machine and running them on a Digital Ocean droplet. The current image works fine on Windows, however, when I run it on the Ubuntu droplet, I get the following...
    Copy code
    [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?
    b
    j
    • 3
    • 12
  • l

    Leon Miller-Out

    10/04/2023, 8:40 PM
    Hi, folks! How are y’all shipping your file-based logs (application.log, exception.log, etc) from your containers to your log aggregator service?
    q
    j
    j
    • 4
    • 20
  • a

    Ayushi

    11/01/2023, 3:52 PM
    Copy code
    Hi 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
    Copy code
    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.
    b
    • 2
    • 10
  • d

    dougcain

    11/01/2023, 5:09 PM
    you should be able to use
    Copy code
    box cfpm install caching,document,xxxxx
    I do this as part of my docker build
  • a

    Ayushi

    11/02/2023, 9:59 AM
    Hey, I tried passing the command in docker build but still getting that caching package not installed.
    b
    • 2
    • 4
  • d

    dougcain

    11/02/2023, 11:22 AM
    you may have to warm up the server first so the war file is expanded in command box - RUN ${BUILD_DIR}/util/warmup-server.sh
  • d

    dougcain

    11/02/2023, 11:23 AM
    then do the RUN box cfpm install xxxx
  • a

    Ayushi

    11/02/2023, 1:36 PM
    Tried this : During build packages are getting downloaded but not getting installed while running docker image : #39 24.73 adminapi (2021.0.02.328618) package and its dependencies have been downloaded successfully. #39 24.74 administrator (2021.0.02.328618) package and its dependencies have been downloaded successfully. #39 24.75 caching (2021.0.02.328618) package and its dependencies have been downloaded successfully. #39 24.77 document (2021.0.02.328618) package and its dependencies have been downloaded successfully. #39 24.81 image (2021.0.02.328618) package and its dependencies have been downloaded successfully. #39 24.85 pdf (2021.0.02.328618) package and its dependencies have been downloaded successfully. #39 24.88 spreadsheet (2021.0.02.328618) package and its dependencies have been downloaded successfully. #39 24.90 mail (2021.0.02.328618) package and its dependencies have been downloaded successfully. #39 24.94 debugger (2021.0.02.328618) package and its dependencies have been downloaded successfully. #39 24.95 scheduler (2021.0.02.328618) package and its dependencies have been downloaded successfully. #39 24.97 sqlserver (2021.0.02.328618) package and its dependencies have been downloaded successfully. #39 24.97 feed (2021.0.02.328618) package and its dependencies have been downloaded successfully. #39 24.97 awss3legacy (2021.0.02.328618) package and its dependencies have been downloaded successfully. #39 24.98 chart (2021.0.02.328618) package and its dependencies have been downloaded successfully. #39 24.99 zip (2021.0.02.328618) package and its dependencies have been downloaded successfully. #39 24.99 The package and its dependencies have been downloaded successfully. ColdFusion server is currently not running. The package will be installed automatically once server is up. #39 DONE 26.5s #40 exporting to image #40 exporting layers
    b
    • 2
    • 2
  • a

    Ayushi

    11/02/2023, 1:37 PM
    While running same docker image getting this error :
    [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
  • a

    Adam Cameron

    11/15/2023, 2:48 PM
    Slightly OT, but it's at least related to testing CFML code... anyone running cypress.io from a docker container?
  • l

    Leon Miller-Out

    11/22/2023, 9:12 PM
    I’m really confused about the SHA digests on Docker Hub. If I run
    docker inspect ortussolutions/commandbox:3.7.3
    , it has:
    Copy code
    "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
    j
    • 2
    • 4
  • m

    MattiasR

    12/18/2023, 2:09 PM
    Have any1 successfully changed the useraccount in the official luceenginx docker?
    a
    • 2
    • 1
  • h

    harryk

    01/29/2024, 1:54 PM
    Hi, I would like to add the cfspreadsheet extension in my dockerfile - but I can't find the lex url. So I would like to do something like this, but with the cfspreadsheed url: ADD https://ext.lucee.org/esapi-extension-2.2.4.15.lex /opt/lucee/server/lucee-server/deploy/esapi-extension-2.2.4.15.lex ADD https://ext.lucee.org/org.lucee.mssql-12.2.0.jre11.lex /opt/lucee/server/lucee-server/deploy/org.lucee.mssql-12.2.0.jre11.lex Can someone tell me the correct cfspreadsheet-extension-3.0.3.lex url?
    c
    • 2
    • 2
  • d

    Dirk

    01/30/2024, 10:59 AM
    @Dirk has left the channel
  • r

    Rodney

    06/14/2024, 7:48 PM
    @Rodney has left the channel
  • d

    dawesi

    07/02/2024, 9:55 AM
    normally script my builds, but span up a docker nginx lucee container on my local windows docker... port 80 works fine... lucee/lucee:6.1.0.230-SNAPSHOT-nginx-tomcat9.0-jdk11-temurin-jammy 1. where do i get passwords for logging into os so i can configure it? 2. cant get admin so assuming it's firewalled off... even on localhost docker?? am i missing something. (set cfadmin password through env var)
    a
    g
    +2
    • 5
    • 45
  • d

    Daniel Mejia

    08/17/2024, 1:59 AM
    @Daniel Mejia has left the channel
  • n

    nyahgfx

    08/19/2024, 8:07 AM
    hello all, we want to migrate our older lucee installations with apache to a docker lucee nginx setup... but i have issues with the web root for multi vhosts. i could manage the nginx to accept hostheaders and select the correct web folder, but lucee is allways taking /var/www as the root for any site connections.... Any Tips ? Or is there a proper lucee docker multisite documentation arround ?
    l
    • 2
    • 3
  • s

    SteveJ

    01/31/2025, 6:16 PM
    Just wondering if anyone else is having issues with Docker not working with ColdFusion 2023 anymore? It was working yesterday but then last night my company auto-updated me to Docker Desktop 4.38.0 and macOS Sequoia 15.3 and today it just sits forever with the dreaded "[] Checking server startup status..." message. i'm on an M3 Pro chip. no idea if it was one of those two upgrades that broke it or just a coincidence. i was running the previous versions of Docker and macOS so this shouldn't have been a major upgrade.
    m
    p
    • 3
    • 24
  • j

    jumpmaster

    04/16/2025, 9:40 PM
    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?
    • 1
    • 1
  • t

    tattva5

    04/28/2025, 5:20 PM
    I want to host a podman commandbox container on the internet for a small private group project... any recommendations or just use AWS? I'd rather use something simpler if its out there.
    p
    q
    • 3
    • 3