Skip to content

Commit

Permalink
Platform agnostics operator binary with static compiling
Browse files Browse the repository at this point in the history
This will allow the operator to be used with spark images that differs from the operator image (alpine).
  • Loading branch information
dharmeshkakadia authored and liyinan926 committed Jul 12, 2018
1 parent 9f92e25 commit 6baac05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ WORKDIR ${GOPATH}/src/k8s.io/spark-on-k8s-operator
COPY Gopkg.toml Gopkg.lock ./
RUN dep ensure -vendor-only
COPY . ./
RUN go generate && go build -o /usr/bin/spark-operator
RUN go generate && CGO_ENABLED=0 GOOS=linux go build -o /usr/bin/spark-operator


FROM gcr.io/ynli-k8s/spark:v2.3.0
Expand Down

0 comments on commit 6baac05

Please sign in to comment.