Hello community, here is the log from the commit of package opensuse-nfs-server-image for openSUSE:Factory checked in at 2020-06-04 17:57:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/opensuse-nfs-server-image (Old) and /work/SRC/openSUSE:Factory/.opensuse-nfs-server-image.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "opensuse-nfs-server-image" Thu Jun 4 17:57:07 2020 rev:1 rq:811500 version:1.0.0 Changes: -------- New Changes file: --- /dev/null 2020-05-28 02:28:09.919761697 +0200 +++ /work/SRC/openSUSE:Factory/.opensuse-nfs-server-image.new.3606/opensuse-nfs-server-image.changes 2020-06-04 17:57:10.321139949 +0200 @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 4 08:56:26 UTC 2020 - Thorsten Kukuk <ku...@suse.com> + +- Add README file with documentation how to use this container + +------------------------------------------------------------------- +Fri Mar 27 13:51:04 UTC 2020 - Thorsten Kukuk <ku...@suse.com> + +- Initial version New: ---- LICENSE README _service config.sh entrypoint.tar.gz opensuse-nfs-server-image.changes opensuse-nfs-server-image.kiwi ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ opensuse-nfs-server-image.kiwi ++++++ <?xml version="1.0" encoding="utf-8"?> <!-- OBS-ExcludeArch: i586 s390 --> <image schemaversion="6.9" name="opensuse-nfs-server-image" xmlns:suse_label_helper="com.suse.label_helper"> <description type="system"> <author>Thorsten Kukuk</author> <contact>ku...@suse.com</contact> <specification>openSUSE image containing NFS server.</specification> </description> <preferences> <type image="docker" derived_from="obsrepositories:/opensuse/busybox#latest"> <containerconfig name="opensuse/nfs-server" tag="latest" additionaltags="%PKG_VERSION%,%PKG_VERSION%-%RELEASE%" maintainer="Thorsten Kukuk <ku...@suse.com>"> <entrypoint execute="/usr/local/bin/entrypoint.sh"/> <expose> <port number='2049'/> </expose> <labels> <suse_label_helper:add_prefix prefix="org.opensuse.nfs-server"> <label name="org.opencontainers.image.title" value="openSUSE NFS server container"/> <label name="org.opencontainers.image.description" value="Image containing NFS server."/> <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/opensuse/nfs-server:%PKG_VERSION%-%RELEASE%"/> <label name="org.openbuildservice.disturl" value="%DISTURL%"/> </suse_label_helper:add_prefix> </labels> <history author="Thorsten Kukuk <ku...@suse.com>">openSUSE NFS server container</history> </containerconfig> </type> <version>1.0.0</version> <packagemanager>zypper</packagemanager> <rpm-excludedocs>false</rpm-excludedocs> </preferences> <repository> <source path="obsrepositories:/"/> </repository> <packages type="bootstrap"> <package name="nfs-kernel-server"/> <package name="mandoc"/> <package name="kubernetes-pause"/> <package name="--"/> <package name="-busybox-man"/> <archive name="entrypoint.tar.gz"/> </packages> </image> ++++++ LICENSE ++++++ 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. ++++++ README ++++++ openSUSE NFS Server Image Description This container image contains all required tools to run a NFS Server. By default, only NFSv4 is available, but NFSv3 can be enabled, too. Location: registry.opensuse.org/opensuse/nfs-server Configuration The command to run this container is: podman run -d --rm -v /<export>:/<export> [-v /etc/exports:/etc/exports:ro] --name nfs-server -p 2049:2049 --privileged registry.opensuse.org/opensuse/nfs-server [/export] The module needs to be able to load the nfsd kernel module. There are two ways to export the directories: An /etc/exports file with all directories and permissions can be provided. Or, a list of directories which should be exported can be provided as argument list. In this case, and if there is no /etc/exports, the container will create it's own /etc/exports file with default exports rules. NFSv3: To enable NFSv3, the variable NFS3_SERVER_SUPPORT from /etc/sysconfig/nfs needs to be set to "yes". Untested: additional, all services needs to be exported, including rpcbind, rpc.statd and others. A list of possible additional ports: -p 2049:2049 -p 2049:2049/udp -p 111:111 -p 111:111/udp -p 32765:32765 -p 32765:32765/udp -p 32767:32767 -p 32767:32767/udp ++++++ _service ++++++ <services> <service mode="buildtime" name="kiwi_metainfo_helper"/> <service name="replace_using_package_version" mode="buildtime"> <param name="file">opensuse-nfs-server-image.kiwi</param> <param name="regex">%PKG_VERSION%</param> <param name="parse-version">patch</param> <param name="package">nfs-kernel-server</param> </service> <service mode="buildtime" name="kiwi_label_helper"/> </services> ++++++ config.sh ++++++ #!/bin/sh #-------------------------------------- #test -f /.kconfig && . /.kconfig #test -f /.profile && . /.profile #====================================== # Greeting... #-------------------------------------- echo "Configure image: [$kiwi_iname]..." # Disable NFSv3 by default sed -i -e 's|NFS3_SERVER_SUPPORT=.*|NFS3_SERVER_SUPPORT="no"|g' /etc/sysconfig/nfs # delete some default files rm -fv /etc/exports # make sure correct directories exist mkdir -p /export mkdir -p /var/lib/nfs touch /var/lib/nfs/etab touch /var/lib/nfs/rmtab exit 0