1
0

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
This commit is contained in:
Richard Brown 2022-02-01 14:10:56 +00:00 committed by Git OBS Bridge
commit 13bcbb17b1
7 changed files with 94 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

20
Dockerfile Normal file
View File

@ -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"]

21
LICENSE Normal file
View File

@ -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.

16
_service Normal file
View File

@ -0,0 +1,16 @@
<services>
<service mode="buildtime" name="kiwi_metainfo_helper"/>
<service mode="buildtime" name="docker_label_helper"/>
<service name="replace_using_package_version" mode="buildtime">
<param name="file">Dockerfile</param>
<param name="regex">%%PKG_VERSION%%</param>
<param name="parse-version">patch</param>
<param name="package">memcached</param>
</service>
<service name="replace_using_package_version" mode="buildtime">
<param name="file">Dockerfile</param>
<param name="regex">%%MINOR%%</param>
<param name="parse-version">minor</param>
<param name="package">memcached</param>
</service>
</services>

9
docker-entrypoint.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/sh
set -e
# first arg is `-f` or `--some-option`
if [ "${1#-}" != "$1" ]; then
set -- memcached "$@"
fi
exec "$@"

4
memcached-image.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Fri Jan 14 12:01:42 UTC 2022 - Sarah Kriesch <sarah.kriesch@opensuse.org>
- Create memcached container image