You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 31, 2021. It is now read-only.
Significantly improved docker builds, and local work.
Building containers for running stuff locally in minikube no longer
requires docker for desktop. Instead the docker builds will use the
minikube docker env (minkube's own docker socket) for builds, which
makes this simpler overall and reduces dependencies on the developer.
Added a docker ignore which ignores everything except for the go.mod and
go.sum file and anything in the pkg directory. Everything else is
excluded; making the build context very small.
Copy file name to clipboardexpand all lines: Makefile.docker
+6
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,14 @@ DOCKER_IMAGE = rest-api
4
4
default-docker:
5
5
$(error Please run a specific target)
6
6
7
+
ifdef CI
7
8
wait-for-docker:
8
9
@for i in 1 2 3 4 5; do (docker info > /dev/null 2>&1) && break || echo "Waiting for docker to start..." && sleep 15; done
10
+
else
11
+
wait-for-docker:
12
+
@eval $$(minikube docker-env) && for i in 1 2 3 4 5; do (docker info > /dev/null 2>&1) && break || echo "Waiting for docker to start..." && sleep 15; done
0 commit comments