Update build host and postgres libs

Bumping the postgres libs showed that the upstream build images
were EOL, so we're now running a more modern version of Java
and have migrated the build to ubuntu LTS
This commit is contained in:
Derry Hamilton 2022-12-07 11:00:29 +00:00
parent 28c918dd6a
commit 64743f430b
5 changed files with 6 additions and 63 deletions

View file

@ -1,14 +1,8 @@
FROM centos:centos8 as builder
RUN yum -y install epel-release java-11-openjdk-devel
RUN yum -y groupinstall 'Development Tools'
RUN yum -y install git maven
RUN alternatives --set javac /usr/lib/jvm/java-11-openjdk-11.*/bin/javac
RUN alternatives --set java /usr/lib/jvm/java-11-openjdk-11.*/bin/java
RUN git clone --single-branch --branch master https://github.com/rasilon/ujetl.git
RUN cd ujetl && JAVA_HOME=/usr/lib/jvm/java-11 mvn -e package
FROM ubuntu:22.04 as builder
RUN apt-get update && apt-get -y upgrade
RUN apt-get -y install openjdk-19-jdk-headless maven git
RUN git clone --single-branch --branch main https://github.com/rasilon/ujetl.git
RUN cd ujetl && mvn -e package
FROM openjdk:11 as runner
LABEL maintainer="Derry Hamilton <derryh@rasilon.net>"