commit 0c49d9e2c9d93c35c74fcc47786ffcc9e499dc70 Author: dave Date: Tue Feb 17 21:37:15 2015 -0800 initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..35a8ffb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM basessh +MAINTAINER Dave P + +# Create user +RUN useradd --create-home nexus ; \ + echo "nexus:nexus" | chpasswd + +COPY start /start +RUN chmod +x /start + diff --git a/start b/start new file mode 100644 index 0000000..4200630 --- /dev/null +++ b/start @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ ! -f /etc/ssh/sshd_config ]; then + # Regenerate ssh key per container + dpkg-reconfigure openssh-server +fi + +chown nexus /nexus + +# start services +supervisord