Your code assumes there’s :/opt/lucee/web/cfclasses/ exists in Ubuntu box and map it to the newly created directory named “compiled” under current directory, correct?
My Ubuntu box does not have /opt/lucee/web/cfclasses directory
no /opt/lucee in the first place.
Code runs, it create a docker instance, however, the “compiled” directory is still empty.
Probably I’m missing something here.
Or the above steps are necessary, then, I use this instance, upon its usage, the “compiled” directory would be populated?
supposed so, I created the following docker instance for it:
$PWD/compiled is on the HOST, /opt/lucee/web/cfclasses/ is in the CONTAINER
Reread my detailed message. Reread the lucee4 container docs.
Folder locations
Web root for default site: /var/www
Configuration folders:
Tomcat config: /usr/local/tomcat/conf
Lucee config for default site: /opt/lucee/web
Lucee server context: /opt/lucee/server/lucee-server/context
Log folders:
Tomcat logs: /usr/local/tomcat/logs
Lucee logs for default site: /opt/lucee/web/logs
You need to determine where the cfclasses folder is. And pull the files from there.
If all else fails, export the container as a tar and find it. i.e. docker export compiler |tar -tvf - and look for cfclasses, and all your compiled class files.
For that matter you can just extract them from the tar.
You… fix the tcp port mapping.
It’s listening to 8080 INSIDE the container. So you want -p 8888:8080 or -p 8887:8080
Or if 8888 is the port inside the container you need, use -p 8887:8888