mirror of
https://github.com/jwetzell/docker-guacamole.git
synced 2026-09-07 15:29:11 +00:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d81299902a | |||
| 4514d2ed93 | |||
| 1dfc348669 | |||
| ce2bc62cf7 | |||
| 4072cf4aeb | |||
| b7b8a81dbc | |||
| 5d81bf648a | |||
| 52d372ae07 | |||
| a4f9da42e2 |
@@ -0,0 +1,29 @@
|
|||||||
|
name: build-base
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'Dockerfile.base'
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
file: Dockerfile.base
|
||||||
|
tags: jwetzell/guacamole:base
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
name: build-latest
|
name: build-latest
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
# branches:
|
paths:
|
||||||
# - 'main'
|
- 'Dockerfile'
|
||||||
paths-ignore:
|
- 'root/**'
|
||||||
- '**/README.md'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
FROM tomcat:9.0.85-jre11
|
FROM tomcat:9.0.85-jre11
|
||||||
|
|
||||||
ENV GUAC_VER=1.5.4 \
|
ENV GUAC_VER=1.5.5 \
|
||||||
GUACAMOLE_HOME=/app/guacamole \
|
GUACAMOLE_HOME=/app/guacamole \
|
||||||
PG_VER=9.6.24 \
|
PG_VER=9.6.24 \
|
||||||
LIBSSH2_VER=1.11.0 \
|
LIBSSH2_VER=1.11.0 \
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/with-contenv sh
|
#!/usr/bin/with-contenv sh
|
||||||
|
|
||||||
echo "Cleaning Extensions from previous Guacamole versions"
|
echo "Cleaning Extensions from previous Guacamole versions"
|
||||||
for e in $(ls -1 ${GUACAMOLE_HOME}/extensions | grep -v ${GUAC_VER}); do
|
for e in $(ls -1 ${GUACAMOLE_HOME}/extensions | grep guacamole | grep -v ${GUAC_VER}); do
|
||||||
rm ${GUACAMOLE_HOME}/extensions/${e}
|
rm ${GUACAMOLE_HOME}/extensions/${e}
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -10,11 +10,6 @@ for i in auth-duo auth-header auth-json auth-ldap auth-quickconnect auth-sso-cas
|
|||||||
rm -rf ${GUACAMOLE_HOME}/extensions/guacamole-${i}-${GUAC_VER}.jar
|
rm -rf ${GUACAMOLE_HOME}/extensions/guacamole-${i}-${GUAC_VER}.jar
|
||||||
done
|
done
|
||||||
|
|
||||||
# if the guacamole version was bumped, delete the contents of the extensions directory - just on the first run
|
|
||||||
if [ "$(cat /config/.database-version)" != "$GUAC_VER" ]; then
|
|
||||||
rm -rf ${GUACAMOLE_HOME}/extensions/*
|
|
||||||
fi
|
|
||||||
|
|
||||||
# enable extensions
|
# enable extensions
|
||||||
for i in $(echo "$EXTENSIONS" | tr "," " "); do
|
for i in $(echo "$EXTENSIONS" | tr "," " "); do
|
||||||
cp ${GUACAMOLE_HOME}/extensions-available/guacamole-${i}-${GUAC_VER}.jar ${GUACAMOLE_HOME}/extensions
|
cp ${GUACAMOLE_HOME}/extensions-available/guacamole-${i}-${GUAC_VER}.jar ${GUACAMOLE_HOME}/extensions
|
||||||
|
|||||||
@@ -14,14 +14,14 @@ if [ $? -ne 0 ]; then
|
|||||||
echo "$GUAC_VER" > /config/.database-version
|
echo "$GUAC_VER" > /config/.database-version
|
||||||
|
|
||||||
/etc/cont-init.d/30-defaults.sh
|
/etc/cont-init.d/30-defaults.sh
|
||||||
/etc/cont-init.d/50-extensions
|
/etc/cont-init.d/50-extensions.sh
|
||||||
else
|
else
|
||||||
if [ "$(cat /config/.database-version)" != "$GUAC_VER" ]; then
|
if [ "$(cat /config/.database-version)" != "$GUAC_VER" ]; then
|
||||||
cat /app/guacamole/schema/upgrade/upgrade-pre-$GUAC_VER.sql | psql -U $POSTGRES_USER -d $POSTGRES_DB -f -
|
cat /app/guacamole/schema/upgrade/upgrade-pre-$GUAC_VER.sql | psql -U $POSTGRES_USER -d $POSTGRES_DB -f -
|
||||||
echo "$GUAC_VER" > /config/.database-version
|
echo "$GUAC_VER" > /config/.database-version
|
||||||
|
|
||||||
/etc/cont-init.d/30-defaults.sh
|
/etc/cont-init.d/30-defaults.sh
|
||||||
/etc/cont-init.d/50-extensions
|
/etc/cont-init.d/50-extensions.sh
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user