Skip to content

Commit c56f399

Browse files
committed
update deploy.cfg and Dockerfile
1 parent 8556fd4 commit c56f399

File tree

2 files changed

+30
-11
lines changed

2 files changed

+30
-11
lines changed

Dockerfile

+16-10
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,27 @@ MAINTAINER KBase Developer
66
# install line here, a git checkout to download code, or run any other
77
# installation scripts.
88

9-
# RUN apt-get update
9+
# Update certs
10+
RUN apt-get update
11+
RUN apt-get install ca-certificates
12+
13+
# Fix Python SSL warnings for python < 2.7.9 (system python on Trusty is 2.7.6)
14+
# https://github.com/pypa/pip/issues/4098
15+
RUN pip install pip==8.1.2
16+
RUN pip install --disable-pip-version-check requests requests_toolbelt pyopenssl --upgrade
17+
18+
## update security libraries in the base image (deprecated approach)
19+
#RUN pip install cffi --upgrade \
20+
# && pip install pyopenssl --upgrade \
21+
# && pip install ndg-httpsclient --upgrade \
22+
# && pip install pyasn1 --upgrade \
23+
# && pip install requests --upgrade \
24+
# && pip install 'requests[security]' --upgrade
1025

1126
# Here we install a python coverage tool and an
1227
# https library that is out of date in the base image.
13-
1428
RUN pip install coverage
1529

16-
# update security libraries in the base image
17-
RUN pip install cffi --upgrade \
18-
&& pip install pyopenssl --upgrade \
19-
&& pip install ndg-httpsclient --upgrade \
20-
&& pip install pyasn1 --upgrade \
21-
&& pip install requests --upgrade \
22-
&& pip install 'requests[security]' --upgrade
23-
2430
# -----------------------------------------
2531

2632
COPY ./ /kb/module

deploy.cfg

+14-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,22 @@ kbase-endpoint = {{ kbase_endpoint }}
33
job-service-url = {{ job_service_url }}
44
workspace-url = {{ workspace_url }}
55
shock-url = {{ shock_url }}
6+
{% if handle_url %}
67
handle-service-url = {{ handle_url }}
7-
srv-wiz-url = {{ srv_wiz_url }}
8+
{% else %}
9+
handle-service-url = {{ kbase_endpoint }}/handle_service
10+
{% endif %}
11+
{% if srv_wiz_url %}
12+
service-wizard-url = {{ srv_wiz_url }}
13+
{% else %}
14+
service-wizard-url = {{ kbase_endpoint }}/service_wizard
15+
{% endif %}
816
njsw-url = {{ njsw_url }}
17+
{% if auth_service_url %}
918
auth-service-url = {{ auth_service_url }}
19+
{% endif %}
20+
{% if auth_service_url_allow_insecure %}
1021
auth-service-url-allow-insecure = {{ auth_service_url_allow_insecure }}
22+
{% endif %}
1123
scratch = /kb/module/work/tmp
24+
mac-test-mode = 0

0 commit comments

Comments
 (0)