Browse Source

rename nexus dir

master
dave 8 months ago
parent
commit
22c1ee2b9c
  1. 4
      Dockerfile
  2. 2
      default
  3. 2
      start

4
Dockerfile

@ -11,8 +11,8 @@ RUN useradd --create-home nexus && \
ln -s /data/nexus_authorized_keys /home/nexus/.ssh/authorized_keys
# Misc conf
RUN mkdir /start.d /nexus /var/run/sshd && \
chown nexus /nexus && \
RUN mkdir /start.d /data /var/run/sshd && \
chown nexus /data && \
rm /etc/ssh/ssh_host_* && \
mkdir /etc/ssh/keys && \
sed -i -E 's/#?HostKey \/etc\/ssh\//HostKey \/data\/keys\//' /etc/ssh/sshd_config && \

2
default

@ -8,6 +8,8 @@ server {
server_name localhost;
#client_body_temp_path /data/tmp/;
#fastcgi_temp_path /data/tmp/;
#proxy_temp_path /data/tmp/;
#auth_basic "Restricted";
#auth_basic_user_file /data/htpasswd;

2
start

@ -3,7 +3,7 @@
# run everything in start.d
find /start.d -type f -executable -exec {} \;
chown nexus /nexus
chown nexus /data
# start services
exec supervisord

Loading…
Cancel
Save