15e72b60ec
Change-Id: If864bea96ec5933c00bf91b61ddef5dd11ae5d09
37 lines
1.5 KiB
Docker
37 lines
1.5 KiB
Docker
ARG CALICOCTL_VERSION=v3.4.0
|
|
|
|
FROM quay.io/calico/ctl:${CALICOCTL_VERSION}
|
|
MAINTAINER Deepak Tiwari <deepak.dt@gmail.com>
|
|
|
|
LABEL org.opencontainers.image.authors='att-comdev and Openstack-Helm Authors'
|
|
LABEL org.opencontainers.image.url='https://github.com/att-comdev/porthole'
|
|
LABEL org.opencontainers.image.documentation='https://github.com/att-comdev/porthole/blob/master/README'
|
|
LABEL org.opencontainers.image.source='https://github.com/att-comdev/porthole'
|
|
LABEL org.opencontainers.image.vendor='att-comdev and Openstack-Helm Authors'
|
|
LABEL org.opencontainers.image.licenses='BSD-3-Clause'
|
|
|
|
RUN echo '#!/bin/sh' > /usr/sbin/policy-rc.d \
|
|
&& echo 'exit 101' >> /usr/sbin/policy-rc.d \
|
|
&& chmod +x /usr/sbin/policy-rc.d \
|
|
&& sed -i '/nobody/d' /etc/passwd \
|
|
&& echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \
|
|
&& apk add dpkg --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main \
|
|
&& apk add --update dpkg \
|
|
&& touch /var/lib/dpkg/status \
|
|
&& apk update \
|
|
&& dpkg-divert --local --rename --add /sbin/initctl \
|
|
&& cp -a /usr/sbin/policy-rc.d /sbin/initctl \
|
|
&& sed -i 's/^exit.*/exit 0/' /sbin/initctl \
|
|
&& apk add --update \
|
|
python python-dev py-pip build-base \
|
|
sudo vim screen rsyslog \
|
|
wget curl socat \
|
|
&& pip install oslo.rootwrap
|
|
|
|
RUN mv /calicoctl /usr/local/bin/calicoctl \
|
|
&& chmod 0754 /usr/local/bin/calicoctl \
|
|
&& chmod 0754 /usr/bin/socat
|
|
|
|
WORKDIR /tmp
|
|
ENTRYPOINT ["/bin/sh", "-c"]
|