I'm running Lucee from this docker image, `lucee/l...
# lucee
p
I'm running Lucee from this docker image,
lucee/lucee:6.2.0.321-nginx-tomcat10.1-jre21-temurin-jammy
. What's the trick to access the Lucee admin? I google and found a bunch of stuff but nothing really works. I didn't think it would be this hard.
setting the env
LUCEE_ADMIN_ENABLED=true
didn't work.
d
I’ve had to install the admin extension via `LUCEE_EXTENSIONS`or the .CFConfig.json.
p
Thanks. If you can clarify either or both that would be appreciated. Or just point to docs.
d
But I guess we’re using the light version. Not sure about the “normal” version of the base.
p
hmmm..just me?
d
It’s actually singular… https://download.lucee.org/
They have a bug in their docs there.
p
yep, bad link
d
Just making sure - what URL are you using to access the admin? It changed from 5 -> 6 because of the whole server/web -> single thing.
p
<http://localhost/lucee/admin/index.cfm>
👍 1
sadly, I can't get it to work. I'm trying to both copy the admin extension into the lucee folder and the env var.
Copy code
FROM lucee/lucee:6.2.0.321-nginx-tomcat10.1-jre21-temurin-jammy

ENV LUCEE_PASSWORD="defau!tPa55word"
ENV LUCEE_ENABLE_WARMUP=true

ENV LUCEE_ADMIN_ENABLED=true
#install extenions: Lucee Admin
ENV LUCEE_EXTENSIONS=CED6227E-0F49-6367-A68D21AACA6B07E8

# Lucee extensions (obtained from <https://download.lucee.org/>)
COPY _docker/config/lucee/extensions/ /opt/lucee/server/lucee-server/deploy

# Licensing app
COPY . /var/www/
That's my Dockerfile
d
Do they logs show it getting installed? It usually outputs all of that stuff as the image is coming up.
Also, from https://hub.docker.com/r/lucee/lucee… “The NGINX tagged Docker images are configured to deny access to the Lucee Admin by default in the default.conf.” https://github.com/lucee/lucee-dockerfiles/blob/master/nginx/default.conf So if you haven’t changed that, it is getting blocked.
p
hmm..no. I don't see it in the logs. (not sure I'm looking at the right logs). ah, that might be it.
d
For the logs, it just runs through all the extensions it installs. I just tail the docker logs as it starts up to see them. Something like…
p
Progress!
though I don't see the extension being installed in the logs, I just see
Sucess! 🎉 Thanks for your help!
🎉 1
image.png
b
Hey Dan, thanks also for sharing that link on system properties and environment variables. That page is helpful. https://docs.lucee.org/guides/Various/system-properties.html#lucee_extensionslucee-extensions
z
if there is any documentation which needs updating, please help the next person and file some PRs?
there's a new function in 6.2.1 which lists all the supported sys props / env vars https://docs.lucee.org/reference/functions/getsystemproporenvvar.html doesn't work on try cf yet, as it's in on 6.2.0, if any are missing let us know or if you want to help improve that list, the source file is here https://github.com/lucee/Lucee/blob/6.2/core/src/main/java/resource/setting/sysprop-envvar.json