-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom .jar file #3
Comments
if you want to add a Custom .jar best would be to do it as volume, then you can put whatever you want in there and is stays. |
Thank you so much for the direction, I now have something new to learn!
however this does not seem to have worked...am i missing something obvious to you here or do i need to spin up a fresh install and add -volume variable to the .yml file? |
This is the correct approach. Now that you have a volume mounted to ubuntu From there you have to tell guacamole to load that jar somehow, but this is purely guacamole related setup.
What you now did on the CLI you need to extend to the compose file. Normally are compose up will do it. |
Ok. My problem here is that this creates a new container but I want to put the .jar within a container created by your script, so instead of using ubuntu image can i specify the container image name to mount the volume into your container? ie |
Try this: ...
volumes:
- extensions:/root/.guacamole/extensions
.. Here the full file. #
# Apache Guacamole with NGIXN reverse proxy and Let's Encrypt.
# For more details see: https://github.com/8gears/containerized-guacamole
#
version: '3'
services:
nginx:
image: jwilder/nginx-proxy:alpine
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
container_name: nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
nginx-letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: nginx-letsencrypt
restart: unless-stopped
depends_on:
- nginx
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
init-guac-db:
image: guacamole/guacamole:latest
command: ["/bin/sh", "-c", "test -e /init/initdb.sql && echo 'init file already exists' || /opt/guacamole/bin/initdb.sh --postgres > /init/initdb.sql" ]
volumes:
- dbinit:/init
postgres:
image: postgres:latest
restart: unless-stopped
volumes:
- dbinit:/docker-entrypoint-initdb.d
- dbdata:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_USER:-guacadb}
POSTGRES_PASSWORD:
depends_on:
- init-guac-db
guacd:
image: guacamole/guacd:latest
restart: unless-stopped
guac:
image: guacamole/guacamole:latest
restart: unless-stopped
environment:
GUACD_HOSTNAME: guacd
POSTGRES_HOSTNAME: postgres
POSTGRES_DATABASE: ${POSTGRES_USER:-guacadb}
POSTGRES_USER: ${POSTGRES_USER:-guacadb}
POSTGRES_PASSWORD:
LETSENCRYPT_TEST: ${LETSENCRYPT_TEST:-false}
VIRTUAL_HOST:
LETSENCRYPT_HOST: ${VIRTUAL_HOST}
LETSENCRYPT_EMAIL:
depends_on:
- postgres
- guacd
volumes:
- extensions:/root/.guacamole/extensions
volumes:
dbinit:
dbdata:
conf:
vhost:
html:
certs:
extensions:
|
I've tested this but appear to be getting a 502 bad gateway error (nginx), odd as the script works without the extension added. I wanted to allow enough time to allow it to fully propagate (24hrs) just in case, cache has been cleared and a simple refresh, firewall disabled and I also set up a new subdomain to run it through but none have worked. I will take this away and do some more testing but does the same happen your side? At this point i just want to say thank you so much for the guidance you have shared with me, you have helped me step into the next section of learning with the clarification and support you have offered and such quick responses. |
I got the same error when using root/.guacamole/extensions as the directory. However, I found a solution:
The full file:
|
Thank you for sharing. I'll reference this on the README |
the branding.jar file dissapears from the volume created as soon as the container is restarted |
Hello. You need to include the option in ENVIROMENTS:
So in your volume you can point something like this:
Including your configured .jar file on your local machine within the "extensions" folder. |
Hi
Great work on this. Your comment stating that although this repo is 3 years old the script uses latest images was useful in helping me find and use this.
The custom branding.jar file you are able to add within the guacamole/guacamole:latest container /extensions folder seems to delete after restarting the container. There is one .jar file in there currently (guacamole-auth-jdbc-postgresql-1.3.0.jar)
Any ideas on why this is and any potential fixes to allow a custom login page.
The text was updated successfully, but these errors were encountered: