![Huang, Sophie (sh879n)](/assets/img/avatar_default.png)
Package pwgen is added to mysqlclient utility image to support the password generation for mysql database restore user. Change-Id: I891679dcf12aac8156e1c5e623587f3e3b3e18c6
38 lines
1.2 KiB
Docker
38 lines
1.2 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 && \
|
|
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 \
|
|
bash \
|
|
moreutils \
|
|
mysql-client \
|
|
python3 \
|
|
python3-pip \
|
|
python3-oslo.rootwrap \
|
|
python3-openstackclient \
|
|
python3-swiftclient \
|
|
curl \
|
|
pwgen \
|
|
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"]
|