Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Carmier <marc.carmier@corp.ovh.com>
  • Loading branch information
marema31 committed Nov 10, 2020
1 parent de77d5a commit 167da3d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM golang:1.15-buster as build

RUN apt-get update && \
apt-get install -y unixodbc unixodbc-dev

WORKDIR /go/src/venom
COPY . .
RUN go build -a -installsuffix cgo -ldflags "-X github.com/ovh/venom.Version=$(git describe)" -o /go/bin ./...
RUN chmod a+rx /go/bin/venom

FROM debian:buster-slim

RUN apt-get update && \
apt-get install -y unixodbc && \
rm -rf /var/lib/apt/lists/*

COPY --from=build /go/bin/venom /opt/venom

ENTRYPOINT ["/opt/venom"]
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ Flags:
--var-from-file strings --var-from-file filename.yaml --var-from-file filename2.yaml : hcl|json|yaml, must contains map[string]string'
```

## Docker image

A docker image is available.
```bash
docker run -it --rm -v $(pwd):/tests run /tests/testsuite.yaml
```
## Executors

* **dbfixtures**: https://github.com/ovh/venom/tree/master/executors/dbfixtures
Expand Down

0 comments on commit 167da3d

Please sign in to comment.