https://github.com/markbates/gocker
https://github.com/markbates/gocker
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/markbates/gocker
- Owner: markbates
- License: mit
- Created: 2018-11-04T20:30:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-25T16:42:51.000Z (over 6 years ago)
- Last Synced: 2025-07-08T22:03:33.885Z (3 days ago)
- Language: Go
- Homepage:
- Size: 87.9 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gocker
Let's you quickly run any `go *` command inside of a Docker container.
```bash
$ gocker -go-version 1.9 -go-mods off test -v ./...
```Generates and runs a Dockerfile similar to:
```Dockerfile
FROM golang:1.9ENV GO111MODULE=off
WORKDIR $GOPATH/src/github.com/markbates/gocker
COPY . .
RUN go get -v
RUN go test -v ./...
```## Usage
```bash
$ gocker -h-dry-run
dry run
-go-mods string
turn on/off Go Modules (default "on")
-go-version string
go version to run (default "latest")
-path string
path to use in Docker for WORKDIR
-with-dep
with dep management
```