I am using the base lucee/lucee-tomcat image from docker to spin up
instances on google cloud. As part of my Dockerfile I would like to set
the following 3 things:
Lucee Server Password
Lucee (default context) Web Password
Lucee Web Timezone
Where are the easiest places to set these things?
Can they be set on the filesystem?
Or Can I add code to my application.cfc to set these things?
All three of those things can be set in the config files, so essentially
you can do it the same way to the lucee-tomcat Dockerfile configures
itself. Have a copy of the lucee-server.xml and lucee-web.xml.cfm files
sitting next to your Dockerfile, and then in your Dockerfile you will add a
couple of commands to copy the files in to the container when it is built:
An easy way to configure those files is to just use the Lucee admin. Run
your container and log in to the Admin and configure everything you need
(including passwords). After that is done you can copy those files out of
the container on to your host using “docker cp”:
If you need to make more changes in the future you can do the same thing
again – configure it in the Lucee admin, then copy the files out of the
container and put them with your Dockerfile.
If you haven’t seen googles container engine on google cloud I highly
recommend checking it out. I like it better than elastic beanstalk and the
google servers are now cheaper than AWS for the most part. They way
they’ve done the clustering is awesome and unbelievable scalable.
I now run docker-compose on local dev, and gcloud deployment with
kubernetes and it works awesome. They’re got super easy to use command
line tools that make deployment so seemless its incredible. You can even
mout volumes that are active gitRepo’s (not doing this for production but
its nice for shared test enviornments).
Hopefully Lucee will continue to provide great docker support.
If you haven’t seen googles container engine on google cloud I highly
recommend checking it out. I like it better than elastic beanstalk and the
google servers are now cheaper than AWS for the most part. They way
they’ve done the clustering is awesome and unbelievable scalable.
We use Tutum.co for miscellaneous apps (it runs Docker on AWS,
DigitalOcean, Softlayer, and others), and Mesos/Marathon for larger wholly
managed node clusters (10+ servers). Am very interested to see Google
getting their act together in this area.
Hopefully Lucee will continue to provide great docker support.
We plan to do great things If you have any feature requests and/or
suggestions please raise them here:
I hadn’t looked into Tutum before, it looks pretty cool and also very
similar to Kubernetes as far as deployment and cluster scheduling, but a
little bit more cloud agnostic. Thanks for sending this over, I just
created an account and look forward to digging in a bit deeper.