docker-commandbox
  • m

    mike42780

    05/02/2022, 5:05 PM
    I have a local ACF 2021 environment setup locally on Windows 10 using Commandbox (not with docker). I need to do some PDF creation work, so I've been looking into the Coldfusion addons to get the PDF Service running and use cfhtmltopdf. My first choice was to use the docker version of the coldfusion addons so I could just turn it on when needed. I got it running on port 8993. I go into the coldfusion administrator and find the PDF service. I verified the connection, and then started it. Everything works great. I can go to http://127.0.0.1:8993 in the browser and see that the PDFgServlet is started. However when I try to create a PDF I get this error: "Error occurred while generating PDF. Reason: BAD REQUEST". I know the code works because I push it up to our Dev server and it runs fine. Any ideas why it appears to be running fine, but then won't create the PDF?
  • jclausen

    jclausen

    05/03/2022, 3:48 PM
    Commandbox Docker v3.5.0 Images released:
    This release upgrades the CommandBox binary to 5.5.1, which uses Lucee 5.3.9 as the underlying CFML engine. In addition, this release changes the underlying base image over to use the
    eclipse-temurin
    image builds, as the
    adoptopenjdk
    builds are being sunsetted. With this change, the underlying Debian version changes to use Ubuntu 20.0.0 (focal). As such, some custom installs in Dockerfiles may need updates to available packages from this distro.
    https://www.ortussolutions.com/blog/commandbox-docker-v350-images-released
  • Cavan Vannice

    Cavan Vannice

    05/10/2022, 5:43 PM
    Has anyone had any success/issues applying a CF2021 Enterprise license to the ortussolutions/commandbox:adobe2021 docker image in Azure App Service or Azure Pipelines? I'm still new to docker, but it works fine on my local Docker Desktop setup. I've dropped
    "license":XXXXXXXXX
    into
    .cfconfig.json
    via
    cfconfig set
    . I've added the
    cfconfig_license=XXXXXXXXX
    at multiple points. .env, dockerfile, docker-compose.yml, azure-pipelines.yml. I've also tried adding it into the pipeline and the app service variables. It seems stuck on Enterprise Trial.
  • Cavan Vannice

    Cavan Vannice

    06/07/2022, 4:55 PM
    I have a website running on the latest CommandBox docker image. I am getting an error when trying to generate a PDF using a remote CF2021 Add-ons server
    Error occurred while generating PDF. Reason: BAD REQUEST
    . The exact same code works on a normal CF2021 install with add-ons locally. On the CommandBox server, I have confirmed that it is able to register the PDFg service manager
    PDFg service manager <http://10.0.0.242:8993/PDFgServlet/> registered.
    . I have also confirmed that the remote PDFg server is receiving communications from my local CommandBox docker
    192.168.2.84 - - [07/Jun/2022:15:42:49 +0000] "GET /PDFgServlet/verify HTTP/1.1" 200 0 "-" "Apache-HttpClient/4.5.13 (Java/11.0.15)"
    . The PDFg service seems to work locally but not remotely. Todays logs from our production servers PDFg service I am trying to connect to:
    127.0.0.1 - - [07/Jun/2022:12:10:31 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35568 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:13:31:14 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 37152 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:13:31:40 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 37150 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:14:55:16 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35826 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:21:50 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 34965 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:21:51 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 34964 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    192.168.2.84 - - [07/Jun/2022:15:22:16 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 256 "-" "Apache-HttpClient/4.5.13 (Java/11.0.15)"
    127.0.0.1 - - [07/Jun/2022:15:23:57 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35405 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:23:58 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35186 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:23:58 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35273 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:23:59 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35831 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:23:59 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35215 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:23:59 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35236 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:24:00 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 36843 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:24:00 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35257 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:24:00 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35204 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:24:01 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 34762 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:24:01 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 35506 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    192.168.2.84 - - [07/Jun/2022:15:24:26 +0000] "POST /PDFgServlet/ HTTP/1.1" 400 504 "-" "Apache-HttpClient/4.5.13 (Java/11.0.15)"
    192.168.2.84 - - [07/Jun/2022:15:31:42 +0000] "POST /PDFgServlet/ HTTP/1.1" 400 504 "-" "Apache-HttpClient/4.5.13 (Java/11.0.15)"
    192.168.2.84 - - [07/Jun/2022:15:34:16 +0000] "GET /PDFgServlet/verify HTTP/1.1" 200 0 "-" "Apache-HttpClient/4.5.13 (Java/11.0.15)"
    127.0.0.1 - - [07/Jun/2022:15:38:30 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 36335 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    127.0.0.1 - - [07/Jun/2022:15:40:37 +0000] "POST /PDFgServlet/ HTTP/1.1" 200 36340 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    192.168.2.84 - - [07/Jun/2022:15:41:10 +0000] "POST /PDFgServlet/ HTTP/1.1" 400 504 "-" "Apache-HttpClient/4.5.13 (Java/11.0.15)"
    127.0.0.1 - - [07/Jun/2022:15:42:14 +0000] "GET /PDFgServlet/verify HTTP/1.1" 200 0 "-" "Apache-HttpClient/4.5.13 (Java/11.0.11)"
    192.168.2.84 - - [07/Jun/2022:15:42:49 +0000] "GET /PDFgServlet/verify HTTP/1.1" 200 0 "-" "Apache-HttpClient/4.5.13 (Java/11.0.15)"
    I am hoping someone from Adobe can help @priyank_adobe @Mark Takata (Adobe)
  • Adam Brunt

    Adam Brunt

    06/23/2022, 3:04 PM
    Hi all, please be kind to the newbie who is probably about to ask very newbie questions 🙂 I was pointed in this direction by the good folks in the Facebook CF Programmers group. I have a CF2016 application which I am trying to convert to run inside a Lucee Docker container [ with the long term goal to save on Adobe license costs and deploying in an Azure container environment - it's currently running on an Azure VM ]. It is has been recommended to me that Commandbox is the way to go but, whilst I am fairly up to speed with Docker and very up to speed with CF, my knowledge of Lucee and Commandbox is not so great. I have started doing some digging with the exisiting commandbox docker images and can get a empty Lucee container running without problems. I can also build a container running Lucy and containing my application code but when I try to access the app (in the container) I get errors which are presumably caused by all my CFAdmin settings not being setup in the container. Is anyone able to point me in the direction of some sort of step-by-step guide/hand-holding to get the app running in the container ? Once I know all the settings have been included in the docker image/container then I am fairly sure I can sort out any Lucee compatibility issues. Anyone able to help ?
  • p

    pge

    07/11/2022, 11:58 AM
    Hey guys! We're experiencing a problem utilizing cfmail. We're running commandbox 5.4.2+00453 and get the error:
    [ERROR] runwar.context: Jul 11, 2022 1:22:35 PM javax.mail.Session loadResource
    WARNING: expected resource not found: /META-INF/javamail.default.address.map
    Any idea on that?
  • d

    dbinott

    07/24/2022, 4:21 PM
    Yes, but I don't understand it. I have heard and read that you don't need to clone the repo anymore, but if I don't, then I get errors because it is looking for files in the repo. I looked at the progressive one, but it's based on Lucee.
  • p

    paul

    08/02/2022, 10:10 PM
    When I use docker commandbox, how can I specify that when I start the server robust debugging is enabled?
  • Cory Howitz

    Cory Howitz

    08/25/2022, 4:56 PM
    I've been trying to get kerberos to work on an mssql dsn in this since its linux based. i can get it working with a keytab, but when i try to get the jdbc to pick up a ticket cache, it just wont do it.
  • j

    Jordan Clark

    09/15/2022, 8:24 PM
    @jclausen I got stung with ortussolutions/commandbox:jdk11-alpine version bumping commandbox causing a deployment problem. Is there any way to specify an image tag for alpine + a specific commandbox version? It doesn't look like the :commandbox-X.X.X tags are being used anymore?
  • jclausen

    jclausen

    09/15/2022, 8:28 PM
    @Jordan Clark You can use the image version tags, which have a pinned version of commandbox. The previous tag would be
    :jdk11-alpine-3.5.4
    ( https://hub.docker.com/layers/ortussolutions/commandbox/jdk11-alpine-3.5.4/images/sh[…]b0013365c14400a4f37e39f4c543a1c13e033c49a2a9d?context=explore ) The current version is
    3.6.0
  • jclausen

    jclausen

    09/15/2022, 8:29 PM
    When you say you “got stung”, what did you encounter?
  • j

    Jim Priest

    09/30/2022, 7:51 PM
    Trying to spool up CF2021 - I tweaked my docker-compose file and CF and my app fire up but I get errors which I expected because I have no packages installed. But trying to use CFPM_INSTALL doesn't seem to be working. I can see cfconfig run but then I get an error complaining things can't connect: [ERROR] runwar.context: The sqlserver package is not installed. I only changed the image line and added the CFPM_INSTALL line in my file:
    cfml:
        container_name: cfml
        hostname: <http://local.foo.com|local.foo.com>
        image: ortussolutions/commandbox:adobe2021
    
        environment:
          CFPM_INSTALL: sqlserver
          BOX_SERVER_CFCONFIGFILE: myconfig.json
    I sort of expected to see something in this section:
    | Dry run specified, exiting without starting server.
    cfml       |    |------------------------------
    cfml       |    || Overriding server.json values from env vars
    cfml       |    |   |----------------------------------------------------------
    cfml       |    |   | Overridding [CFCONFIGFILE] with OS environment variable [BOX_SERVER_C
    cfml       |    |   | FCONFIGFILE
    cfml       |    |   | Overridding [RUNWAR.ARGS] with OS environment variable [BOX_SERVER_RU
    cfml       |    |   | NWAR_ARGS
    cfml       |    |   | Overridding [APP.SERVERHOMEDIRECTORY] with OS environment variable [B
    cfml       |    |   | OX_SERVER_APP_SERVERHOMEDIRECTORY
    cfml       |    |   | Overridding [APP.CFENGINE] with OS environment variable [BOX_SERVER_A
    cfml       |    |   | PP_CFENGINE
    cfml       |    |   |----------------------------------------------------------
    cfml       |    || Setting Server Profile to [development]
    cfml       |    |   |------------------------------------------------------
    cfml       |    |   | Profile set from profile property in server.json
    cfml       |    |   | Block CF Admin disabled
    cfml       |    |   | Block Sensitive Paths enabled
    cfml       |    |   | Block Flash Remoting enabled
    cfml       |    |   | Directory Browsing enabled
    cfml       |    |   | File Caching disabled
    cfml       |    |   |------------------------------------------------------
    cfml       |    || Loading CFConfig into server
    cfml       |    |   |-------------------------------------------
    cfml       |    |   | Found CFConfig JSON in "CFConfigFile" server.json key.
    cfml       |    |   | Importing adobe config from [/app/myconfig.json]
    cfml       |    |   | Config transferred from /app/myconfig.json!
    cfml       |    |   | Found OS environment variable [cfconfig_adminPassword]
    cfml       |    |   | Importing into [adobe]...
    cfml       |    |   | [adminPassword] set.
    cfml       |    |   |-------------------------------------------