Public | Automated Build

Last pushed: 2 years ago
Short Description
Go lang Docker env
Full Description

Golang development using Docker

This docker image is useful for developing using golang.

Why you want to use this?

  • Finally Docker released versions for Mac and Windows, which implements "native" approach
  • Host machine is not polluted with go stuff

Run dev environment

docker run -i -t -v $(pwd):/src i1skn/godev

After container created you will be automatically moved to /src if it exist.

Bash alias

For convenience you can create bash alias to run long docker run command

  • Create directory ~/.gld(could be any name)
  • Put the file inside this directory with docker run script:
    docker run -i -t -v $(pwd):/src i1skn/godev
  • Run chmod +x ~/.gld/
  • Add to your bash profile(like .zshrc etc) file following:
    alias gld="~/.gld/"
  • Run source <your_bash_profile_file>
  • Type gld in directory you want to work in
Docker Pull Command
Source Repository