Skip to content

Instantly share code, notes, and snippets.

@oleewere
Created August 10, 2022 20:59
Show Gist options
  • Save oleewere/b60a5469b0429bf8e0fad34627596d64 to your computer and use it in GitHub Desktop.
Save oleewere/b60a5469b0429bf8e0fad34627596d64 to your computer and use it in GitHub Desktop.
docker deployer build
docker-build:
docker build -t oleewere/cbd:latest .
docker run --rm --entrypoint cp -v $$(pwd):/src oleewere/cbd:latest build/Darwin/cbd /src/cbd
Dockerfile:
FROM golang:1.12
ADD . /go/src/github.com/hortonworks/cloudbreak-deployer
WORKDIR /go/src/github.com/hortonworks/cloudbreak-deployer
ENV GO111MODULE=off
RUN go get -u github.com/jteeuwen/go-bindata/...
RUN make deps
RUN make build
#RUN cp build/Darwin/cbd /src/build/cbd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment