@@ -3,6 +3,7 @@ FROM webdevops/php-apache
3
3
ARG CI_DEPLOY_TOKEN
4
4
ARG VANILLA_VERSION=3.3
5
5
ARG ENV
6
+ ARG BRANCH
6
7
7
8
ENV TIDEWAYS_SERVICE vanilla
8
9
ENV WEB_DOCUMENT_ROOT /vanillapp
@@ -15,33 +16,42 @@ RUN chmod -R 777 /vanillapp
15
16
16
17
# Delete the auto-enabled 'stubcontent' plugin which adds stub contents
17
18
RUN rm -R /vanillapp/plugins/stubcontent
19
+
20
+ RUN echo "'$BRANCH' branch will be used for dependency repos ..."
21
+
18
22
# Clone the forum-plugins repository
19
- RUN git clone https://github.com/topcoder-platform/forums-plugins.git /tmp/forums-plugins
23
+ RUN git clone --branch ${BRANCH} https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-plugins.git /tmp/forums-plugins
24
+
25
+ # Copy the Filestack plugin
26
+ RUN git clone --branch ${BRANCH} https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-filestack-plugin /tmp/forums-plugins/Filestack
27
+
28
+ # Copy the Groups plugin
29
+ RUN git clone --branch ${BRANCH} https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-groups-plugin /tmp/forums-plugins/Groups
30
+
31
+ # Copy the SumoLogic plugin
32
+ RUN git clone --branch ${BRANCH} https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-sumologic-plugin /tmp/forums-plugins/Sumologic
33
+
34
+ # Copy the TopcoderEditor plugin
35
+ RUN git clone --branch ${BRANCH} https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-topcoder-editor-plugin /tmp/forums-plugins/TopcoderEditor
36
+
37
+ # Copy the forum-theme repository
38
+ RUN git clone --branch ${BRANCH} https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-theme.git /vanillapp/themes/topcoder
20
39
21
40
# Remove DebugPlugin from PROD env
22
41
# RUN if [ "$ENV" = "prod" ]; \
23
42
# then rm -R /tmp/forums-plugins/DebugPlugin; \
24
43
# fi
25
44
26
- # Copy the Filestack plugin
27
- RUN git clone https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-filestack-plugin /tmp/forums-plugins/Filestack
28
-
29
- # Copy the Groups plugin
30
- RUN git clone https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-groups-plugin /tmp/forums-plugins/Groups
31
-
32
- # Copy the SumoLogic plugin
33
- RUN git clone https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-sumologic-plugin /tmp/forums-plugins/Sumologic
34
-
35
- # Copy the TopcoderEditor plugin
36
- RUN git clone https://${CI_DEPLOY_TOKEN}@github.com/topcoder-platform/forums-topcoder-editor-plugin /tmp/forums-plugins/TopcoderEditor
37
45
38
46
# Copy all plugins to the Vanilla plugins folder
39
47
RUN cp -r /tmp/forums-plugins/. /vanillapp/plugins
40
48
41
- # Get the debug bar plugin
42
- RUN wget https://us.v-cdn.net/5018160/uploads/addons/KSBIPJYMC0F2.zip
43
- RUN unzip KSBIPJYMC0F2.zip
44
- RUN cp -r debugbar /vanillapp/plugins
49
+ # Get the debug bar plugin
50
+ RUN if [ "$ENV" = "dev" ]; then \
51
+ wget https://us.v-cdn.net/5018160/uploads/addons/KSBIPJYMC0F2.zip; \
52
+ unzip KSBIPJYMC0F2.zip; \
53
+ cp -r debugbar /vanillapp/plugins; \
54
+ fi
45
55
46
56
# Install Topcoder dependencies
47
57
RUN composer install --working-dir /vanillapp/plugins/Topcoder
@@ -58,8 +68,7 @@ COPY ./vanilla/. /vanillapp/.
58
68
# Set permissions on config file
59
69
RUN chown application:application /vanillapp/conf/config.php
60
70
RUN chmod ug=rwx,o=rx /vanillapp/conf/config.php
61
- # Clone the forum-theme repository
62
- RUN git clone 'https://github.com/topcoder-platform/forums-theme.git' /vanillapp/themes/topcoder
71
+
63
72
64
73
# Tideways
65
74
RUN if [ "$ENV" = "dev" ]; then \
0 commit comments