Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion ubuntu-18.04/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM ubuntu:18.04
MAINTAINER Andrew Kennedy "grkvlt@apache.org"
MAINTAINER Iuliana Cosmina "iuliana@cloudsoft.io"

# CONTAINER_SERVICE_VERSION_BELOW
LABEL version="2.0.0-SNAPSHOT"
Expand All @@ -12,6 +12,7 @@ RUN echo 'root:p4ssw0rd' | chpasswd

# install sshd
RUN apt-get update ; \
apt-get install -y --no-install-recommends apt-utils ;\
apt-get install -y openssh-server sudo; \
mkdir /var/run/sshd ; \
chmod 600 /var/run/sshd
Expand All @@ -34,6 +35,16 @@ RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so
COPY docker-entrypoint.sh /
RUN chmod 700 /docker-entrypoint.sh

# Needed to support install of PostgreSQL 12 and MySQL 5.7
RUN which curl || apt -y install curl
RUN export DEBIAN_FRONTEND=noninteractive
RUN echo exit 0 > /usr/sbin/policy-rc.d
RUN apt-get install -y openssh-server netbase perl libnuma1 psmisc locales locales-all libxslt1.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be the responsibility of the postgres / mysql blueprint to do, or should we hard-bake it into the base image in the assumption that end-users would have done this in a real environment?

It seems wrong to install too much into the base docker image.

Thoughts?

RUN ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime
RUN apt-get install -y tzdata
RUN dpkg-reconfigure --frontend noninteractive tzdata
RUN echo "$(date)" >> /tmp/image.info

EXPOSE 22

ENTRYPOINT ["/docker-entrypoint.sh"]