origin-keepalived-ipfailover/Dockerfile
2019-01-21 10:43:55 +01:00

32 lines
1.2 KiB
Docker

#
# VIP failover monitoring container for OpenShift.
#
# ImageName: openshift/origin-keepalived-ipfailover
#
FROM registry.fedoraproject.org/f29/origin-base:latest
ENV NAME=origin-keepalived-ipfailover \
VERSION=3.11 \
ARCH=x86_64
RUN INSTALL_PKGS="kmod keepalived iproute psmisc nmap-ncat net-tools ipset ipset-libs" && \
dnf install -y $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
dnf clean all
COPY . /var/lib/ipfailover/keepalived/
LABEL io.k8s.display-name="OpenShift IP Failover" \
io.k8s.description="This is a component of OpenShift and runs a clustered keepalived instance across multiple hosts to allow highly available IP addresses." \
io.openshift.tags="openshift,ha,ip,failover" \
summary="This is the base image from which all OpenShift Origin images inherit." \
maintainer="Jakub Cajka <jcajka@fedoraproject.org>" \
License="GPLv2+" \
name="$FGC/$NAME" \
com.redhat.component="$NAME" \
version="$VERSION" \
architecture="$ARCH" \
usage="This is the base image from which all OpenShift Origin images inherit."
EXPOSE 1985
WORKDIR /var/lib/ipfailover
ENTRYPOINT ["/var/lib/ipfailover/keepalived/monitor.sh"]