1
0

Accepting request 888816 from home:mvarlese:branches:devel:kubic:containers

- 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
This commit is contained in:
Marco Varlese 2021-04-27 13:46:09 +00:00 committed by Git OBS Bridge
parent 2c7a6386b4
commit 05b67ba025
2 changed files with 30 additions and 7 deletions

View File

@ -3,7 +3,8 @@
#!BuildTag: opensuse/openjdk:%%PKG_VERSION%%
#!BuildTag: opensuse/openjdk:%%PKG_VERSION%%.%RELEASE%
FROM opensuse/tumbleweed
ARG BASE=opensuse/tumbleweed
FROM $BASE
# labelprefix=org.opensuse.openjdk
PREFIXEDLABEL org.opencontainers.image.title="Java 15 development container"
@ -14,9 +15,17 @@ 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
RUN zypper install -y openSUSE-release-appliance-docker
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 install -y --no-recommends java-15-openjdk-devel maven git-core
RUN zypper -n install --no-recommends $RELEASE_PACKAGE \
java-15-openjdk-devel maven git-core && \
zypper clean -a
ENTRYPOINT [ "/bin/bash" ]
CMD [ "jshell" ]

View File

@ -1,15 +1,29 @@
-------------------------------------------------------------------
Wed Mar 24 12:19:36 UTC 2021 - Marco Varlese <marco.varlese@suse.com>
Tue Apr 27 08:58:40 UTC 2021 - Dirk Müller <dmueller@suse.com>
- stop specifying an entrypoint, these aren't services
- use single layer
- zypper clean after install
- provide JAVA_VERSION, JAVA_ROOT and JAVA_HOME env
-------------------------------------------------------------------
Wed Mar 24 12:21:53 UTC 2021 - Marco Varlese <marco.varlese@suse.com>
- Renamed tag to follow upstream
-------------------------------------------------------------------
Tue Mar 23 19:25:53 UTC 2021 - Marco Varlese <marco.varlese@suse.com>
Tue Mar 23 19:28:04 UTC 2021 - Marco Varlese <marco.varlese@suse.com>
- Not having "opensuse" as prefix does not conform to specification as per conversation with fvogt
-------------------------------------------------------------------
Fri Mar 19 14:40:35 UTC 2021 - Marco Varlese <marco.varlese@suse.com>
Mon Mar 22 13:28:11 UTC 2021 - Frederic Crozat <fcrozat@suse.com>
- Allow to override base container and release package using
Docker arguments.
-------------------------------------------------------------------
Fri Mar 19 14:41:07 UTC 2021 - Marco Varlese <marco.varlese@suse.com>
- Added ENTRY_POINT