Skip to content

Commit 4bfc9ef

Browse files
authored
[sonic-slave]: install openjdk-8 for jenkins slave (#3037)
Signed-off-by: Guohan Lu <[email protected]>
1 parent 8a08595 commit 4bfc9ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sonic-slave/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -321,3 +321,8 @@ RUN add-apt-repository \
321321
RUN apt-get update
322322
RUN apt-get install -y docker-ce=17.03.2~ce-0~debian-jessie
323323
RUN echo "DOCKER_OPTS=\"--experimental --storage-driver=vfs\"" >> /etc/default/docker
324+
325+
# For jenkins slave
326+
RUN echo "deb http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
327+
RUN apt-get -o Acquire::Check-Valid-Until=false update
328+
RUN apt-get -y -o Acquire::Check-Valid-Until=false install ca-certificates-java=20161107~bpo8+1 openjdk-8-jdk

0 commit comments

Comments
 (0)