forked from pool/kubic-etcd-minus1-image
- Initial Packaging
OBS-URL: https://build.opensuse.org/package/show/devel:kubic:containers/kubic-etcd-minus1-image?expand=0&rev=1
This commit is contained in:
commit
1eb8586326
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
17
LICENSE
Normal file
17
LICENSE
Normal file
@ -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.
|
10
_service
Normal file
10
_service
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<services>
|
||||||
|
<service mode="buildtime" name="kiwi_metainfo_helper"/>
|
||||||
|
<service name="replace_using_package_version" mode="buildtime">
|
||||||
|
<param name="file">kubic-etcd-minus1-image-.kiwi</param>
|
||||||
|
<param name="regex">%PKG_VERSION%</param>
|
||||||
|
<param name="parse-version">patch</param>
|
||||||
|
<param name="package">kubernetes-etcd-minus1</param>
|
||||||
|
</service>
|
||||||
|
<service mode="buildtime" name="kiwi_label_helper"/>
|
||||||
|
</services>
|
20
config.sh
Normal file
20
config.sh
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
#--------------------------------------
|
||||||
|
#test -f /.profile && . /.profile
|
||||||
|
|
||||||
|
#======================================
|
||||||
|
# Greeting...
|
||||||
|
#--------------------------------------
|
||||||
|
echo "Configure image: [$kiwi_iname]..."
|
||||||
|
|
||||||
|
for i in /usr/bin/etcdctl* ; do
|
||||||
|
ln -sf $i /usr/local/bin/`basename $i`
|
||||||
|
done
|
||||||
|
for i in /usr/sbin/etcd* ; do
|
||||||
|
ln -sf $i /usr/local/bin/`basename $i`
|
||||||
|
done
|
||||||
|
ln -sf /usr/bin/migrate /usr/local/bin/
|
||||||
|
ln -sf /usr/bin/migrate-if-needed.sh /usr/local/bin/
|
||||||
|
|
||||||
|
exit 0
|
51
kubic-etcd-minus1-image.kiwi
Normal file
51
kubic-etcd-minus1-image.kiwi
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<!-- OBS-ExcludeArch: i586 s390 -->
|
||||||
|
|
||||||
|
<image schemaversion="6.9" name="kubic-etcd-minus1-image" xmlns:suse_label_helper="com.suse.label_helper">
|
||||||
|
<description type="system">
|
||||||
|
<author>Richard Brown</author>
|
||||||
|
<contact>rbrown@suse.com</contact>
|
||||||
|
<specification>Image containing etcd for openSUSE Kubic.</specification>
|
||||||
|
</description>
|
||||||
|
<preferences>
|
||||||
|
<type
|
||||||
|
image="docker"
|
||||||
|
derived_from="obsrepositories:/opensuse/busybox#latest">
|
||||||
|
<containerconfig
|
||||||
|
name="kubic/etcd"
|
||||||
|
tag="latest"
|
||||||
|
additionaltags="%PKG_VERSION%,%PKG_VERSION%-0,%PKG_VERSION%-0.%RELEASE%"
|
||||||
|
maintainer="Richard Brown <rbrown@suse.com>">
|
||||||
|
<expose>
|
||||||
|
<port number="2379"/>
|
||||||
|
<port number="2380"/>
|
||||||
|
<port number="4001"/>
|
||||||
|
<port number="7001"/>
|
||||||
|
</expose>
|
||||||
|
<subcommand execute="/bin/sh"/>
|
||||||
|
<labels>
|
||||||
|
<suse_label_helper:add_prefix prefix="org.opensuse.kubic.etcd">
|
||||||
|
<label name="org.opencontainers.image.title" value="openSUSE Kubic etcd container"/>
|
||||||
|
<label name="org.opencontainers.image.description" value="Image containing etcd for openSUSE Kubic."/>
|
||||||
|
<label name="org.opencontainers.image.version" value="%PKG_VERSION%-%RELEASE%"/>
|
||||||
|
<label name="org.opencontainers.image.created" value="%BUILDTIME%"/>
|
||||||
|
<label name="org.opensuse.reference" value="registry.opensuse.org/kubic/etcd:%PKG_VERSION%-%RELEASE%"/>
|
||||||
|
<label name="org.openbuildservice.disturl" value="%DISTURL%"/>
|
||||||
|
</suse_label_helper:add_prefix>
|
||||||
|
</labels>
|
||||||
|
<history author="Richard Brown <rbrown@suse.com>">openSUSE Kubic etcd container</history>
|
||||||
|
</containerconfig>
|
||||||
|
</type>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
<packagemanager>zypper</packagemanager>
|
||||||
|
<rpm-excludedocs>true</rpm-excludedocs>
|
||||||
|
</preferences>
|
||||||
|
<repository>
|
||||||
|
<source path="obsrepositories:/"/>
|
||||||
|
</repository>
|
||||||
|
<packages type="bootstrap">
|
||||||
|
<package name="kubernetes-etcd-minus1"/>
|
||||||
|
<!-- package name="kubernetes-etcd-migrate"/ -->
|
||||||
|
</packages>
|
||||||
|
</image>
|
4
kubic-etcd-minus1-image.kiwi.changes
Normal file
4
kubic-etcd-minus1-image.kiwi.changes
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 1 15:46:06 UTC 2020 - Richard Brown <rbrown@suse.com>
|
||||||
|
|
||||||
|
- Initial Packaging
|
Loading…
x
Reference in New Issue
Block a user