Skip to content

Commit

Permalink
Fix dockfile to new repository location. (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
medinatiger authored and k8s-ci-robot committed Apr 17, 2018
1 parent a591e9a commit 3799ce2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cloud/google/cmd/gce-machine-controller/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

# Reproducible builder image
FROM golang:1.10.0 as builder
WORKDIR /go/src/k8s.io/kube-deploy/cluster-api
WORKDIR /go/src/sigs.k8s.io/cluster-api
# This expects that the context passed to the docker build command is
# the cluster-api directory.
# e.g. docker build -t <tag> -f <this_Dockerfile> <path_to_cluster-api>
COPY . .

RUN CGO_ENABLED=0 GOOS=linux go install -a -ldflags '-extldflags "-static"' k8s.io/kube-deploy/cluster-api/cloud/google/cmd/gce-machine-controller
RUN CGO_ENABLED=0 GOOS=linux go install -a -ldflags '-extldflags "-static"' sigs.k8s.io/cluster-api/cloud/google/cmd/gce-machine-controller

# Final container
FROM alpine:3.7
Expand Down
4 changes: 2 additions & 2 deletions cmd/apiserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

# Reproducible builder image
FROM golang:1.10.0 as builder
WORKDIR /go/src/k8s.io/kube-deploy/cluster-api
WORKDIR /go/src/sigs.k8s.io/cluster-api
# This expects that the context passed to the docker build command is
# the cluster-api directory.
# e.g. docker build -t <tag> -f <this_Dockerfile> <path_to_cluster-api>
COPY . .

RUN CGO_ENABLED=0 GOOS=linux go install -a -ldflags '-extldflags "-static"' k8s.io/kube-deploy/cluster-api/cmd/apiserver
RUN CGO_ENABLED=0 GOOS=linux go install -a -ldflags '-extldflags "-static"' sigs.k8s.io/cluster-api/cmd/apiserver

# Final container
FROM alpine:3.7
Expand Down
4 changes: 2 additions & 2 deletions cmd/controller-manager/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

# Reproducible builder image
FROM golang:1.10.0 as builder
WORKDIR /go/src/k8s.io/kube-deploy/cluster-api
WORKDIR /go/src/sigs.k8s.io/cluster-api
# This expects that the context passed to the docker build command is
# the cluster-api directory.
# e.g. docker build -t <tag> -f <this_Dockerfile> <path_to_cluster-api>
COPY . .

RUN CGO_ENABLED=0 GOOS=linux go install -a -ldflags '-extldflags "-static"' k8s.io/kube-deploy/cluster-api/cmd/controller-manager
RUN CGO_ENABLED=0 GOOS=linux go install -a -ldflags '-extldflags "-static"' sigs.k8s.io/cluster-api/cmd/controller-manager

# Final container
FROM alpine:3.7
Expand Down

0 comments on commit 3799ce2

Please sign in to comment.