This repository has been archived by the owner on Oct 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update dependencies * fix Travis build (NPM cache path)
- Loading branch information
Showing
9 changed files
with
2,368 additions
and
2,213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
dist: xenial | ||
sudo: yes | ||
language: python | ||
python: | ||
- "3.6" | ||
- "3.7" | ||
services: | ||
- docker | ||
install: | ||
- pip install tox tox-travis coveralls | ||
- pip install pipenv | ||
- pipenv install --dev | ||
- nvm install 7.4 | ||
- npm install -g eslint | ||
script: | ||
- tox | ||
- make test docker | ||
after_success: | ||
- coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
FROM alpine:3.7 | ||
MAINTAINER Henning Jacobs <[email protected]> | ||
FROM python:3.7-alpine3.8 | ||
|
||
EXPOSE 8080 | ||
WORKDIR / | ||
|
||
RUN apk add --no-cache python3 python3-dev gcc musl-dev zlib-dev libffi-dev openssl-dev ca-certificates | ||
|
||
COPY Pipfile.lock / | ||
COPY pipenv-install.py / | ||
|
||
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 pipenv gevent && \ | ||
RUN /pipenv-install.py && \ | ||
rm -fr /usr/local/lib/python3.7/site-packages/pip && \ | ||
rm -fr /usr/local/lib/python3.7/site-packages/setuptools && \ | ||
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 Pipfile / | ||
COPY Pipfile.lock / | ||
FROM python:3.7-alpine3.8 | ||
|
||
WORKDIR / | ||
RUN pipenv install --system --deploy --ignore-pipfile | ||
|
||
COPY --from=0 /usr/local/lib/python3.7/site-packages /usr/local/lib/python3.7/site-packages | ||
|
||
COPY kube_ops_view /kube_ops_view | ||
|
||
ARG VERSION=dev | ||
RUN sed -i "s/__version__ = .*/__version__ = '${VERSION}'/" /kube_ops_view/__init__.py | ||
|
||
ENTRYPOINT ["/usr/bin/python3", "-m", "kube_ops_view"] | ||
ENTRYPOINT ["/usr/local/bin/python", "-m", "kube_ops_view"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.