@@ -4,18 +4,9 @@ ARG CI_DEPLOY_TOKEN
4
4
ARG VANILLA_VERSION=3.3
5
5
ARG ENV
6
6
ARG BRANCH
7
- ARG TIDEWAYS_ENV
8
7
9
- # TIDEWAYS DAEMON
10
- ENV TIDEWAYS_SERVICE web
11
- ENV TIDEWAYS_ENVIRONMENT=$TIDEWAYS_ENV
12
- ENV TIDEWAYS_DAEMON_EXTRA="--env=$TIDEWAYS_ENVIRONMENT --debug"
13
-
14
- # VANILLA
15
- ENV VANILLA_ENV=$ENV
16
8
ENV WEB_DOCUMENT_ROOT /vanillapp
17
9
18
- RUN echo "Tideways Daemon for '$TIDEWAYS_ENV' env"
19
10
20
11
# Get the latest release of Vanilla Forums
21
12
RUN wget https://github.com/vanilla/vanilla/releases/download/Vanilla_${VANILLA_VERSION}/vanilla-${VANILLA_VERSION}.zip
@@ -52,11 +43,22 @@ RUN git clone --branch mfe https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platfo
52
43
# then rm -R /tmp/forums-plugins/DebugPlugin; \
53
44
# fi
54
45
46
+ # Copy the Filestack plugin
47
+ RUN git clone https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-filestack-plugin /tmp/forums-plugins/Filestack
48
+
49
+ # Copy the Groups plugin
50
+ RUN git clone https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-groups-plugin /tmp/forums-plugins/Groups
51
+
52
+ # Copy the SumoLogic plugin
53
+ RUN git clone https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-sumologic-plugin /tmp/forums-plugins/Sumologic
54
+
55
+ # Copy the TopcoderEditor plugin
56
+ RUN git clone https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-topcoder-editor-plugin /tmp/forums-plugins/TopcoderEditor
55
57
56
58
# Copy all plugins to the Vanilla plugins folder
57
59
RUN cp -r /tmp/forums-plugins/. /vanillapp/plugins
58
60
59
- # Get the debug bar plugin
61
+ # Get the debug bar plugin
60
62
RUN if [ "$ENV" = "dev" ]; then \
61
63
wget https://us.v-cdn.net/5018160/uploads/addons/KSBIPJYMC0F2.zip; \
62
64
unzip KSBIPJYMC0F2.zip; \
@@ -78,24 +80,3 @@ COPY ./vanilla/. /vanillapp/.
78
80
# Set permissions on config file
79
81
RUN chown application:application /vanillapp/conf/config.php
80
82
RUN chmod ug=rwx,o=rx /vanillapp/conf/config.php
81
-
82
- # Tideways
83
- RUN apt-get update && apt-get install -yq --no-install-recommends gnupg2;
84
- RUN echo 'deb https://packages.tideways.com/apt-packages-main any-version main' > /etc/apt/sources.list.d/tideways.list && \
85
- curl -L -sS 'https://packages.tideways.com/key.gpg' | apt-key add - && \
86
- apt-get update && \
87
- DEBIAN_FRONTEND=noninteractive apt-get -yq install tideways-php tideways-daemon && \
88
- apt-get autoremove --assume-yes && \
89
- apt-get clean && \
90
- rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \
91
- echo 'extension=tideways.so\n tideways.enable_cli=0\n tideways.sample_rate=25' >> opt/docker/etc/php/php.ini;
92
-
93
- # Copy custom supervisor's configs and scripts
94
- # Netcat is used to connect to a memcached server
95
- RUN apt-get update && apt-get install -y netcat
96
- COPY ./services/*.conf /opt/docker/etc/supervisor.d/
97
- COPY ./services/*.sh /opt/docker/bin/service.d/
98
-
99
- # Ensure the service files are already executable
100
- RUN chmod +x /opt/docker/bin/service.d/flush_cache.sh
101
- RUN chmod +x /opt/docker/bin/service.d/tideways.sh
0 commit comments