Public | Automated Build

Last pushed: a year 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 run.sh inside this directory with docker run script:
    docker run -i -t -v $(pwd):/src i1skn/godev
    
  • Run chmod +x ~/.gld/run.sh
  • Add to your bash profile(like .zshrc etc) file following:
    alias gld="~/.gld/run.sh"
    
  • Run source <your_bash_profile_file>
  • Type gld in directory you want to work in
Docker Pull Command
Owner
i1skn
Source Repository