mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-09 06:31:22 +00:00
GUACAMOLE-93: Build guacamole-docker using parent guacamole-client source.
This commit is contained in:
@@ -25,20 +25,26 @@
|
||||
FROM tomcat:8.0.20-jre8
|
||||
MAINTAINER Michael Jumper <mike.jumper@guac-dev.org>
|
||||
|
||||
# Version info
|
||||
# Environment variables
|
||||
ENV \
|
||||
GUAC_VERSION=0.9.9 \
|
||||
GUAC_JDBC_VERSION=0.9.9 \
|
||||
GUAC_LDAP_VERSION=0.9.9
|
||||
BUILD_DIR=/tmp/guacamole-docker-BUILD \
|
||||
BUILD_DEPENDENCIES=" \
|
||||
maven \
|
||||
openjdk-8-jdk-headless"
|
||||
|
||||
# Add configuration scripts
|
||||
COPY bin /opt/guacamole/bin/
|
||||
COPY guacamole-docker/bin /opt/guacamole/bin/
|
||||
|
||||
# Download and install latest guacamole-client and authentication
|
||||
RUN \
|
||||
/opt/guacamole/bin/download-guacamole.sh "$GUAC_VERSION" /usr/local/tomcat/webapps && \
|
||||
/opt/guacamole/bin/download-jdbc-auth.sh "$GUAC_JDBC_VERSION" /opt/guacamole && \
|
||||
/opt/guacamole/bin/download-ldap-auth.sh "$GUAC_LDAP_VERSION" /opt/guacamole
|
||||
# Copy source to container for sake of build
|
||||
COPY . "$BUILD_DIR"
|
||||
|
||||
# Build latest guacamole-client and authentication
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends $BUILD_DEPENDENCIES && \
|
||||
/opt/guacamole/bin/build-guacamole.sh "$BUILD_DIR" /opt/guacamole && \
|
||||
rm -Rf "$BUILD_DIR" && \
|
||||
rm -Rf /var/lib/apt/lists/* && \
|
||||
apt-get purge -y --auto-remove $BUILD_DEPENDENCIES
|
||||
|
||||
# Start Guacamole under Tomcat, listening on 0.0.0.0:8080
|
||||
EXPOSE 8080
|
||||
|
Reference in New Issue
Block a user