I’m trying to get a devstack set up as part of onboarding, but running into some issues. I’ve been using podman instead of docker for quite a while now, and was happy to see there are official docs for using tutor with podman.
However, I suspect they’re outdated, as I’ve hit some issues. Is anyone here using tutor with podman?
My notes for debugging:
Tutor images build fails with some invalid registry cache value(?):
$ tutor images build openedx-dev
⚠️ Failed to enable plugin 'indigo': plugin 'indigo' is not installed.
⚠️ Failed to enable plugin 'mfe': plugin 'mfe' is not installed.
Adding /home/samuel/devstacks/tutor-pypy/edx-platform to the build context 'edx-platform' of image 'openedx-dev'
Building image openedx-dev:20.0.0
docker buildx build --tag=openedx-dev:20.0.0 --output=type=docker --target=development --build-arg=APP_USER_ID=1000 --cache-from=type=registry,ref=openedx-dev:20.0.0-cache --build-context=edx-platform=/home/samuel/devstacks/tutor-pypy/edx-platform /home/samuel/.local/share/tutor/env/build/openedx
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Error: unable to parse value provided `[]` to --cache-from: invalid repo "type=registry,ref=openedx-dev:20.0.0-cache": must contain registry and repository: invalid reference format
Error: Command failed with status 125: docker buildx build --tag=openedx-dev:20.0.0 --output=type=docker --target=development --build-arg=APP_USER_ID=1000 --cache-from=type=registry,ref=openedx-dev:20.0.0-cache --build-context=edx-platform=/home/samuel/devstacks/tutor-pypy/edx-platform /home/samuel/.local/share/tutor/env/build/openedx
But with --no-registry-cache, it still fails, on a later step:
$ tutor images build openedx-dev --no-registry-cache
...
[7/8] STEP 7/52: COPY --link --from=docker.io/powerman/dockerize:0.19.0 /usr/local/bin/dockerize /usr/local/bin/dockerize
Error: building at STEP "COPY --link --from=docker.io/powerman/dockerize:0.19.0 /usr/local/bin/dockerize /usr/local/bin/dockerize": COPY --link is not supported
Error: Command failed with status 125: docker buildx build --tag=openedx-dev:20.0.0 --output=type=docker --target=development --build-arg=APP_USER_ID=1000 --build-context=edx-platform=/home/samuel/devstacks/tutor-pypy/edx-platform /home/samuel/.local/share/tutor/env/build/openedx
The --link
arg hasn’t been supported in podman historically - although it was implemented a few days ago in feat: ADD/COPY --link support for buildah by 2004joshua · Pull Request #6240 · containers/buildah · GitHub . We’ll need to wait for it to be released though.
I guess for now I’ll need to switch to docker on my workstations unless anyone knows of a workaround?
ticket: BB-9881