From 84ef408e68b0d61bdf5376d596d724e908c78262 Mon Sep 17 00:00:00 2001 From: NVolcz Date: Tue, 28 Apr 2020 21:03:02 +0200 Subject: [PATCH 1/2] Add dockerfile --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2386545 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM ubuntu:latest + +RUN mkdir /app + +ADD . /app + +RUN apt update; apt install -y python3 python3-pip + +RUN cd /app && pip3 install -r test-requirements.txt && python3 setup.py install + +ENTRYPOINT ["VHostScan"] From a523e591608c47e71bdda36f588ca908d0013216 Mon Sep 17 00:00:00 2001 From: NVolcz Date: Tue, 28 Apr 2020 21:07:16 +0200 Subject: [PATCH 2/2] Build docker image in travis --- .travis.yml | 4 +++- Dockerfile | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index fe6c815..0f173fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: python +services: docker python: - 3.4 - 3.5 @@ -6,8 +7,9 @@ python: install: - pip --version - pip install -r test-requirements.txt - - pip install pep8 + - pip install pep8 before_script: - pep8 -v *.py VHostScan/ script: - pytest + - docker build -t VHostScan . diff --git a/Dockerfile b/Dockerfile index 2386545..fa5e260 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ RUN mkdir /app ADD . /app -RUN apt update; apt install -y python3 python3-pip +RUN apt-get update; apt-get install -y python3 python3-pip RUN cd /app && pip3 install -r test-requirements.txt && python3 setup.py install