You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@guacamole.apache.org by "Thomas Eggers (Jira)" <ji...@apache.org> on 2020/01/27 20:22:00 UTC

[jira] [Commented] (GUACAMOLE-939) Read Docker image environment variables from guacamole.properties

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

Thomas Eggers commented on GUACAMOLE-939:
-----------------------------------------

Hi Mike,

my experience is 

# /etc/guacamole/guacamole.propeties

# Hostname and port of guacamole proxy
guacd-hostname:guacd
guacd-port:4822

 # LDAP properties
ldap-username-attribute: cn
ldap-config-base-dn: ou=guacamole,o=wb
ldap-user-base-dn:ou=user,o=wb

ldap-hostname:192.168.0.90
ldap-port: 389
ldap-encryption-method: none

 

and start the docker container like this:

 docker run --name guacamole-tomcat -v /etc/guacamole:/config -e GUACAMOLE-HOME=/config -p 8080:8080 guacamole/guacamole

I get this error back:

FATAL: Missing GUACD_HOSTNAME or "guacd" link.
-------------------------------------------------------------------------------
Every Guacamole instance needs a corresponding copy of guacd running. To
provide this, you must either:

 (a) Explicitly link that container with the link named "guacd".
 (b) If not using a Docker container for guacd, explicitly specify the TCP
   connection information using the following environment variables:

 GUACD_HOSTNAME     The hostname or IP address of guacd. If not using a guacd
                  Docker container and corresponding link, this environment
                  variable is *REQUIRED*.

 GUACD_PORT         The port on which guacd is listening for TCP connections.
                  This environment variable is optional. If omitted, the
                   standard guacd port of 4822 will be used.

My change in the /opt/guacamole/bin/start.sh make this possible.

Mybe I'm doing something wrong.

Regards
  Thomas 

 

> 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)