Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
request #9972: SSH host keys in the tuleap-aio are the same for all t…
Browse files Browse the repository at this point in the history
…he containers

The keys are now generated on the start of the container with an empty data volume
  • Loading branch information
LeSuisse committed Feb 17, 2017
1 parent a270447 commit b2fa00a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Expand Up @@ -49,7 +49,8 @@ RUN sed -i '/session required pam_loginuid.so/c\#session required
tuleap-customization-default \
tuleap-api-explorer && \
yum clean all && \
sed -i 's/#PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
sed -i 's/#PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config && \
rm -f /etc/ssh/ssh_host_*

COPY supervisord.conf /etc/supervisord.conf

Expand Down
3 changes: 3 additions & 0 deletions boot-install.sh
Expand Up @@ -39,6 +39,9 @@ root_passwd=$(generate_passwd)
echo "root:$root_passwd" |chpasswd
echo "root: $root_passwd" >> /root/.tuleap_passwd

# Force the generation of the SSH host keys
service sshd start && service sshd stop

# Place for post install stuff
./boot-postinstall.sh

Expand Down

0 comments on commit b2fa00a

Please sign in to comment.