centos docker搭建golang开发环境
mkdir gobuildcd gobuilddocker pull golang:1.10vi Dockerfile# base imageFROM golang:1.10# MAINTAINERMAINTAINER abc@abc.comdocker build -t 192.168.1.123:1050/golang_study:1.0 .docker run -it -v...
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
...
更多推荐
所有评论(0)