Skip to content

Commit

Permalink
add fast image build for development
Browse files Browse the repository at this point in the history
  • Loading branch information
sjenning committed Aug 4, 2021
1 parent 3f1929c commit 9ee69e9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 25 deletions.
24 changes: 0 additions & 24 deletions .dockerignore

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ tools/bin

.kube
/kubeconfig
.dockerignore
3 changes: 3 additions & 0 deletions Dockerfile.fast
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM quay.io/openshift/origin-base:4.7
COPY bin/* /usr/bin/
ENTRYPOINT /usr/bin/hypershift
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,16 @@ deps:
$(GO) mod vendor
$(GO) mod verify

# Build the docker image
# Build the docker image with official golang image
.PHONY: docker-build
docker-build:
${RUNTIME} build . -t ${IMG}

# Build the docker image copying binaries from workspace
.PHONY: docker-build-fast
docker-build-fast: build
${RUNTIME} build . -t ${IMG} -f Dockerfile.fast

# Push the docker image
.PHONY: docker-push
docker-push:
Expand Down

0 comments on commit 9ee69e9

Please sign in to comment.