GUACAMOLE-93: Build guacamole-docker using parent guacamole-client source.

This commit is contained in:
Michael Jumper
2016-08-26 15:58:20 -07:00
parent a5cfccb096
commit e68ce29419
6 changed files with 132 additions and 204 deletions

View File

@@ -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