Last active
July 3, 2019 09:57
-
-
Save mauricioprado00/8ac58efebd6b7e94d043438cd9a1dbc6 to your computer and use it in GitHub Desktop.
Dockerized go command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# usage go [params] | |
docker run -it --rm --name my-running-app -v $(pwd)/:/go/src -w /go/src/ golang:1.8 go $@ | |
# save it with: | |
# curl https://gist.githubusercontent.com/mauricioprado00/8ac58efebd6b7e94d043438cd9a1dbc6/raw/docker-go > /usr/local/bin/go | |
# chmod +x /usr/local/bin/go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment