From c4c1732ef85ba7bcbe76e5aa021b88b120865e1f95919be9b1ffaec3e9b54687 Mon Sep 17 00:00:00 2001 From: Richard Brown Date: Thu, 21 Apr 2022 12:19:32 +0000 Subject: [PATCH] Accepting request 967894 from home:dirkmueller:branches:devel:kubic:containers OBS-URL: https://build.opensuse.org/request/show/967894 OBS-URL: https://build.opensuse.org/package/show/devel:kubic:containers/go1.17-devel-container?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++++++++ .gitignore | 1 + Dockerfile | 28 ++++++++++++++++++++++++++++ LICENSE | 17 +++++++++++++++++ _service | 10 ++++++++++ go1.17-devel-container.changes | 5 +++++ 6 files changed, 84 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 LICENSE create mode 100644 _service create mode 100644 go1.17-devel-container.changes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..69c36f0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +# Defines the tag for OBS and build script builds: +#!BuildTag: opensuse/golang:1.17 +#!BuildTag: opensuse/golang:%%PKG_VERSION%% +#!BuildTag: opensuse/golang:%%PKG_VERSION%%.%RELEASE% + +ARG BASE=opensuse/tumbleweed +FROM $BASE + +# labelprefix=org.opensuse.golang +PREFIXEDLABEL org.opencontainers.image.title="Go 1.17 development container" +PREFIXEDLABEL org.opencontainers.image.description="Environment for Go 1.17 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/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 +ARG RELEASE_PACKAGE=openSUSE-release-appliance-docker +RUN zypper install -y --no-recommends $RELEASE_PACKAGE go1.17 git-core && \ + zypper clean && \ + mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" + +WORKDIR $GOPATH +CMD [ "/bin/bash" ] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2b62e4c --- /dev/null +++ b/LICENSE @@ -0,0 +1,17 @@ +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/_service b/_service new file mode 100644 index 0000000..369c3c4 --- /dev/null +++ b/_service @@ -0,0 +1,10 @@ + + + + Dockerfile + %%PKG_VERSION%% + patch + go1.17 + + + diff --git a/go1.17-devel-container.changes b/go1.17-devel-container.changes new file mode 100644 index 0000000..573b10d --- /dev/null +++ b/go1.17-devel-container.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Apr 8 17:23:09 UTC 2022 - Dirk Müller + +- Create Go 1.17 development environment +