Dockerfile 793 Bytes
Newer Older
Ľuboslav Pivarč's avatar
init  
Ľuboslav Pivarč committed
1
2
3
4
5
FROM registry.gitlab.ics.muni.cz:443/2780/mysql
MAINTAINER Luboslav Pivarc <456130@muni.cz>

COPY files/run_db files/init_db /tmp/
RUN chmod +x /tmp/run_db && chmod +x /tmp/init_db
6

Ľuboslav Pivarč's avatar
init  
Ľuboslav Pivarč committed
7
8

ADD https://raw.githubusercontent.com/cBioPortal/cbioportal/v2.0.0/db-scripts/src/main/resources/cgds.sql /tmp/
9
ADD https://github.com/cBioPortal/datahub/blob/master/seedDB/seed-cbioportal_hg19_v2.7.3.sql.gz?raw=true /tmp/
Ľuboslav Pivarč's avatar
init  
Ľuboslav Pivarč committed
10
11
12
13
14
15
16
17
18
19
20
21
22

# init_db will create the default
# database from epcis_schema.sql, then
# stop mysqld, and finally copy the /var/lib/mysql directory
# to default_mysql_db.tar.gz
RUN /tmp/init_db

# run_db starts mysqld, but first it checks
# to see if the /var/lib/mysql directory is empty, if
# it is it is seeded with default_mysql_db.tar.gz before
# the mysql is fired up

ENTRYPOINT "/tmp/run_db"