Update dependencies (#163)

* update dependencies

* fix kubeconfig loader

* use pipenv

* add missing pipenv shell

* tox-pipenv

* pipenv on Travis

* add cache files to gitignore
This commit is contained in:
Henning Jacobs
2018-05-01 14:46:37 +02:00
committed by GitHub
parent 74bf801bc3
commit 07df4e81c3
13 changed files with 7673 additions and 1325 deletions

View File

@@ -1,4 +1,4 @@
FROM alpine:3.6
FROM alpine:3.7
MAINTAINER Henning Jacobs <henning@jacobs1.de>
EXPOSE 8080
@@ -6,19 +6,21 @@ EXPOSE 8080
RUN apk add --no-cache python3 python3-dev gcc musl-dev zlib-dev libffi-dev openssl-dev ca-certificates && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools gevent && \
pip3 install --upgrade pipenv gevent && \
apk del python3-dev gcc musl-dev zlib-dev libffi-dev openssl-dev && \
rm -rf /var/cache/apk/* /root/.cache /tmp/*
COPY scm-source.json /
COPY requirements.txt /
RUN pip3 install -r /requirements.txt
COPY Pipfile /
COPY Pipfile.lock /
WORKDIR /
RUN pipenv install --system --deploy --ignore-pipfile
COPY kube_ops_view /kube_ops_view
ARG VERSION=dev
RUN sed -i "s/__version__ = .*/__version__ = '${VERSION}'/" /kube_ops_view/__init__.py
WORKDIR /
ENTRYPOINT ["/usr/bin/python3", "-m", "kube_ops_view"]