grim/hgkeeper

dc46af0b583b
Spit out a warning if we find a duplicated key.

We're going to continue the existing behavior of overwriting the keys to not
break potential set ups for the time being.

Fixes HGKEEPER-22
FROM rwgrim/hgkeeper:latest
# rwgrim/hgkeeper already creates an hg user so we don't need to create it here.
# Install openssh-server
RUN set -ex && \
apt-get update && \
apt-get install -y --no-install-recommends openssh-server tini && \
apt-get clean && \
rm -rf /var/lib/apt/lists
# Copy the openssh hgkeeper config into place. The include isn't working, so
# we just append our config to the sshd_config file
COPY hgkeeper.conf /etc/ssh/hgkeeper.conf
# Configure openssh-server
RUN set -ex && \
mkdir -p /run/sshd && \
cat /etc/ssh/hgkeeper.conf >> /etc/ssh/sshd_config
# Set the command
CMD ["tini", "--", "/usr/sbin/sshd", "-D", "-e"]