1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Merge pull request #696 from Boot-Error/feature-docker

Run wtf inside docker container
This commit is contained in:
Chris Cummer 2019-10-15 12:21:53 -07:00 committed by GitHub
commit 8008e108e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 3 deletions

View File

@ -1,3 +1,17 @@
FROM scratch
COPY wtfutil /
ENTRYPOINT ["/wtfutil"]
FROM golang:1.13-alpine
RUN apk add --no-cache make ncurses
COPY . $GOPATH/src/github.com/wtfutil/wtf
ENV GOPROXY=https://gocenter.io
ENV GO111MODULE=on
ENV GOSUMDB=off
WORKDIR $GOPATH/src/github.com/wtfutil/wtf
ENV PATH=$PATH:./bin
RUN make build
ENTRYPOINT "wtfutil"

View File

@ -129,6 +129,21 @@ make run
**Note:** WTF is _only_ compatible with Go versions **1.12.0** or later (due to the use of Go modules and newer standard library functions). If you would like to use `gccgo` to compile, you _must_ use `gccgo-9` or later which introduces support for Go modules.
## Install and run in Docker
You can run `wtf` inside a docker container
```bash
# download the source
git clone https://github.com/wtfutil/wtf
# build the docker container
docker build -t wtfutil .
# run the container
docker run -it wtfutil
```
## Communication
### Slack