Skip to content

Commit 35b0730

Browse files
authored
Merge pull request #36 from meiremans/patch-1
Create Dockerfile
2 parents 916667a + d438a74 commit 35b0730

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Pull base image.
2+
FROM ubuntu:16.04
3+
# Install.
4+
RUN \
5+
apt-get update && \
6+
apt-get -y upgrade && \
7+
apt-get install -y curl
8+
9+
# Add files.
10+
WORKDIR /home
11+
COPY . .
12+
13+
# Define default command.
14+
ENTRYPOINT ["sh", "-c","/home/curl-runnings -f /home/tests.yml"]

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,24 @@ For more info:
102102

103103
```curl-runnings --help ```
104104

105+
106+
### Running With Docker
107+
The dockerfile is included in the root of the project. The Dockerfile will expect a curl-runnings executable in the same directory as the Dockerfile and a tests.yml file. You can download the latest executable from the release page : https://github.com/aviaviavi/curl-runnings/releases .
108+
109+
``` docker build . -t curl-runnings-tests```
110+
111+
``` docker run curl-runnings-tests```
112+
113+
In case u use docker-compose, you can add this to docker-compose.yml:
114+
115+
```
116+
tests:
117+
build:
118+
context: .
119+
dockerfile: ./Dockerfile
120+
```
121+
122+
105123
### Contributing
106124

107125
Contributions in any form are welcome and encouraged. Don't be shy! :D

0 commit comments

Comments
 (0)