@@ -4,6 +4,8 @@ ARG CI_DEPLOY_TOKEN
44ARG VANILLA_VERSION=3.3
55ARG ENV
66
7+ # Environment Variables
8+ ENV TIDEWAYS_SERVICE vanilla
79ENV WEB_DOCUMENT_ROOT /vanillapp
810
911# Get the latest release of Vanilla Forums
@@ -20,24 +22,24 @@ RUN git clone https://github.com/topcoder-platform/forums-plugins.git /tmp/forum
2022# Remove DebugPlugin from PROD env
2123# RUN if [ "$ENV" = "prod" ]; \
2224# then rm -R /tmp/forums-plugins/DebugPlugin; \
23- # fi
25+ # fi
2426
2527# Copy the Filestack plugin
2628RUN git clone https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-filestack-plugin /tmp/forums-plugins/Filestack
2729
28- # Copy the Groups plugin
30+ # Copy the Groups plugin
2931RUN git clone https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-groups-plugin /tmp/forums-plugins/Groups
3032
31- # Copy the SumoLogic plugin
33+ # Copy the SumoLogic plugin
3234RUN git clone https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-sumologic-plugin /tmp/forums-plugins/Sumologic
3335
34- # Copy the TopcoderEditor plugin
36+ # Copy the TopcoderEditor plugin
3537RUN git clone https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-topcoder-editor-plugin /tmp/forums-plugins/TopcoderEditor
3638
3739# Copy all plugins to the Vanilla plugins folder
3840RUN cp -r /tmp/forums-plugins/. /vanillapp/plugins
3941
40- # Get the debug bar plugin
42+ # Get the debug bar plugin
4143RUN wget https://us.v-cdn.net/5018160/uploads/addons/KSBIPJYMC0F2.zip
4244RUN unzip KSBIPJYMC0F2.zip
4345RUN cp -r debugbar /vanillapp/plugins
@@ -59,3 +61,17 @@ RUN chown application:application /vanillapp/conf/config.php
5961RUN chmod ug=rwx,o=rx /vanillapp/conf/config.php
6062# Clone the forum-theme repository
6163RUN git clone 'https://github.com/topcoder-platform/forums-theme.git' /vanillapp/themes/topcoder
64+
65+ # Tideways
66+ RUN apt-get update && apt-get install -y gnupg2
67+ RUN echo 'deb https://packages.tideways.com/apt-packages debian main' > /etc/apt/sources.list.d/tideways.list && \
68+ curl -L -sS 'https://packages.tideways.com/key.gpg' | apt-key add - && \
69+ apt-get update && \
70+ DEBIAN_FRONTEND=noninteractive apt-get -yq install tideways-php && \
71+ apt-get autoremove --assume-yes && \
72+ apt-get clean && \
73+ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
74+
75+ # For customization a placeholder /opt/docker/etc/php/php.ini is available which will be loaded as last configuration file.
76+ # All settings can be overwritten in this ini file
77+ RUN echo 'extension=tideways.so\n tideways.connection=tcp://tideways-daemon:9135\n tideways.enable_cli=0\n ' >> opt/docker/etc/php/php.ini
0 commit comments