[ 
https://issues.apache.org/jira/browse/GUACAMOLE-939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17024688#comment-17024688
 ] 

Mike Jumper commented on GUACAMOLE-939:
---------------------------------------

{quote}
You are right, readonly mount works fine.

docker run --name guacamole-tomcat -v /etc/guacamole:/config:ro -e 
GUACAMOLE-HOME=/config -e GUACD_HOSTNAME=127.0.0.1 -e LDAP_HOSTNAME=1.1.1.1 -e 
LDAP_USER_BASE_DN=o=test guacamole/guacamole

But with LDAP you need GUACD_HOSTNAME, LDAP_HOSTNAME and LDAP_USER_BASE_DN.
{quote}

No, you would need {{GUAC_HOSTNAME}} and to specify the {{ldap-hostname}} and 
{{ldap-user-base-dn}} properties within {{guacamole.properties}}. It's true 
that the LDAP extension bundled with the image wouldn't be automatically linked 
within the extensions directory without those corresponding variables, though.

In that case, what you're looking for is:

* Not having to set {{GUACD_HOSTNAME}} so long as {{guacd-hostname}} is set 
within {{guacamole.properties}}
* Automatic linking of bundled extensions which have properties set within 
{{guacamole.properties}}

The above isn't impossible, but I'm not sure it makes sense to implement such 
additional complexity just to avoid specifying options on the command line or 
within a {{docker-compose.yml}}.

Why not use docker-compose and the environment variables as they are intended?

> Read Docker image environment variables from guacamole.properties
> -----------------------------------------------------------------
>
>                 Key: GUACAMOLE-939
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-939
>             Project: Guacamole
>          Issue Type: Improvement
>          Components: guacamole-docker
>    Affects Versions: 1.0.0
>            Reporter: Thomas Eggers
>            Priority: Minor
>         Attachments: start.sh
>
>
> Hi,
> I'm not a Software developer,
>  but I have linux script and docker experience.
> I startet to enhance the start.sh file in the docker image.
> This new version is pre read required variable from guacamole.properties to 
> configure the tomcat web interface. This make it much easier to start the 
> docker container without so many options.
> Other things that I like to do is:
>   - import certificate for ldaps connections
>    - docker container health status
>   - and other small things
>  Thomas



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to