Fixed paths in Dockerfiles for manager and resourcifier.

pull/2/head
jackgr 9 years ago
parent 6a27f268e6
commit b73278bbbb

@ -13,4 +13,4 @@ RUN pip install -r ./requirements.txt
EXPOSE 8080 EXPOSE 8080
ENTRYPOINT ["./expandybird"] ENTRYPOINT ["./expandybird", "-expansion_binary", "./expansion/expansion.py"]

@ -15,20 +15,39 @@
FROM golang:1.4 FROM golang:1.4
MAINTAINER Jack Greenfield <jackgr@google.com> MAINTAINER Jack Greenfield <jackgr@google.com>
WORKDIR /go/src RUN mkdir -p "$GOPATH/src/github.com" && chmod 777 "$GOPATH/src/github.com"
RUN mkdir -p manager WORKDIR "$GOPATH/src/github.com"
RUN mkdir -p manager && chmod 777 manager
COPY manager manager COPY manager manager
RUN mkdir -p util RUN mkdir -p util && chmod 777 util
COPY util util COPY util util
RUN mkdir -p version RUN mkdir -p version && chmod 777 version
COPY version version COPY version version
RUN go-wrapper download manager/... WORKDIR "$GOPATH"
RUN go-wrapper install manager/...
RUN mkdir -p src/github.com/kubernetes/deployment-manager \
&& chmod 777 src/github.com/kubernetes/deployment-manager
RUN mkdir -p src/github.com/kubernetes/deployment-manager/manager \
&& chmod 777 src/github.com/kubernetes/deployment-manager/manager
COPY manager src/github.com/kubernetes/deployment-manager/manager
RUN mkdir -p src/github.com/kubernetes/deployment-manager/util \
&& chmod 777 src/github.com/kubernetes/deployment-manager/util
COPY util src/github.com/kubernetes/deployment-manager/util
RUN mkdir -p src/github.com/kubernetes/deployment-manager/version \
&& chmod 777 src/github.com/kubernetes/deployment-manager/version
COPY version src/github.com/kubernetes/deployment-manager/version
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 ["go-wrapper", "run"] ENTRYPOINT ["bin/manager"]

@ -32,23 +32,30 @@ RUN wget -O - "$KUBE_DOWLOAD" 2> /dev/null | tar xzf - -C /tmp "$KUBE_COMMAND" \
RUN apt-get purge -y --auto-remove wget RUN apt-get purge -y --auto-remove wget
WORKDIR /go/src WORKDIR "$GOPATH"
RUN mkdir -p expandybird RUN mkdir -p src/github.com/kubernetes/deployment-manager \
COPY expandybird expandybird && chmod 777 src/github.com/kubernetes/deployment-manager
RUN mkdir -p resourcifier RUN mkdir -p src/github.com/kubernetes/deployment-manager/expandybird \
COPY resourcifier resourcifier && chmod 777 src/github.com/kubernetes/deployment-manager/expandybird
COPY expandybird src/github.com/kubernetes/deployment-manager/expandybird
RUN mkdir -p util RUN mkdir -p src/github.com/kubernetes/deployment-manager/resourcifier \
COPY util util && chmod 777 src/github.com/kubernetes/deployment-manager/resourcifier
COPY resourcifier src/github.com/kubernetes/deployment-manager/resourcifier
RUN mkdir -p version RUN mkdir -p src/github.com/kubernetes/deployment-manager/util \
COPY version version && chmod 777 src/github.com/kubernetes/deployment-manager/util
COPY util src/github.com/kubernetes/deployment-manager/util
RUN go-wrapper download resourcifier/... RUN mkdir -p src/github.com/kubernetes/deployment-manager/version \
RUN go-wrapper install resourcifier/... && chmod 777 src/github.com/kubernetes/deployment-manager/version
COPY version src/github.com/kubernetes/deployment-manager/version
RUN go-wrapper download github.com/kubernetes/deployment-manager/resourcifier/...
RUN go-wrapper install github.com/kubernetes/deployment-manager/resourcifier/...
EXPOSE 8080 EXPOSE 8080
ENTRYPOINT ["go-wrapper", "run", "--kubectl=/usr/local/bin/kubectl"] ENTRYPOINT ["bin/resourcifier", "--kubectl=/usr/local/bin/kubectl"]

Loading…
Cancel
Save