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:
commit
8008e108e6
20
Dockerfile
20
Dockerfile
@ -1,3 +1,17 @@
|
|||||||
FROM scratch
|
FROM golang:1.13-alpine
|
||||||
COPY wtfutil /
|
|
||||||
ENTRYPOINT ["/wtfutil"]
|
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"
|
||||||
|
15
README.md
15
README.md
@ -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.
|
**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
|
## Communication
|
||||||
|
|
||||||
### Slack
|
### Slack
|
||||||
|
Loading…
x
Reference in New Issue
Block a user