Open aknot242 opened 2 years ago
brew install podman
podman machine init
podman machine start
sudo mkdir /usr/local/bin
sudo ln -s /opt/homebrew/bin/podman /usr/local/bin/docker
This get you further but still results in an error:
time="2022-08-11T11:36:27-05:00" level=warning msg="SHELL is not supported for OCI image format, [/bin/bash -o pipefail -c] will be ignored. Must use `docker` format"
--> f36d5bdd179
[8/14] STEP 6/6: COPY --link --chown=101:0 LICENSE /licenses/
[7/14] STEP 1/4: FROM c56f65de680b0be71b86217b4ec069d1ec755714a5bc82e1d809d15f53c36513 AS debian-plus-nap
[7/14] STEP 2/4: ARG NGINX_PLUS_VERSION
Error: server probably quit: unexpected EOF
make: *** [debian-image-nap-dos-plus] Error 125
Added the podman helper:
sudo /opt/homebrew/Cellar/podman/4.2.0/bin/podman-mac-helper install
podman machine stop; podman machine start
Dan also recommended changing the make file to resolve this error:
make debian-image-nap-dos-plus PREFIX=ghcr.io/$GITHUB_USER/nginx-plus-ingress TARGET=container DOCKER_BUILD_OPTIONS="--platform linux/amd64 --format docker"
Which made it further but resulted in the following error:
--> 0ec75b54b2d
[8/14] STEP 6/6: COPY --link --chown=101:0 LICENSE /licenses/
[7/14] STEP 1/4: FROM ad6ba6d8b24278ffecf0977e9ad1b33fbc6c8cb92877af4057b403a6d5620f9b AS debian-plus-nap
[7/14] STEP 2/4: ARG NGINX_PLUS_VERSION
Error: server probably quit: unexpected EOF
make: *** [debian-image-nap-dos-plus] Error 125
The right approach (to avoid hacks) is that the ingress controller's build scripts need to support Podman natively. This has been requested in this issue however, this may not happen anytime soon. May revisit when that occurs, but will mark as wontfix for now.
...using the k3s VM. Preference would be doing this on their laptop.