-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (27 loc) · 1.49 KB
/
Dockerfile
File metadata and controls
31 lines (27 loc) · 1.49 KB
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
# Dockerfile that builds a minimal container for IPython + narrative
#
# Copyright 2013 The Regents of the University of California,
# Lawrence Berkeley National Laboratory
# United States Department of Energy
# The DOE Systems Biology Knowledgebase (KBase)
# Made available under the KBase Open Source License
#
# The base image "kbase/deplbase" to this Dockerfile has ONBUILD instructions that
# are executed when this image "kbase/depl" is build. This is why this
# Dockerfile seems to be empty.
FROM kbase/deplbase:latest
MAINTAINER Shane Canon scanon@lbl.gov
# Temporary hotfixes
#
# This is now in deploy_tools but we will leave it in a bit until things have propogated
#
RUN cat ssl/proxy.crt >> /etc/ssl/certs/ca-certificates.crt && \
cat ssl/proxy.crt > /etc/ssl/certs/`openssl x509 -noout -hash -in ssl/proxy.crt`.0 && \
cat ssl/proxy.crt >> /usr/local/lib/python2.7/dist-packages/requests/cacert.pem && \
cat ssl/narrative.crt >> /etc/ssl/certs/ca-certificates.crt && \
cat ssl/narrative.crt > /etc/ssl/certs/`openssl x509 -noout -hash -in ssl/narrative.crt`.0 && \
PUBLIC=$(grep baseurl= cluster.ini|sed 's/.*=//'|sed 's/:.*//') && \
sed -i "s|api-url=$|api-url=http://$PUBLIC:8080/services/shock-api|" /kb/deployment//services/shock_service/conf/shock.cfg && \
cpanm -i Time::ParseDate
# Fix start script if it exist
RUN [ -e /kb/deployment//services/fbaModelServices/start_service ] && sed -i 's/starman -D/starman/' /kb/deployment//services/fbaModelServices/start_service