Accepting request 881323 from devel:kubic:containers

OBS-URL: https://build.opensuse.org/request/show/881323
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/go1.16-devel-container?expand=0&rev=3
This commit is contained in:
Richard Brown 2021-03-28 09:54:34 +00:00 committed by Git OBS Bridge
commit ffd81652c8
2 changed files with 30 additions and 6 deletions

View File

@ -3,7 +3,8 @@
#!BuildTag: opensuse/golang:%%PKG_VERSION%%
#!BuildTag: opensuse/golang:%%PKG_VERSION%%.%RELEASE%
FROM opensuse/tumbleweed
ARG BASE=opensuse/tumbleweed
FROM $BASE
# labelprefix=org.opensuse.golang
PREFIXEDLABEL org.opencontainers.image.title="Go 1.16 development container"
@ -13,10 +14,15 @@ PREFIXEDLABEL org.opencontainers.image.version="%%PKG_VERSION%%.%RELEASE%"
PREFIXEDLABEL org.openbuildservice.disturl="%DISTURL%"
PREFIXEDLABEL org.opensuse.reference="registry.opensuse.org/opensuse/golang:%%PKG_VERSION%%.%RELEASE%"
ENV GOLANG_VERSION %%PKG_VERSION%%
ENV GOPATH /go
ENV PATH $GOPATH/bin:$PATH
# 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
RUN zypper install -y --no-recommends $RELEASE_PACKAGE go1.16 git-core && \
zypper clean && \
mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
# Development packages
RUN zypper install -y --no-recommends go1.16 git-core
ENTRYPOINT [ "/bin/bash" ]
WORKDIR $GOPATH
CMD [ "/bin/bash" ]

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Mar 25 13:49:02 UTC 2021 - Dirk Müller <dmueller@suse.com>
- avoid using entrypoint in development build containers
- reduce unnecessary layers
- create and set a GOPATH
-------------------------------------------------------------------
Wed Mar 24 12:17:43 UTC 2021 - Marco Varlese <marco.varlese@suse.com>
@ -13,6 +20,17 @@ Tue Mar 23 15:59:40 UTC 2021 - Marco Varlese <marco.varlese@suse.com>
- Fix to version which missed the 1. in front of it
-------------------------------------------------------------------
Tue Mar 23 14:59:34 UTC 2021 - Dirk Müller <dmueller@suse.com>
- Include Frederics fix as well
------------------------------------------------------------------
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 Dec 11 14:10:47 UTC 2020 - Marco Varlese <marco.varlese@suse.com>