@@ -4,10 +4,15 @@ ARG CI_DEPLOY_TOKEN
44ARG VANILLA_VERSION=3.3
55ARG ENV
66ARG BRANCH
7+ ARG TIDEWAYS_ENV
78
89ENV TIDEWAYS_SERVICE web
10+ ENV TIDEWAYS_ENVIRONMENT=$TIDEWAYS_ENV
11+ ENV TIDEWAYS_DAEMON_EXTRA="--env=$TIDEWAYS_ENVIRONMENT"
912ENV WEB_DOCUMENT_ROOT /vanillapp
1013
14+ RUN echo "Tideways Daemon for '$TIDEWAYS_ENV' env"
15+
1116# Get the latest release of Vanilla Forums
1217RUN wget https://github.com/vanilla/vanilla/releases/download/Vanilla_${VANILLA_VERSION}/vanilla-${VANILLA_VERSION}.zip
1318RUN unzip vanilla-${VANILLA_VERSION}.zip -d /tmp
@@ -74,14 +79,14 @@ RUN apt-get update && apt-get install -yq --no-install-recommends gnupg2;
7479RUN echo 'deb https://packages.tideways.com/apt-packages debian main' > /etc/apt/sources.list.d/tideways.list && \
7580 curl -L -sS 'https://packages.tideways.com/key.gpg' | apt-key add - && \
7681 apt-get update && \
77- DEBIAN_FRONTEND=noninteractive apt-get -yq install tideways-php && \
82+ DEBIAN_FRONTEND=noninteractive apt-get -yq install tideways-php tideways-daemon && \
7883 apt-get autoremove --assume-yes && \
7984 apt-get clean && \
8085 rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \
81- echo 'extension=tideways.so\n tideways.connection=tcp://tideways-daemon:9135 \n tideways. enable_cli=0\n tideways.sample_rate=25' >> opt/docker/etc/php/php.ini;
86+ echo 'extension=tideways.so\n tideways.enable_cli=0\n tideways.sample_rate=25' >> opt/docker/etc/php/php.ini;
8287
8388# Copy custom supervisor's configs and scripts
8489# Netcat is used to connect to a memcached server
8590RUN apt-get update && apt-get install -y netcat
86- COPY ./services/flush_cache.conf /opt/docker/etc/supervisor.d/
87- COPY ./services/flush_cache.sh /opt/docker/bin/service.d/
91+ COPY ./services /opt/docker/etc/supervisor.d/
92+ COPY ./services /opt/docker/bin/service.d/
0 commit comments