@@ -4,6 +4,8 @@ ARG CI_DEPLOY_TOKEN
4
4
ARG VANILLA_VERSION=3.3
5
5
ARG ENV
6
6
7
+ # Environment Variables
8
+ ENV TIDEWAYS_SERVICE vanilla
7
9
ENV WEB_DOCUMENT_ROOT /vanillapp
8
10
9
11
# Get the latest release of Vanilla Forums
@@ -20,24 +22,24 @@ RUN git clone https://github.com/topcoder-platform/forums-plugins.git /tmp/forum
20
22
# Remove DebugPlugin from PROD env
21
23
# RUN if [ "$ENV" = "prod" ]; \
22
24
# then rm -R /tmp/forums-plugins/DebugPlugin; \
23
- # fi
25
+ # fi
24
26
25
27
# Copy the Filestack plugin
26
28
RUN git clone https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-filestack-plugin /tmp/forums-plugins/Filestack
27
29
28
- # Copy the Groups plugin
30
+ # Copy the Groups plugin
29
31
RUN git clone https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-groups-plugin /tmp/forums-plugins/Groups
30
32
31
- # Copy the SumoLogic plugin
33
+ # Copy the SumoLogic plugin
32
34
RUN git clone https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-sumologic-plugin /tmp/forums-plugins/Sumologic
33
35
34
- # Copy the TopcoderEditor plugin
36
+ # Copy the TopcoderEditor plugin
35
37
RUN git clone https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-topcoder-editor-plugin /tmp/forums-plugins/TopcoderEditor
36
38
37
39
# Copy all plugins to the Vanilla plugins folder
38
40
RUN cp -r /tmp/forums-plugins/. /vanillapp/plugins
39
41
40
- # Get the debug bar plugin
42
+ # Get the debug bar plugin
41
43
RUN wget https://us.v-cdn.net/5018160/uploads/addons/KSBIPJYMC0F2.zip
42
44
RUN unzip KSBIPJYMC0F2.zip
43
45
RUN cp -r debugbar /vanillapp/plugins
@@ -59,3 +61,17 @@ RUN chown application:application /vanillapp/conf/config.php
59
61
RUN chmod ug=rwx,o=rx /vanillapp/conf/config.php
60
62
# Clone the forum-theme repository
61
63
RUN 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