![KAVVA, JAGAN MOHAN REDDY (jk330k)](/assets/img/avatar_default.png)
Currently etcdctl utility container image is built using Ubuntu 16.04 so upgrading it to use Ubuntu Bionic and also upgrading Python 2.x to 3.x. Change-Id: I24212878fcb004f7043d78b7cffb9364cb745e97
42 lines
1.4 KiB
Docker
42 lines
1.4 KiB
Docker
ARG FROM=docker.io/ubuntu:bionic
|
|
FROM ${FROM}
|
|
|
|
LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode' \
|
|
org.opencontainers.image.url='https://airshipit.org' \
|
|
org.opencontainers.image.documentation='https://opendev.org/airship/porthole' \
|
|
org.opencontainers.image.source='https://opendev.org/airship/porthole' \
|
|
org.opencontainers.image.vendor='The Airship Authors' \
|
|
org.opencontainers.image.licenses='Apache-2.0'
|
|
|
|
ARG ETCDCTL_VERSION=3.4.2
|
|
|
|
RUN set -xe && \
|
|
export DEBIAN_FRONTEND=noninteractive && \
|
|
sed -i '/nobody/d' /etc/passwd && \
|
|
echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd && \
|
|
apt-get update && \
|
|
apt-get install -y \
|
|
wget curl \
|
|
apt-transport-https \
|
|
ca-certificates \
|
|
gnupg && \
|
|
apt-get install -y \
|
|
bash \
|
|
moreutils \
|
|
python3 \
|
|
python3-pip \
|
|
python3-oslo.rootwrap \
|
|
sudo \
|
|
rsyslog && \
|
|
TMP_DIR=$(mktemp --directory) && \
|
|
cd ${TMP_DIR} && \
|
|
curl -sSL https://github.com/coreos/etcd/releases/download/v${ETCDCTL_VERSION}/etcd-v${ETCDCTL_VERSION}-linux-amd64.tar.gz \
|
|
| tar xfz - && \
|
|
mv ${TMP_DIR}/etcd-v${ETCDCTL_VERSION}-linux-amd64/etcdctl /usr/local/bin/etcdctl && \
|
|
chmod +xr /usr/local/bin/etcdctl && \
|
|
apt-get clean -y && \
|
|
rm -rf \
|
|
/var/lib/apt/lists/* \
|
|
${TMP_DIR}
|
|
CMD ["/bin/bash"]
|