forked from tripal/tripal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (35 loc) · 1.32 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
ARG phpversion='8.3'
ARG drupalversion='10.3.x-dev'
ARG postgresqlversion='16'
FROM tripalproject/tripaldocker-drupal:drupal${drupalversion}-php${phpversion}-pgsql${postgresqlversion}
ARG modules='devel devel_php field_group field_group_table'
ARG tripalmodules='tripal tripal_biodb tripal_chado tripal_layout'
ARG chadoschema='chado'
ARG installchado=TRUE
# Label docker image
LABEL tripal.version="4.x-dev"
LABEL tripal.stability="development"
COPY . /app
############# Tripal ##########################################################
RUN service apache2 start \
&& service postgresql start \
&& mkdir -p /var/www/drupal/web/modules/contrib \
&& cp -R /app /var/www/drupal/web/modules/contrib/tripal \
&& drush en ${tripalmodules} ${modules} -y \
&& service apache2 stop \
&& service postgresql stop
RUN service apache2 start \
&& service postgresql start \
&& if [ "$installchado" = "TRUE" ]; then \
drush trp-install-chado --schema-name=${chadoschema} \
&& drush trp-prep-chado --schema-name=${chadoschema}; \
fi \
&& service apache2 stop \
&& service postgresql stop
RUN service apache2 start \
&& service postgresql start \
&& if [ "$installchado" = "TRUE" ]; then \
drush trp-import-types --collection_id=general_chado --username=drupaladmin; \
fi \
&& service apache2 stop \
&& service postgresql stop