monolith

command
v0.0.0-...-8f49d09 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2016 License: MIT Imports: 11 Imported by: 0

README

cd $GOPATH/src/github.com/beacloudgenius/k8s/app/monolith
go get -u
go build --tags netgo --ldflags '-extldflags "-lm -lstdc++ -static"'

docker build -t cloudgenius/monolith-example:1.0.0     .
docker push cloudgenius/monolith-example:1.0.0



docker run -d cloudgenius/monolith-example:1.0.0
docker inspect --format '{{ .NetworkSettings.IPAddress }}' <container name or cid>
curl <the container IP>


CID=$(docker run -d cloudgenius/monolith-example:1.0.0)
CIP=$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' ${CID})
curl $CIP

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL