Skip to content

Commit

Permalink
Merge pull request #768 from jtnord/update-docker-jvm-and-base
Browse files Browse the repository at this point in the history
update agent to use jdk11 and supported Ubuntu LTS
  • Loading branch information
jtnord authored May 30, 2022
2 parents 5630416 + fd03f9c commit 063c9f2
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
# and prepares for execution of Java compile jobs on slaves.
#

FROM ubuntu:xenial
FROM ubuntu:22.04

RUN mkdir -p /var/run/sshd

# install SSHD, Git and zip
RUN apt-get update && apt-get install -y \
# install SSHD, Git, zip and the JDK
RUN apt-get update && apt-get install --no-install-recommends -y \
openssh-server \
git \
zip \
openjdk-11-jdk \
&& rm -rf /var/lib/apt/lists/*

# create a git user and create .ssh dir
Expand All @@ -28,10 +29,3 @@ CMD /usr/sbin/sshd -D -e

# give the whole /home/git back to the git user
RUN chown -R git /home/git

RUN apt-get update -y && apt-get install --no-install-recommends -y software-properties-common

RUN add-apt-repository ppa:openjdk-r/ppa
RUN apt-get update
RUN apt-get install --no-install-recommends -y \
openjdk-8-jdk

0 comments on commit 063c9f2

Please sign in to comment.