File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed
spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/resources/conf/Ubuntu Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 1
1
FROM ubuntu:trusty-20160914
2
2
RUN apt-get update && \
3
- apt-get install -y software-properties-common && \
4
- add-apt-repository ppa:webupd8team/java -y && \
5
- apt-get update && \
6
- echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \
7
- apt-get install -y oracle-java8-installer && \
8
- apt-get install -y curl && \
9
- apt-get clean
3
+ apt-get install -y software-properties-common curl && \
4
+ mkdir -p /opt/openjdk && \
5
+ cd /opt/openjdk && \
6
+ curl -L https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u202-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u202b08.tar.gz | tar zx --strip-components=1
7
+ ENV JAVA_HOME /opt/openjdk
8
+ ENV PATH $JAVA_HOME/bin:$PATH
Original file line number Diff line number Diff line change 1
1
FROM ubuntu:xenial-20160914
2
2
RUN apt-get update && \
3
- apt-get install -y software-properties-common && \
4
- add-apt-repository ppa:webupd8team/java -y && \
5
- apt-get update && \
6
- echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \
7
- apt-get install -y oracle-java8-installer && \
8
- apt-get install -y curl && \
9
- apt-get clean
3
+ apt-get install -y software-properties-common curl && \
4
+ mkdir -p /opt/openjdk && \
5
+ cd /opt/openjdk && \
6
+ curl -L https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u202-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u202b08.tar.gz | tar zx --strip-components=1
7
+ ENV JAVA_HOME /opt/openjdk
8
+ ENV PATH $JAVA_HOME/bin:$PATH
You can’t perform that action at this time.
0 commit comments