How to use:
1. pull & run
docker run -d --name <containerInstanceName> --restart=always \
-v $PATH_PKG:/go/pkg \
-v $PATH_SRC:/go/src \
socloudng/gobuilder
wait it init & watch the logs
docker logs <containerInstanceName>
when init over, it will print like this:
======================start at <date>======================
2.use build.sh script
docker exec <containerInstanceName> sh build.sh <sourcePathInContainer> <distProgramFileName>
Usage:
1. start the container if no instance is running and init it
docker run -d --name gobuild --restart=always \
-v /golang/packages:/go/pkg \
-v /golang/source:/go/src \
socloudng/gobuilder
docker logs gobuild
2. clone the soursecode to the folder /golang/source
cd /golang/source
git clone https://gitee.com/go-admin/go-admin.git
3. build the project go-admin
docker exec gobuild sh build.sh go-admin myAppName
4. the dist application is /golang/source/myAppName
Content type
Image
Digest
sha256:9e008cc4d…
Size
343.9 MB
Last updated
over 3 years ago
docker pull socloudng/gobuilder