* elastic use include
+ add secrets to example
This commit is contained in:
@ -117,7 +117,9 @@ RUN if [ ${INSTALL_SSH} = true ]; then \
|
||||
USER laradock
|
||||
|
||||
RUN if [ ${INSTALL_SSH} = true ]; then \
|
||||
mkdir -p ~/.ssh && ln -s /run/secrets/user_ssh_key ~/.ssh/id_rsa \
|
||||
mkdir -p ~/.ssh \
|
||||
&& ln -s /run/secrets/user_ssh_key ~/.ssh/id_rsa \
|
||||
&& ln -s /run/secrets/user_known_hosts ~/.ssh/known_hosts \
|
||||
;fi
|
||||
|
||||
###########################################################################
|
||||
@ -433,23 +435,12 @@ COPY ./minio/auth.json /home/laradock/.mc/config.json
|
||||
USER laradock
|
||||
|
||||
RUN if [ ${INSTALL_SSH} = true ]; then \
|
||||
mkdir -p ~/.ssh && ln -s /run/secrets/user_ssh_key ~/.ssh/id_rsa \
|
||||
&& ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts \
|
||||
&& ssh-keyscan -t rsa bitbucket.org >> ~/.ssh/known_hosts \
|
||||
&& ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts \
|
||||
&& ssh-keyscan -t rsa vcs.wpstudio.ru >> ~/.ssh/known_hosts \
|
||||
;fi
|
||||
|
||||
###########################################################################
|
||||
# Crontab
|
||||
###########################################################################
|
||||
|
||||
USER root
|
||||
|
||||
COPY ./crontab /etc/cron.d
|
||||
|
||||
RUN chmod -R 644 /etc/cron.d
|
||||
|
||||
#
|
||||
#--------------------------------------------------------------------------
|
||||
# Final Touch
|
||||
|
Reference in New Issue
Block a user