Skip to content

Instantly share code, notes, and snippets.

@elpete
Forked from anonymous/docker-log.txt
Last active February 17, 2017 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elpete/9e17ddcf332fced5720de1cdb3abb645 to your computer and use it in GitHub Desktop.
Save elpete/9e17ddcf332fced5720de1cdb3abb645 to your computer and use it in GitHub Desktop.
Lucee Extensions in Docker on Startup
2017-02-17T09:37:44Z @guustnieuwenhuis @ are the lucee environment variables implemented in the docker images?
2017-02-17T09:38:07Z @bdw429s @guustnieuwenhuis Can you explain what you mean?
2017-02-17T09:38:59Z @guustnieuwenhuis lucee has environment vraiebles like `lucee.preserve.case` %28full list: <https://docs.google.com/spreadsheets/d/10s-nn_FsoSD_RiLwjYZICacCoC386SjkEGT3pOfBJVU/edit#gid=0>%29
2017-02-17T09:39:36Z @guustnieuwenhuis I’m wondering if I can set `lucee.preserve.case` in my docker compose file
2017-02-17T09:40:05Z @guustnieuwenhuis like with `SMTP_SERVER` for example
2017-02-17T09:40:22Z @bdw429s Funny, I was about to post about a few of those. I don%27t know enough about Docker, but I assume you can set whatever props you want when starting the container.
2017-02-17T09:47:09Z @bdw429s So a quick note to everyone who was talking to me about how to install Extensions the other day. Micha reminded me of some java system properties that managed to not make it into the docs anywhere. One of them is a list of extension IDs you want Lucee to install for you on startup. I updated the docs here:
<http://docs.lucee.org/guides/running-lucee/configuring-lucee/system-properties.html>
So it would look like this in your JVM args:
```-Dlucee-extensions=E6634E1A-4CC5-4839-A83C67549ECA8D5B,465E1E35-2425-4F4E-8B3FAB638BD7280A```
which would install MongoDB and H2 automatically. And in case you%27re curious where the _heck_ to get those GUIDs from, they%27re listed on this page here:
<http://stable.lucee.org/download/?type=extensions>
2017-02-17T09:52:05Z @bdw429s @modius @markdrew @elpete :point_up:
2017-02-17T09:53:12Z @elpete So where in your Dockerfile are you setting those JVM args?
2017-02-17T09:53:38Z @elpete And how does that work with different versions?
2017-02-17T09:54:06Z @elpete Do the GUID’s change depending on the version? Where is that on the extensions page?
2017-02-17T09:54:32Z @bdw429s The IDs are the same regardless of the version of an extension. Not sure why Lucee didn%27t also use a human-readable slug.
2017-02-17T09:54:46Z @bdw429s I assume you would always get the latest version of the extension.
2017-02-17T09:54:47Z @elpete So, I wonder how I can install a previous version of an extension.
2017-02-17T09:55:00Z @elpete I want Oracle 11g. The latest is Oracle 12c.
2017-02-17T09:55:13Z @bdw429s That sounds like a great question for @micha :slightly_smiling_face:
2017-02-17T09:55:38Z @bdw429s As far as where in Docker you set JVM args, I%27ve no clue but I assume that%27s something that%27s been thought of by now and how some sort of standard solution??
2017-02-17T09:56:21Z @elpete `LUCEE_JAVA_OPTS`
2017-02-17T09:56:29Z @elpete Maybe?
2017-02-17T09:56:37Z @elpete It’s how to set memory.
2017-02-17T09:57:16Z @bdw429s That would work.
2017-02-17T09:57:48Z @bdw429s @elpete All of the java system props on that doc can also be set as environment args on the OS
2017-02-17T09:57:58Z @bdw429s Which probably gives you a few more options as well
2017-02-17T09:58:23Z @bdw429s There%27s even some more that aren%27t added there from the looks of this doc. Check out the "envVar/SysPro" column:
<https://docs.google.com/spreadsheets/d/10s-nn_FsoSD_RiLwjYZICacCoC386SjkEGT3pOfBJVU/edit#gid=0>
2017-02-17T09:58:26Z @bdw429s @ shared a file: <https://cfml.slack.com/files/bdw429s/F3CHL1ZFZ/lucee_configuration|Lucee Configuration>
2017-02-17T09:59:18Z @bdw429s Here is where the IDs show up:
2017-02-17T09:59:22Z @bdw429s @ uploaded a file: <https://cfml.slack.com/files/bdw429s/F470LJE2E/pasted_image_at_2017_02_17_08_59_am.png|Pasted image at 2017-02-17, 8:59 AM>
2017-02-17T09:59:51Z @bdw429s An extension author creates their own ID and place it in their extension%27s manifest file.
2017-02-17T10:00:00Z @bdw429s I created one for the Ortus extension for instance.
2017-02-17T10:07:41Z @elpete Here was Micha’s answer: <https://cfml.slack.com/archives/lucee/p1487344003002671>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment