update dockerfile and travis

* Update docker image to python 3.7.2 and alpine3.9
* Update travis to test python3.7
* Remove part about using python2 in python3-based environment from
README

Signed-off-by: Weston Steimel <weston.steimel@gmail.com>
This commit is contained in:
Weston Steimel
2019-03-07 17:57:09 +00:00
parent f2b3573bee
commit 22334c67ad
3 changed files with 4 additions and 5 deletions

View File

@@ -7,8 +7,8 @@ matrix:
#- python: 3.4
#- python: 3.5
- python: 3.6
#- python: 3.7
# dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
- python: 3.7
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
# sudo: required # required for Python 3.7 (travis-ci/travis-ci#9069)
install:
- pip install -r requirements.txt

View File

@@ -1,4 +1,4 @@
FROM python:2.7.15-alpine3.8
FROM python:3.7.2-alpine3.9
RUN apk add --update \
linux-headers \

View File

@@ -86,9 +86,8 @@ Install module dependencies:
~~~
cd ./kube-hunter
pip install -r requirements.txt
In the case where you have python 3.x in the path as your default, and python2 refers to a python 2.7 executable, use "python2 -m pip install -r requirements.txt"
~~~
Run:
`./kube-hunter.py`