From 22334c67ad2328995e03635ccfdb3ff8dc131fbb Mon Sep 17 00:00:00 2001 From: Weston Steimel Date: Thu, 7 Mar 2019 17:57:09 +0000 Subject: [PATCH] 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 --- .travis.yml | 4 ++-- Dockerfile | 2 +- README.md | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6d9f699..1499316 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 8bbc3fc..e0f3ccb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:2.7.15-alpine3.8 +FROM python:3.7.2-alpine3.9 RUN apk add --update \ linux-headers \ diff --git a/README.md b/README.md index b5b5c40..73f93df 100644 --- a/README.md +++ b/README.md @@ -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`