File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- version : " 3 "
1+ ---
22services :
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
Original file line number Diff line number Diff line change 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
915docker run --rm -d --network docker_guacamole --name " $hostname " -e ' VNC_PW=test' consol/rocky-xfce-vnc
1016timeout 20 docker logs -f " $hostname "
1117true
Original file line number Diff line number Diff line change 1- FROM guacamole/guacamole:1.5.2
1+ FROM guacamole/guacamole:1.6.0
22USER 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/
44RUN mkdir -p /etc/guacamole
55RUN echo enable-environment-properties: true > /etc/guacamole/guacamole.properties
66RUN apt-get update && apt-get install -y \
@@ -13,5 +13,11 @@ RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
1313RUN add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
1414RUN 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
1622WORKDIR /usr/local/tomcat
1723ENTRYPOINT ["catalina.sh" ,"run" ]
You can’t perform that action at this time.
0 commit comments