mkdir gobuild
cd gobuild
docker pull golang:1.10
vi Dockerfile
# base image
FROM golang:1.10
# MAINTAINER
MAINTAINER abc@abc.com
docker build -t 192.168.1.123:1050/golang_study:1.0 .
docker run -it -v /home/gobuild/src:/go/src 192.168.1.123:1050/golang_study:1.0 /bin/bash
---
mkdir -p $GOPATH/src/golang.org/x
cd $GOPATH/src/golang.org/x
git clone https://github.com/golang/image.git
go get -v github.com/fogleman/ln/ln
go get -u github.com/tidwall/pinhole
---
https://github.com/fogleman/ln/ln
https://github.com/tidwall/pinhole
go get -u github.com/tidwall/pinhole
...

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐