File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040# This illustrates a two-stage Docker build. docker-compile runs inside of
4141# the Docker environment. Other alternatives are cross-compiling, doing
4242# the build as a `docker build`.
43- build :
44- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 godep go build -a -installsuffix cgo -ldflags ' -s' -o $(BINARY_DEST_DIR ) /builder cli/builder.go || exit 1
45- mkdir -p ${BINDIR} /bin
46- docker run --rm -v ${PWD} :/app -w /app golang:1.5.1 make docker-compile
43+ #
44+ # Aaron(2015-11-17) doesn't work, commented out. use 'make docker-build-bpb' instead
45+ #
46+ # build:
47+ # GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags '-s' -o $(BINARY_DEST_DIR)/builder boot.go || exit 1
48+ # mkdir -p ${BINDIR}/bin
49+ # docker run --rm -v ${PWD}:/app -w /app golang:1.5.1 make docker-compile
4750
4851docker-build-bpb :
4952 cp -r bpbuilder/etcd pkg/
You can’t perform that action at this time.
0 commit comments