forked from pool/java15-devel-container
05b67ba025
- stop specifying an entrypoint, these aren't services - use single layer - zypper clean after install - provide JAVA_VERSION, JAVA_ROOT and JAVA_HOME env - Renamed tag to follow upstream - Not having "opensuse" as prefix does not conform to specification as per conversation with fvogt - Allow to override base container and release package using Docker arguments. - Added ENTRY_POINT - First submission for the Java15 development environment OBS-URL: https://build.opensuse.org/request/show/888816 OBS-URL: https://build.opensuse.org/package/show/devel:kubic:containers/java15-devel-container?expand=0&rev=13
32 lines
1.1 KiB
Docker
32 lines
1.1 KiB
Docker
# Defines the tag for OBS and build script builds:
|
|
#!BuildTag: opensuse/openjdk:15
|
|
#!BuildTag: opensuse/openjdk:%%PKG_VERSION%%
|
|
#!BuildTag: opensuse/openjdk:%%PKG_VERSION%%.%RELEASE%
|
|
|
|
ARG BASE=opensuse/tumbleweed
|
|
FROM $BASE
|
|
|
|
# labelprefix=org.opensuse.openjdk
|
|
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%"
|
|
PREFIXEDLABEL org.opensuse.reference="registry.opensuse.org/opensuse/openjdk:%%PKG_VERSION%%.%RELEASE%"
|
|
|
|
# Work around https://github.com/openSUSE/obs-build/issues/487
|
|
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
|
|
|
|
# Development packages
|
|
RUN zypper -n install --no-recommends $RELEASE_PACKAGE \
|
|
java-15-openjdk-devel maven git-core && \
|
|
zypper clean -a
|
|
|
|
CMD [ "jshell" ]
|