Commit 8ccfe3d5 authored by jackgr's avatar jackgr

Fixed Dockerfile bugs.

parent 397bc6e9
...@@ -26,26 +26,16 @@ ENV KUBE_VERSION v1.0.5 ...@@ -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 \ RUN curl -fsSL -o kubectl https://storage.googleapis.com/kubernetes-release/release/$KUBE_VERSION/bin/linux/amd64/kubectl \
&& chmod +x 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 RUN go-wrapper download
COPY manager manager RUN go-wrapper install
RUN mkdir -p util && chmod 777 util RUN cp "$GOPATH"/bin/manager /usr/local/bin
COPY util util RUN /bin/rm -rf "$GOPATH"
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/...
EXPOSE 8080 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 ...@@ -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 \ RUN curl -fsSL -o kubectl https://storage.googleapis.com/kubernetes-release/release/$KUBE_VERSION/bin/linux/amd64/kubectl \
&& chmod +x kubectl && chmod +x kubectl
COPY . "$GOPATH"/src/resourcifier COPY . "$GOPATH"/src
WORKDIR "$GOPATH"/src/resourcifier WORKDIR "$GOPATH"/src/resourcifier
RUN go-wrapper download RUN go-wrapper download
RUN go-wrapper install RUN go-wrapper install
RUN cp "$GOPATH"/bin/resourcifier /usr/local/bin
RUN /bin/rm -rf "$GOPATH"
EXPOSE 8080 EXPOSE 8080
ENTRYPOINT ["/go/bin/resourcifier", "--kubectl=/usr/local/bin/kubectl"] ENTRYPOINT ["/usr/local/bin/resourcifier", "--kubectl=/usr/local/bin/kubectl"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment