2021-03-17 13:23:31 +01:00
|
|
|
# Defines the tag for OBS and build script builds:
|
2021-03-24 13:20:08 +01:00
|
|
|
#!BuildTag: opensuse/openjdk:15
|
|
|
|
#!BuildTag: opensuse/openjdk:%%PKG_VERSION%%
|
|
|
|
#!BuildTag: opensuse/openjdk:%%PKG_VERSION%%.%RELEASE%
|
2021-03-17 13:23:31 +01:00
|
|
|
|
2021-04-27 15:46:09 +02:00
|
|
|
ARG BASE=opensuse/tumbleweed
|
|
|
|
FROM $BASE
|
2021-03-17 13:23:31 +01:00
|
|
|
|
2021-03-24 13:30:58 +01:00
|
|
|
# labelprefix=org.opensuse.openjdk
|
2021-03-17 13:23:31 +01:00
|
|
|
PREFIXEDLABEL org.opencontainers.image.title="Java 15 development container"
|
|
|
|
PREFIXEDLABEL org.opencontainers.image.description="Environment for Java 15 development"
|
|
|
|
PREFIXEDLABEL org.opencontainers.image.created="%BUILDTIME%"
|
|
|
|
PREFIXEDLABEL org.opencontainers.image.version="%%PKG_VERSION%%.%RELEASE%"
|
|
|
|
PREFIXEDLABEL org.openbuildservice.disturl="%DISTURL%"
|
2021-03-24 13:20:08 +01:00
|
|
|
PREFIXEDLABEL org.opensuse.reference="registry.opensuse.org/opensuse/openjdk:%%PKG_VERSION%%.%RELEASE%"
|
2021-03-17 13:23:31 +01:00
|
|
|
|
|
|
|
# Work around https://github.com/openSUSE/obs-build/issues/487
|
2021-04-27 15:46:09 +02:00
|
|
|
ARG RELEASE_PACKAGE=openSUSE-release-appliance-docker
|
|
|
|
|
|
|
|
ARG LIBDIR=/usr/lib64
|
|
|
|
ENV JAVA_BINDIR=$LIBDIR/jvm/java/bin
|
|
|
|
ENV JAVA_HOME=$LIBDIR/jvm/java
|
|
|
|
ENV JAVA_ROOT=$LIBDIR/jvm/java
|
|
|
|
ENV JAVA_VERSION=15
|
2021-03-17 13:23:31 +01:00
|
|
|
|
|
|
|
# Development packages
|
2021-04-27 15:46:09 +02:00
|
|
|
RUN zypper -n install --no-recommends $RELEASE_PACKAGE \
|
|
|
|
java-15-openjdk-devel maven git-core && \
|
|
|
|
zypper clean -a
|
2021-03-17 13:23:31 +01:00
|
|
|
|
2021-04-27 15:46:09 +02:00
|
|
|
CMD [ "jshell" ]
|