Skip to content

Commit 745b460

Browse files
committed
update example
1 parent 036a954 commit 745b460

3 files changed

Lines changed: 27 additions & 18 deletions

File tree

examples/docker/docker-compose.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
version: "3"
1+
---
22
services:
33

44
guacd:
55
container_name: guacd
6-
image: guacamole/guacd:1.5.2
6+
image: guacamole/guacd:1.6.0
77
networks:
88
- guacamole
99

1010
environment:
11-
GUACD_LOG_LEVEL: debug
11+
LOG_LEVEL: debug
1212
volumes:
1313
- /etc/localtime:/etc/localtime:ro
1414

@@ -18,19 +18,16 @@ services:
1818
environment:
1919
GUACD_HOSTNAME: guacd
2020
GUACAMOLE_HOME: /etc/guacamole
21+
# CONSOLE_TITLE: test title
2122
ENABLE_WEBSOCKET: "true"
2223
# START_COMMAND: "docker run --rm --network docker_guacamole --name $$hostname -e 'VNC_PW=test' consol/centos-xfce-vnc || true"
2324
START_COMMAND: extensions/start.sh
2425
# STOP_COMMAND: "docker stop -t 120 $$hostname && echo stopping && sleep 60"
2526
STOP_COMMAND: "extensions/stop.sh $$hostname"
2627
SHUTDOWN_DELAY: 90
27-
COMMAND_TIMEOUT: 600
28+
COMMAND_TIMEOUT: 6000
2829
IDLE_TIME: 20
29-
DISCONNECT_TIME: 120
30-
# API_SESSION_TIMEOUT: 1
31-
32-
SECRET_KEY: test
33-
JSON_SECRET_KEY: 4C0B569E4C96DF157EEE1B65DD0E4D41
30+
DISCONNECT_TIME: 1200
3431
volumes:
3532
- ./extensions/:/etc/guacamole/extensions/:z
3633
- ./user-mapping.xml:/etc/guacamole/user-mapping.xml:z
Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
#! /bin/bash
2-
env
3-
echo "$(tput -T xterm setaf 1 ) test" # test make red
4-
for i in {1..20}; do
5-
echo "$i"
6-
sleep 1
7-
done;
8-
# false
2+
cat << EOF
3+
4+
You custom script running here:
5+
6+
You could use it to start Host $hostaname
7+
8+
For a user: $guacamoleUsername
9+
10+
guacamole will automaticly connect to $hostname via $protocol on port $port
11+
12+
EOF
13+
14+
sleep 10
915
docker run --rm -d --network docker_guacamole --name "$hostname" -e 'VNC_PW=test' consol/rocky-xfce-vnc
1016
timeout 20 docker logs -f "$hostname"
1117
true

examples/docker/guacamole/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM guacamole/guacamole:1.5.2
1+
FROM guacamole/guacamole:1.6.0
22
USER root
3-
RUN ln -sf /opt/guacamole/guacamole.war /usr/local/tomcat/webapps/
3+
RUN ln -sf /opt/guacamole/webapp/guacamole.war /usr/local/tomcat/webapps/
44
RUN mkdir -p /etc/guacamole
55
RUN echo enable-environment-properties: true > /etc/guacamole/guacamole.properties
66
RUN apt-get update && apt-get install -y \
@@ -13,5 +13,11 @@ RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
1313
RUN add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
1414
RUN apt-get update && apt-get install -y docker-ce-cli
1515
# TODO switch back to root
16+
17+
RUN chown guacamole:guacamole -R /usr/local/tomcat/webapps/ \
18+
&& mkdir -p /usr/local/tomcat/conf/Catalina/ \
19+
&& chmod -R a+rwx /usr/local/tomcat/conf/Catalina
20+
21+
USER guacamole
1622
WORKDIR /usr/local/tomcat
1723
ENTRYPOINT ["catalina.sh","run"]

0 commit comments

Comments
 (0)