Skip to content

Commit

Permalink
fix docker image build
Browse files Browse the repository at this point in the history
  • Loading branch information
dekhtyarev committed Dec 5, 2018
1 parent ac8ad58 commit 1f572d4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
26 changes: 19 additions & 7 deletions .travis.yml
@@ -1,8 +1,20 @@
sudo: false
language: python
python:
- "3.6"
install: pip install tox-travis codecov
script: tox
after_success:
- codecov

jobs:
include:
- stage: test
name: "Unit tests"
language: python
python:
- "3.6"
install: pip install tox-travis codecov
script: tox
after_success:
- codecov
- stage: test
name: "Docker image build test"
services:
- docker
env:
- TAG="temp"
script: docker-compose build
3 changes: 2 additions & 1 deletion Dockerfile
Expand Up @@ -6,8 +6,9 @@ LABEL description="Image with k8s-handle" \

ADD . /opt/k8s-handle/

RUN apk --no-cache add git ca-certificates bash openssl make \
RUN apk --no-cache add git ca-certificates bash openssl gcc libc-dev libffi-dev openssl-dev make \
&& pip install -r /opt/k8s-handle/requirements.txt \
&& apk del gcc libc-dev libffi-dev openssl-dev \
&& chmod +x /opt/k8s-handle/k8s-handle.py \
&& ln -s /opt/k8s-handle/k8s-handle.py /opt/k8s-handle/k8s-handle

Expand Down

0 comments on commit 1f572d4

Please sign in to comment.