Jason Ryan
03/09/2023, 10:35 PMbdw429s
03/09/2023, 10:37 PMortussolutions/commandbox?bdw429s
03/09/2023, 10:38 PMbdw429s
03/09/2023, 10:38 PMbdw429s
03/09/2023, 10:38 PMbdw429s
03/09/2023, 10:39 PMJason Ryan
03/09/2023, 10:39 PMJason Ryan
03/09/2023, 10:39 PMbdw429s
03/09/2023, 10:40 PM<h1>?Jason Ryan
03/09/2023, 10:40 PMJason Ryan
03/09/2023, 10:40 PMbdw429s
03/09/2023, 10:41 PMbdw429s
03/09/2023, 10:41 PMbdw429s
03/09/2023, 10:41 PMJason Ryan
03/09/2023, 10:42 PMlucee:5.3.10.120-light-nginx image I have this step to install commandboxJason Ryan
03/09/2023, 10:42 PMbox startbdw429s
03/09/2023, 10:44 PMbdw429s
03/09/2023, 10:44 PMbdw429s
03/09/2023, 10:44 PMbdw429s
03/09/2023, 10:44 PMJason Ryan
03/09/2023, 10:45 PMJason Ryan
03/09/2023, 10:45 PMbdw429s
03/09/2023, 10:46 PMortussolutions/commandbox and map your code into /app but a lot of this depends on what your expectations are and how your app is set up.Jason Ryan
03/09/2023, 10:47 PMbdw429s
03/09/2023, 10:47 PMserver.json and a specific set of env vars to configure it (CFConfig too)bdw429s
03/09/2023, 10:47 PMbdw429s
03/09/2023, 10:48 PMbdw429s
03/09/2023, 10:48 PMJason Ryan
03/09/2023, 10:49 PMbdw429s
03/09/2023, 10:49 PMJason Ryan
03/09/2023, 10:50 PMbdw429s
03/09/2023, 10:50 PMtestbox run command, or do you just want to hit them in the browser, etc, etc?bdw429s
03/09/2023, 10:50 PMbdw429s
03/09/2023, 10:51 PMbdw429s
03/09/2023, 10:51 PMJason Ryan
03/09/2023, 10:51 PMtestbox run command in the CLI, we use that in our CI/CD for example. The reason I wanted to hit it in the browser is for better debugging capabilities, as in seeing my output (I posted about this earlier and someone recommended to hit it in the browser)bdw429s
03/09/2023, 10:52 PMcurl command, testbox run, etcbdw429s
03/09/2023, 10:52 PMtestbox run command shows you the URL it hits. You can just copy that and use whatever the existing ports are that are mapped outside of your containerbdw429s
03/09/2023, 10:52 PMreporter=JSON bit and you'll get an HTML versionJason Ryan
03/09/2023, 10:54 PMJason Ryan
03/09/2023, 10:54 PMJason Ryan
03/09/2023, 10:55 PMtestbox run URL that I get ERR_EMPTY_RESPONSE, despite having port 42518 mapped outside the containerbdw429s
03/09/2023, 10:55 PMbdw429s
03/09/2023, 10:55 PMbdw429s
03/09/2023, 10:56 PMbdw429s
03/09/2023, 10:56 PMJason Ryan
03/09/2023, 10:57 PMJason Ryan
03/09/2023, 10:57 PMbdw429s
03/09/2023, 10:58 PM/tests/runner.cfm to the end 🙂Jason Ryan
03/09/2023, 10:58 PMbdw429s
03/09/2023, 10:58 PMJason Ryan
03/09/2023, 10:58 PMbdw429s
03/09/2023, 10:58 PMJason Ryan
03/09/2023, 10:59 PMbdw429s
03/09/2023, 10:59 PMtestbox run command at a URL that happens to be hosted on a docker container, the CLI doesn't even carebdw429s
03/09/2023, 11:00 PMbetter portabilityRight, you'll find I'm fairly opinionated about this and feel free to discard my opinions, but my take is that CommandBox itself offers 98% of the portability you need with MUCH LESS hassle than Docker which is a HUGE dependency, both size, resource, and knowledge-wise
Jason Ryan
03/09/2023, 11:01 PMJason Ryan
03/09/2023, 11:01 PMbdw429s
03/09/2023, 11:01 PMbox.exe to be dropped on the desktop, a new develpepr workflow is literally just
git clone ...
box install
box startbdw429s
03/09/2023, 11:01 PMJason Ryan
03/09/2023, 11:02 PMbdw429s
03/09/2023, 11:02 PMbdw429s
03/09/2023, 11:02 PMbdw429s
03/09/2023, 11:02 PMbox commands anywherebdw429s
03/09/2023, 11:02 PMJason Ryan
03/09/2023, 11:02 PMbdw429s
03/09/2023, 11:02 PMbdw429s
03/09/2023, 11:03 PM<double click box.exe>
cd /path/to/projects
!git clone ...
cd project
install
server startbdw429s
03/09/2023, 11:03 PMJason Ryan
03/09/2023, 11:03 PMbdw429s
03/09/2023, 11:04 PM! in frontbdw429s
03/09/2023, 11:04 PMbdw429s
03/09/2023, 11:04 PMbdw429s
03/09/2023, 11:05 PMbdw429s
03/09/2023, 11:06 PMbox install and box start can already encapulate
• CF engine
• Java version
• jvm args
• web server settings
• CFConfig
• dependenciesJason Ryan
03/09/2023, 11:06 PMbdw429s
03/09/2023, 11:06 PMJason Ryan
03/09/2023, 11:08 PMJason Ryan
03/09/2023, 11:08 PMbdw429s
03/09/2023, 11:09 PMbdw429s
03/09/2023, 11:09 PM! trick is covered here
https://commandbox.ortusbooks.com/usage/execution/os-binaries