As part of 4d7110 Docker base images were updated to ubuntu:21.04. According to #gh-1579 the intention is to update to Ubuntu LTS version. 21.04 is not LTS version and as a matter of fact it is not yet released version. Change the docker base image to the the intended version 20.04 LTS.
33 lines
1.1 KiB
Docker
33 lines
1.1 KiB
Docker
FROM ubuntu:20.04
|
|
|
|
ARG SDKMAN_JAVA_INSTALLATION=8.0.275.hs-adpt
|
|
|
|
MAINTAINER Marcin Grzejszczak <mgrzejszczak@pivotal.io>
|
|
|
|
RUN apt-get update && apt-get install -y curl \
|
|
unzip \
|
|
zip \
|
|
&& apt-get clean
|
|
|
|
# Install sdkman and java
|
|
RUN curl -s https://get.sdkman.io/ | bash
|
|
COPY sdkman.config /.sdkman/etc/config
|
|
COPY sdkman/ /usr/local/bin/
|
|
RUN /bin/bash -c "chmod +x /usr/local/bin/sdkman-exec.sh && chmod +x /usr/local/bin/sdkman-wrapper.sh && chmod +x /root/.sdkman/bin/sdkman-init.sh"
|
|
RUN /bin/bash -c "source /root/.sdkman/bin/sdkman-init.sh"
|
|
RUN sdkman-wrapper.sh install java "${SDKMAN_JAVA_INSTALLATION}"
|
|
ENV JAVA_HOME /root/.sdkman/candidates/java/current/
|
|
ENV PATH "${PATH}:${JAVA_HOME}/bin"
|
|
|
|
# Spring Cloud Contract
|
|
ENV SERVER_PORT 8750
|
|
VOLUME /tmp
|
|
COPY target/maven_dependencies /root/.m2/repository/
|
|
ADD target/libs/stub-runner-boot.jar stub-runner-boot.jar
|
|
RUN echo "Fetching dependencies, please wait..."
|
|
RUN java -Dthin.dryrun=true -jar stub-runner-boot.jar
|
|
RUN java -Dthin.dryrun=true -jar stub-runner-boot.jar --thin.profile=rabbit
|
|
RUN java -Dthin.dryrun=true -jar stub-runner-boot.jar --thin.profile=kafka
|
|
COPY run.sh run.sh
|
|
ENTRYPOINT ["./run.sh"]
|