Skip to content

Commit

Permalink
#9 java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 24, 2022
1 parent 554c8fd commit 3ff3bb1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .rultor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
assets:
docker-password: yegor256/home#assets/docker-password
release:
script: |-
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
repo=yegor256/rultor-image
docker build . --tag "${repo}:${tag}"
cat ../docker-password | docker login --password-stdin --username yegor256
docker push "${repo}:${tag}"
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,8 @@ RUN curl --silent --show-error https://getcomposer.org/installer | php && \
RUN php --version

# Java
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 E1DF1F24 3DD9F856 \
&& apt-get update -y --fix-missing \
&& apt-get install -y default-jdk ca-certificates maven
RUN apt-get install -y ca-certificates openjdk-17-jdk
RUN apt-get install -y maven
ENV MAVEN_OPTS "-Xmx1g"
ENV JAVA_OPTS "-Xmx1g"
ENV JAVA_HOME "/usr/lib/jvm/default-java"
Expand Down

0 comments on commit 3ff3bb1

Please sign in to comment.