Merge pull request #204 from jackgr/master

Fixed Dockerfile bugs.
pull/208/head
vaikas-google 9 years ago
commit bd10aa21e8

@ -26,26 +26,16 @@ ENV KUBE_VERSION v1.0.5
RUN curl -fsSL -o kubectl https://storage.googleapis.com/kubernetes-release/release/$KUBE_VERSION/bin/linux/amd64/kubectl \
&& chmod +x kubectl
RUN mkdir -p "$GOPATH/src/github.com" && chmod 777 "$GOPATH/src/github.com"
COPY . "$GOPATH"/src
WORKDIR "$GOPATH/src/github.com"
WORKDIR "$GOPATH"/src/manager
RUN mkdir -p manager && chmod 777 manager
COPY manager manager
RUN go-wrapper download
RUN go-wrapper install
RUN mkdir -p util && chmod 777 util
COPY util util
RUN mkdir -p version && chmod 777 version
COPY version version
WORKDIR "$GOPATH"
RUN mkdir -p "$GOPATH/src/github.com" && chmod 777 "$GOPATH/src/github.com"
RUN go-wrapper download github.com/kubernetes/deployment-manager/manager/...
RUN go-wrapper install github.com/kubernetes/deployment-manager/manager/...
RUN cp "$GOPATH"/bin/manager /usr/local/bin
RUN /bin/rm -rf "$GOPATH"
EXPOSE 8080
ENTRYPOINT ["bin/manager", "--kubectl=/usr/local/bin/kubectl"]
ENTRYPOINT ["/usr/local/bin/manager", "--kubectl=/usr/local/bin/kubectl"]

@ -25,13 +25,16 @@ ENV KUBE_VERSION v1.0.5
RUN curl -fsSL -o kubectl https://storage.googleapis.com/kubernetes-release/release/$KUBE_VERSION/bin/linux/amd64/kubectl \
&& chmod +x kubectl
COPY . "$GOPATH"/src/resourcifier
COPY . "$GOPATH"/src
WORKDIR "$GOPATH"/src/resourcifier
RUN go-wrapper download
RUN go-wrapper install
RUN cp "$GOPATH"/bin/resourcifier /usr/local/bin
RUN /bin/rm -rf "$GOPATH"
EXPOSE 8080
ENTRYPOINT ["/go/bin/resourcifier", "--kubectl=/usr/local/bin/kubectl"]
ENTRYPOINT ["/usr/local/bin/resourcifier", "--kubectl=/usr/local/bin/kubectl"]

Loading…
Cancel
Save