-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
30 lines (24 loc) · 1.06 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
FROM tomcat:8
WORKDIR /root
# necessary for building
RUN apt-get update && apt-get install -y git openjdk-8-jdk maven
#for running scripts and connecting to mysql in the container
RUN apt-get install -y python3-dev python3-requests python3-jinja2 \
python3-setuptools mysql-client default-libmysqlclient-dev python3-pip && \
pip3 install mysqlclient wget
ENV PORTAL_HOME=/host/cbioportal JDBC_DRIVER=com.mysql.jdbc.Driver \
DB_HOST=cbioportal-mysql DB_USER=root \
DB_PASSWORD=letmein DB_PORT=3306 \
DB_NAME=cbioportal
RUN rm -rf /usr/local/tomcat/webapps/* && \
echo 'JAVA_OPTS="$JAVA_OPTS -Ddbconnector=dbcp"' >> /usr/local/tomcat/bin/setenv.sh && \
chmod +x /usr/local/tomcat/bin/setenv.sh
ARG BRANCH
ARG SEED_SQL_FILE
RUN echo ${BRANCH} && \
wget -O schema.sql \
https://raw.githubusercontent.com/cBioPortal/cbioportal/${BRANCH}/db-scripts/src/main/resources/cgds.sql && \
wget -O seed-db.sql.gz \
https://github.com/cBioPortal/datahub/raw/master/seedDB/${SEED_SQL_FILE}
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT /entrypoint.sh