grim/hgkeeper
Clone
Summary
Browse
Changes
Graph
Do not allow repositories in a repository
14 months ago, aklitzing
ebf8e3bd9e68
Do not allow repositories in a repository
It will be strange to support something like this
$ hg init ssh://hg.host.com/hgkeeper/keys
Reviewed at https://reviews.imfreedom.org/r/2423/
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"
]