I am trying to get a simple version of my app running in Docker rather than locally.
I am staring the Lucee docker image with
docker run --name test -p 80:80 -v/tmp/tt:/var/www -it lucee/lucee51-nginx
but
this doesn’t give me an interactive shell prompt (-it normally does, right ?)
the lucee admin isn’t available. I just get a 403 from nginx http://localhost/lucee/admin/server.cfm
modius
April 21, 2017, 1:05pm
2
Might be easier to start with a simple project structure with its own Dockerfile
The admin is specifically blocked by default. You will need to implement an NGINX config that removes the admin block. There’s an example in that project I linked.
You say simple, then point to a blog post that requires install a whole bunch of other stuff (this making it more complicated).
I don’t need a VM to launch my Docker images in so Docker Workbench is pointless ?
Though I see what you mean about the Nginx config.
The official Lucee uses
https://github.com/lucee/lucee-dockerfiles/blob/master/lucee-nginx/5.1/default.conf
and replacing from
should do the job without the overhead of the installs
Any idea how to get a console on the Lucee image ? Super handy for debugging…
modius
April 21, 2017, 10:00pm
5
The link in that git repo to the workbench is a little out of date. The project structure is all I was referring to.
Been meaning to write up our internal docker tool chain for some time, will probably have a crack sooner rather than later.
thefalken:
this doesn’t give me an interactive shell prompt (-it normally does, right ?)
Only if the entrypoint you are running takes input – in this case the entrypoint is Tomcat, so no, Tomcat will just start up.
If you have a running container and you want to attach a bash shell to it, you can do something like;
docker ps
docker exec -it YOUR_CONTINAER_ID bash
2 Likes
modius
April 26, 2017, 1:25am
7
Put together a little blog post over the weekend that might be of interest:
Docker’s an ecosystem you have to immerse yourself into to make the most of it. But I can’t blame folks for wanting to just get in there and see what’s going on without all the reading and stuff… I’ve put together what i call a “stumble through...
Reading time: 3 mins 🕑
Likes: 5 ❤
Nice. I think I’m there now with automatic mass-virtual hosting working fine.
This means I can give it to anyone on the team, and they just create project.localdomain in their hosts file, and it serves out of the ‘project’ sub folder of the /var/www volumne.
We’ve recently detailed our approach to team development in docker:
Docker offers native tooling for Windows and Mac OSX using their recently acquired Hyper-V virtualization technology. For several reasons we still prefer a standardised docker-engine set up using docker-machine and Oracle’s VirtualBox technology....
Reading time: 3 mins 🕑
Likes: 4 ❤
We’re working on some more detailed daily workflows too
1 Like