porthole/images/mysqlclient-utility/Dockerfile.ubuntu_bionic
diwakar thyagaraj 32e8e36677 Mysqlclient UC Python and Ubuntu upgrade.
This Patchset updates from xenial to Bionic,
and Python from 2.0 to 3.0.

Change-Id: Ia3b75e51b685666e67b100925249c80e2343de4b
2019-12-06 19:36:53 +00:00

33 lines
1.0 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'
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 install -y \
bash \
moreutils \
mysql-client \
python3 \
python3-pip \
python3-oslo.rootwrap \
sudo \
rsyslog && \
sed -i 's/$PrivDropToUser syslog/$PrivDropToUser nobody/' /etc/rsyslog.conf && \
apt-get clean -y && \
rm -rf \
/tmp/* \
/var/cache/debconf/* \
/var/lib/apt/lists/* \
/var/tmp/*
CMD ["/bin/bash"]