Dockerfile 898 Bytes
Newer Older
Ľuboslav Pivarč's avatar
init  
Ľuboslav Pivarč committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM registry.gitlab.ics.muni.cz:443/2780/mysql
MAINTAINER Luboslav Pivarc <456130@muni.cz>

# Copy the database schema to the /data directory
COPY files/run_db files/init_db /tmp/
RUN chmod +x /tmp/run_db && chmod +x /tmp/init_db
#ADD http://dior.ics.muni.cz/~cuda/seed-cbioportal_hg19_v2.4.0.sql /tmp/
#ADD http://dior.ics.muni.cz/~cuda/cgds.sql /tmp/

ADD https://raw.githubusercontent.com/cBioPortal/cbioportal/v2.0.0/db-scripts/src/main/resources/cgds.sql /tmp/
ADD ./seed-cbioportal_hg19_v2.7.3.sql /tmp/

# 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"