Mason B
06/10/2022, 7:51 PMdatasource [name] doesn't exist
Was trying to look through all the files and .jsons and such, but nothing seemed to do the trick. Did manually set the database in a couple spots(including using data cfconfig save) Any help would be appreciated šbdw429s
06/10/2022, 7:54 PMthis.datsources
?Mason B
06/10/2022, 7:55 PMbdw429s
06/10/2022, 7:55 PMbdw429s
06/10/2022, 7:55 PMbdw429s
06/10/2022, 7:56 PMbdw429s
06/10/2022, 7:56 PMMason B
06/10/2022, 7:58 PMMason B
06/10/2022, 7:58 PMbdw429s
06/10/2022, 7:59 PMbdw429s
06/10/2022, 7:59 PMfor security reasonsOn Development??
Mason B
06/10/2022, 8:00 PMMason B
06/10/2022, 8:00 PMbdw429s
06/10/2022, 8:00 PMbdw429s
06/10/2022, 8:00 PMbdw429s
06/10/2022, 8:00 PMbdw429s
06/10/2022, 8:00 PMbdw429s
06/10/2022, 8:01 PMbdw429s
06/10/2022, 8:01 PMMason B
06/10/2022, 8:02 PMbdw429s
06/10/2022, 8:02 PMbdw429s
06/10/2022, 8:02 PMserver start
with literally nothing installed and you'd be ready to go!bdw429s
06/10/2022, 8:03 PMbdw429s
06/10/2022, 8:04 PMbdw429s
06/10/2022, 8:04 PMMason B
06/10/2022, 8:04 PMbdw429s
06/10/2022, 8:04 PMbdw429s
06/10/2022, 8:04 PMMason B
06/10/2022, 8:05 PMbdw429s
06/10/2022, 8:05 PMMason B
06/10/2022, 8:06 PMbdw429s
06/10/2022, 8:06 PMMason B
06/10/2022, 8:07 PMbdw429s
06/10/2022, 8:08 PMbdw429s
06/10/2022, 8:08 PMbdw429s
06/10/2022, 8:09 PMbdw429s
06/10/2022, 8:10 PMserver list
)Dave Merrill
06/10/2022, 8:18 PMbdw429s
06/10/2022, 8:19 PMMason B
06/10/2022, 8:19 PM.cfonfig
but working within the container there is another box.json
⢠I docker exec into the container, and use the box start
command. Its a server from our box.Json file
⢠There are three servers in there. Only one is running
⢠Our Database is also running in a separate containerMason B
06/10/2022, 8:21 PMbdw429s
06/10/2022, 8:28 PMMason B
06/10/2022, 8:29 PMbdw429s
06/10/2022, 9:01 PMbdw429s
06/10/2022, 9:02 PMNginix automatically blocks it on a container level,This is common, and the workaround is easy. expose the HTTP port Lucee is listening on (that nginx proxies to) and just hit Lucee directly to visit the admin
bdw429s
06/10/2022, 9:02 PMbdw429s
06/10/2022, 9:04 PM⢠lucee/lucee:5.3.8.206-nginxMay I interest you in the
ortussolutions/commandbox
docker images š They have CFConfig and more baked in AND they also do automatically configurable lockdowns based on environment/profile!! So you set your profile=production
env var and you're 100% locked down, but you set your profile=development
env var and you're unlocked for dev. It's amazing šbdw429s
06/10/2022, 9:05 PM⢠There are three servers in there. Only one is runningThis sounds a little terrifying. Docker containers are designed to run one server/site. I don't know what crazy they have going on, but I can almost guaruntee your datasoruces are being imported into one server and your tests are running on another server
bdw429s
06/10/2022, 9:06 PMuse theThis makes negative 0 sense. You're using thecommandbox start
lucee/lucee
docker image, which already has a baked in Tomcat/Lucee installation, but you also installed CommandBox and then you're firing up more Lucee servers via CommandBox? WUT??bdw429s
06/10/2022, 9:06 PMbdw429s
06/10/2022, 9:07 PMMason B
06/10/2022, 9:19 PMMason B
06/10/2022, 9:20 PMMason B
06/10/2022, 9:20 PMMason B
06/10/2022, 9:21 PMbdw429s
06/10/2022, 9:30 PMlucee/lucee
to start your Lucee server, then your tests should be running on that server. But if you're wanting to make use of "Box" features like box.json
, CFConfig, and server.json
, then I'd ditch the Lucee image entirely and use the Ortus CommandBox one.bdw429s
06/10/2022, 9:31 PMMason B
06/10/2022, 9:31 PMbdw429s
06/10/2022, 9:35 PM