* elastic use include

+ add secrets to example
This commit is contained in:
2021-04-15 13:19:32 +03:00
parent 29a58620f5
commit e051d0100c
17 changed files with 54 additions and 45 deletions

View File

@ -0,0 +1 @@
RUN elasticsearch-plugin install analysis-icu

View File

@ -0,0 +1,4 @@
# syntax = edrevo/dockerfile-plus
FROM docker.elastic.co/elasticsearch/elasticsearch:7.3.2
INCLUDE+ ./elastic.base.Dockerfile

View File

@ -0,0 +1,4 @@
# syntax = edrevo/dockerfile-plus
FROM docker.elastic.co/elasticsearch/elasticsearch:7.5.2
INCLUDE+ ./elastic.base.Dockerfile

View File

@ -1,3 +0,0 @@
FROM docker.elastic.co/elasticsearch/elasticsearch:7.3.2
RUN elasticsearch-plugin install analysis-icu

View File

@ -1,3 +0,0 @@
FROM docker.elastic.co/elasticsearch/elasticsearch:7.5.2
RUN elasticsearch-plugin install analysis-icu

View File

@ -1 +0,0 @@
* * * * * laradock /usr/bin/php /var/www/artisan schedule:run >> /dev/null 2>&1

View File

@ -0,0 +1 @@
#* * * * * laradock /usr/bin/php /var/www/artisan schedule:run >> /dev/null 2>&1

View File

@ -0,0 +1 @@
#* * * * * laradock /usr/bin/php /var/www/artisan schedule:run >> /dev/null 2>&1

View File

@ -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

View File

@ -10,3 +10,13 @@ INCLUDE+ ./workspace.base.Dockerfile
###########################################################################
RUN pecl install -a redis
###########################################################################
# Crontab
###########################################################################
USER root
COPY ./crontab73 /etc/cron.d
RUN chmod -R 644 /etc/cron.d

View File

@ -11,3 +11,13 @@ INCLUDE+ ./workspace.base.Dockerfile
RUN pecl install igbinary \
&& pecl install -a redis
###########################################################################
# Crontab
###########################################################################
USER root
COPY ./crontab74 /etc/cron.d
RUN chmod -R 644 /etc/cron.d