porthole/Dockerfiles/compute-utility/Dockerfile.ubuntu_xenial
Marjorie Middleton 3dc8d73be9 Initial Commit of compute-utility container code
Utility containers shall act as an interface to an Airship environment
 and shall enable them to perform routine operational and debugging
 activities. Utility containers shall enable Operations to seamlessly
support Airship environment without exposing secrets and credentials,
and at the same time restricting the access to actual containers.

The compute-utility container permits access  to services running on
each compute node. Services include ovs, libvirt, ipmi, perccli, numa
and sos.

Change-Id: I389b6f62f8abbd665960a2fd4de880f0f5380c2a
2019-08-20 15:14:54 +00:00

20 lines
945 B
Docker
Executable File

ARG FROM=docker.io/ubuntu:xenial
FROM ${FROM}
ARG KUBE_VERSION=1.12.2
RUN set -xe \
&& sed -i '/nobody/d' /etc/passwd \
&& echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \
&& apt-get update && apt-get dist-upgrade -y \
&& apt-get install -y wget curl apt-transport-https ca-certificates gnupg\
&& apt-get update && apt-get install -y bash python-oslo.rootwrap moreutils vim sudo screen radosgw rsyslog hexedit jq s3cmd rsync xz-utils iperf \
&& apt-get remove --purge -y wget apt-transport-https && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* \
&& TMP_DIR=$(mktemp --directory) \
&& cd ${TMP_DIR} \
&& curl -sSL https://dl.k8s.io/v${KUBE_VERSION}/kubernetes-client-linux-amd64.tar.gz | tar -zxv --strip-components=1 \
&& mv ${TMP_DIR}/client/bin/kubectl /usr/bin/kubectl \
&& chmod +x /usr/bin/kubectl \
&& rm -rf ${TMP_DIR}
CMD ["/bin/bash"]