Skip to content

Commit

Permalink
Add Makefile for local builds/tests and update gcloud image
Browse files Browse the repository at this point in the history
  • Loading branch information
marcwickenden committed Mar 2, 2021
1 parent 5c0c320 commit 957c98d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
EXECUTABLE := "kubeletmein"

build: clean test
go build -ldflags "-extldflags '-static'" -o ${EXECUTABLE} ./cmd/kubeletmein

clean:
@rm -f ${EXECUTABLE}

test:
go test -v ./pkg/bootstrap
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ WORKDIR /out
RUN curl -sL https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl -o usr/local/bin/kubectl && \
chmod +x usr/local/bin/kubectl

FROM google/cloud-sdk:239.0.0-alpine
FROM gcr.io/google.com/cloudsdktool/cloud-sdk:330.0.0-alpine
LABEL maintainer="Marc Wickenden <marc@4armed.com>"

RUN apk add --no-cache \
Expand Down

0 comments on commit 957c98d

Please sign in to comment.