Build guacamole image with themepark

main
Adyanth H 6 months ago
parent 303b8c483a
commit 61e8bb0658
  1. 2
      .gitignore
  2. BIN
      config/extensions/guacamole-auth-sso-openid-1.4.0.jar
  3. 20
      config/guacamole.properties
  4. 28
      docker-compose.yml
  5. 14
      guacamole.env.example
  6. BIN
      guacamole.war
  7. 11
      guacamole/Dockerfile

2
.gitignore vendored

@ -1,2 +1,2 @@
data/
*.env

@ -1,20 +0,0 @@
# guacamole.properties - generated Fri Sep 24 16:08:04 UTC 2021
guacd-hostname: guacd
guacd-port: 4822
postgresql-username: postgres
postgresql-password: acomplexpasswordherewhynot
postgresql-database: guacamole_db
postgresql-hostname: db
postgresql-port: 5432
# ldap-hostname: windows-server-nuc.adyanth.lan
# ldap-user-base-dn: OU=People, DC=adyanth, DC=lan
# ldap-port: 389
# ldap-encryption-method: none
# ldap-search-bind-dn: CN=Guacamole, OU=ServiceAccounts, DC=adyanth, DC=lan
# ldap-search-bind-password: Guacam01e1sC00l
# ldap-username-attribute: sAMAccountName
extension-priority: *, openid

@ -18,14 +18,15 @@ services:
- "/home/adyanth/docker/data/guacamole/rdp:/rdp"
guacamole:
image: guacamole/guacamole:1.3.0
image: adyanth/guacamole:themepark
build:
context: guacamole
args:
image: guacamole/guacamole:1.4.0
restart: always
depends_on:
- db
- guacd
volumes:
- ./config:/etc/guacamole
- ./guacamole.war:/opt/guacamole/guacamole.war
environment:
GUACD_HOSTNAME: guacd
@ -34,22 +35,9 @@ services:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: acomplexpasswordherewhynot
LDAP_HOSTNAME: windows-server-nuc.adyanth.lan
LDAP_PORT: 389
LDAP_ENCRYPTION_METHOD: none
LDAP_USER_BASE_DN: OU=People, DC=adyanth, DC=lan
LDAP_SEARCH_BIND_DN: CN=Guacamole, OU=ServiceAccounts, DC=adyanth, DC=lan
LDAP_SEARCH_BIND_PASSWORD: Guacam01e1sC00l
LDAP_USERNAME_ATTRIBUTE: sAMAccountName
# OPENID_AUTHORIZATION_ENDPOINT: https://id.adyanth.site/auth/realms/HomeLab/protocol/openid-connect/auth
# OPENID_JWKS_ENDPOINT: https://id.adyanth.site/auth/realms/HomeLab/protocol/openid-connect/certs
# OPENID_ISSUER: https://id.adyanth.site/auth/realms/HomeLab
# OPENID_CLIENT_ID: Guacamole
# OPENID_REDIRECT_URI: https://guacamole.adyanth.site/
# OPENID_USERNAME_CLAIM_TYPE: preferred_username
GUACAMOLE_HOME: /etc/guacamole
EXTENSION_PRIORITY: openid # '*, openid'
env_file:
- guacamole.env
expose:
- 8080
networks:

@ -0,0 +1,14 @@
LDAP_HOSTNAME=windows-server-nuc.adyanth.lan
LDAP_PORT=389
LDAP_ENCRYPTION_METHOD=none
LDAP_USER_BASE_DN=OU=People, DC=adyanth, DC=lan
LDAP_SEARCH_BIND_DN=CN=Guacamole, OU=ServiceAccounts, DC=adyanth, DC=lan
LDAP_SEARCH_BIND_PASSWORD=Guacam01e1sC00l
LDAP_USERNAME_ATTRIBUTE=sAMAccountName
OPENID_AUTHORIZATION_ENDPOINT=https://id.adyanth.site/auth/realms/HomeLab/protocol/openid-connect/auth
OPENID_JWKS_ENDPOINT=https://id.adyanth.site/auth/realms/HomeLab/protocol/openid-connect/certs
OPENID_ISSUER=https://id.adyanth.site/auth/realms/HomeLab
OPENID_CLIENT_ID=Guacamole
OPENID_REDIRECT_URI=https://guacamole.adyanth.site/
OPENID_USERNAME_CLAIM_TYPE=preferred_username

Binary file not shown.

@ -0,0 +1,11 @@
ARG image
FROM ${image} AS build
USER root
RUN apt update && apt install -y zip
RUN unzip guacamole.war index.html
RUN sed -i 's|</title></head>|</title><link rel="stylesheet" type="text/css" href="https://theme-park.dev/css/base/guacamole/plex.css"></head>|g' index.html
RUN zip -u guacamole.war index.html
FROM ${image}
COPY --from=build /opt/guacamole/guacamole.war guacamole.war
Loading…
Cancel
Save