From 13bcbb17b13a6c7b75823122113ca12215c7d7e146f17ab63a4bfee7dd0f934d Mon Sep 17 00:00:00 2001 From: Richard Brown Date: Tue, 1 Feb 2022 14:10:56 +0000 Subject: [PATCH] Accepting request 950234 from home:AdaLovelace:branches:openSUSE:Templates:Images:Tumbleweed - Create memcached container image OBS-URL: https://build.opensuse.org/request/show/950234 OBS-URL: https://build.opensuse.org/package/show/devel:kubic:containers/opensuse-memcached-image?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++++++++ .gitignore | 1 + Dockerfile | 20 ++++++++++++++++++++ LICENSE | 21 +++++++++++++++++++++ _service | 16 ++++++++++++++++ docker-entrypoint.sh | 9 +++++++++ memcached-image.changes | 4 ++++ 7 files changed, 94 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 LICENSE create mode 100644 _service create mode 100644 docker-entrypoint.sh create mode 100644 memcached-image.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..d0baae5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +# Defines the tag for OBS and build script builds: +#!BuildTag: opensuse/memcached:latest +#!BuildTag: opensuse/memcached:%%MINOR%% +#!BuildTag: opensuse/memcached:%%PKG_VERSION%% +#!BuildTag: opensuse/memcached:%%PKG_VERSION%%-%RELEASE% +FROM opensuse/tumbleweed +# labelprefix=org.opensuse.memcached +PREFIXEDLABEL org.opencontainers.image.title="memcached" +PREFIXEDLABEL org.opencontainers.image.description="A high-performance, distributed memory object caching system version %PKG_VERSION%" +PREFIXEDLABEL org.opensuse.reference="registry.opensuse.org/opensuse/memcached:%PKG_VERSION%.%RELEASE%" +PREFIXEDLABEL org.openbuildservice.disturl="%DISTURL%" +PREFIXEDLABEL org.opencontainers.image.created="%BUILDTIME%" +# Fill the image with content and clean the cache(s) +RUN zypper --non-interactive in memcached && zypper clean -a +COPY docker-entrypoint.sh /usr/local/bin/ +RUN chmod +x /usr/local/bin/docker-entrypoint.sh +ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] +USER memcached +EXPOSE 11211 +CMD ["memcached"] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4244c99 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Sarah Kriesch + +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..487b14f --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + + + Dockerfile + %%PKG_VERSION%% + patch + memcached + + + Dockerfile + %%MINOR%% + minor + memcached + + diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh new file mode 100644 index 0000000..1ff883a --- /dev/null +++ b/docker-entrypoint.sh @@ -0,0 +1,9 @@ +#!/bin/sh +set -e + +# first arg is `-f` or `--some-option` +if [ "${1#-}" != "$1" ]; then + set -- memcached "$@" +fi + +exec "$@" diff --git a/memcached-image.changes b/memcached-image.changes new file mode 100644 index 0000000..02ff4dc --- /dev/null +++ b/memcached-image.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jan 14 12:01:42 UTC 2022 - Sarah Kriesch + +- Create memcached container image