-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make build-in-docker
fails with unknown error 526
#9
Comments
https://minikube.sigs.k8s.io/docs/tasks/mount/ says that the mount created with I've been able to work around this a little: I've run diff --git a/Makefile b/Makefile
index fc0994b..0b4455c 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,8 @@ BUILD_TAG ?= dev
BUILDPACK_ORDER := multi ruby nodejs clojure python java gradle scala play php go static
SHELL := /bin/bash
+MINIKUBE_MOUNT_PATH ?= $PWD
+
shellcheck:
ifneq ($(shell shellcheck --version > /dev/null 2>&1 ; echo $$?),0)
ifeq ($(SYSTEM),Darwin)
@@ -38,7 +40,7 @@ build-in-docker:
docker build --rm -f Dockerfile.build -t $(NAME)-build .
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:ro \
-v /var/lib/docker:/var/lib/docker \
- -v ${PWD}:/src/github.com/gliderlabs/herokuish -w /src/github.com/gliderlabs/herokuish \
+ -v ${MINIKUBE_MOUNT_PATH}:/src/github.com/gliderlabs/herokuish:rw -w /src/github.com/gliderlabs/herokuish \
-e IMAGE_NAME=$(IMAGE_NAME) -e BUILD_TAG=$(BUILD_TAG) -e VERSION=master \
$(NAME)-build make -e deps build
docker rmi $(NAME)-build || true I've created mlandauer/herokuish/pull/2 which has this patch; however, applying it would move us further from upstream. |
I think I can see two alternatives here:
The only real cross-platform solution I can think of right now would be to apply a handwave - push docker images for |
@mlandauer I'm interested in your thoughts on this. I feel like the patched-herokuish image is probably better off out-of-scope of the instructions for this repo anyway - ideally we'd be using the stock upstream images (which would mean that we never have to do anything to build them). |
Yup it is looking like a simple cross-platform build of herokuish isn't going to be straightforward based on what you've discovered. And yes ideally we shouldn't need to build it anyway as our patch will hopefully get merged upstream. What worries me, though, is the PR has been open a bit and I don't see any sign that it's getting merged. |
I feel like it's probably less work to have an OA fork of herokuish (with automated builds on dockerhub) than it would be to work on a cross-platform build |
Worked around this by pushing a pre-built patched herokuish image to docker hub at https://hub.docker.com/r/mlandauer/herokuish and updated morph-ng to use that instead. |
The text was updated successfully, but these errors were encountered: