GUACAMOLE-1788: Update Docker build to use latest release of Maven 3.

This commit is contained in:
Mike Jumper
2023-05-13 10:30:09 -07:00
parent 7e38a089cf
commit 61356c9dc2
3 changed files with 17 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
CONTRIBUTING
doc/licenses/*/**/*
doc/**/html/*.html
guacamole-docker/*.pref

View File

@@ -28,10 +28,21 @@ ARG TOMCAT_VERSION=8.5
ARG TOMCAT_JRE=jdk8
# Use official maven image for the build
FROM maven:3-jdk-8 AS builder
FROM maven:3-eclipse-temurin-8-focal AS builder
# Use Mozilla's Firefox PPA (newer Ubuntu lacks a "firefox-esr" package and
# provides only a transitional "firefox" package that actually requires Snap
# and thus can't be used within Docker)
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y software-properties-common \
&& add-apt-repository -y ppa:mozillateam/ppa
# Explicitly prefer packages from the Firefox PPA
COPY guacamole-docker/mozilla-firefox.pref /etc/apt/preferences.d/
# Install firefox browser for sake of JavaScript unit tests
RUN apt-get update && apt-get install -y firefox-esr
RUN apt-get update && apt-get install -y firefox
# Arbitrary arguments that can be passed to the maven build. By default, an
# argument will be provided to explicitly unskip any skipped tests. To, for

View File

@@ -0,0 +1,3 @@
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001