OSBS can automatically bump the release number, for that we just need to drop the label from the Dockerfile See https://pagure.io/ContainerSIG/container-sig/issue/1 Signed-off-by: Clement Verna <cverna@tutanota.com>
25 lines
886 B
Docker
25 lines
886 B
Docker
FROM registry.fedoraproject.org/fedora:rawhide
|
|
|
|
ENV container=docker FLANNELD_ETCD_ENDPOINTS="http://127.0.0.1:2379" FLANNELD_ETCD_PREFIX="/atomic.io/network"
|
|
|
|
ENV VERSION=0 ARCH=x86_64
|
|
LABEL com.redhat.component="flannel" \
|
|
name="$FGC/flannel" \
|
|
version="$VERSION" \
|
|
architecture="$ARCH" \
|
|
summary="An etcd driven address agent, intended to be run as a system container" \
|
|
maintainer="Giuseppe Scrivano <gscrivan@redhat.com>" \
|
|
atomic.type='system'
|
|
|
|
RUN dnf -y --setopt=tsflags=nodocs install flannel && dnf clean all
|
|
|
|
ADD flanneld-run.sh /usr/bin/
|
|
|
|
RUN mkdir -p /exports/hostfs/etc/sysconfig/ && cp /etc/sysconfig/flanneld /exports/hostfs/etc/sysconfig/
|
|
RUN mkdir -p /exports/hostfs/etc/flanneld
|
|
|
|
# System container files
|
|
COPY tmpfiles.template service.template manifest.json \
|
|
config.json.template /exports/
|
|
|
|
CMD ["/usr/bin/flanneld-run.sh"]
|