docker files
This commit is contained in:
parent
6c0b9453f9
commit
c0a2832468
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
venv*
|
venv*
|
||||||
|
**__pycache__**
|
||||||
|
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
FROM python:3.6-slim
|
||||||
|
COPY . /python-test-calculator
|
||||||
|
WORKDIR /python-test-calculator
|
||||||
|
RUN pip3 install --no-cache-dir -r requirements.txt
|
||||||
|
RUN ["pytest", "-v", "--junitxml=reports/result.xml"]
|
||||||
|
CMD tail -f /dev/nul
|
16
JenkinsDockerfile
Normal file
16
JenkinsDockerfile
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
FROM jenkins/jenkins:lts
|
||||||
|
USER root
|
||||||
|
RUN apt-get update -qq \
|
||||||
|
&& apt-get install -qqy apt-transport-https ca-certificates \
|
||||||
|
curl gnupg2 software-properties-common
|
||||||
|
|
||||||
|
RUN curl -fsSL https://download.docker.com/linux/debian/gpg \
|
||||||
|
| apt-key add -
|
||||||
|
|
||||||
|
RUN add-apt-repository \
|
||||||
|
"deb [arch=amd64] https://download.docker.com/linux/debian \
|
||||||
|
$(lsb_release -cs) \
|
||||||
|
stable"
|
||||||
|
|
||||||
|
RUN apt-get update -qq \
|
||||||
|
&& apt-get install docker-ce -y
|
Binary file not shown.
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
pytest
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user