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
I'm trying to run the reportportal/migrations image on an arm64 node in my k8s cluster. Receiving errors:
/bin/sh ./entrypoint.sh: exec format error
I'm using the arm64 digest of the image available on dockerhub, and i can verify that the node that the pod is assigned to is the correct architecture for this image.
curl -L https://github.com/golang-migrate/migrate/releases/download/v4.15.2/migrate.linux-amd64.tar.gz | tar xvz && \
Even when building the arm64 variant of the image, it's still retrieving the amd64 version of the golang-migrate binary. As this is directly called by the ./entrypoint.sh, I believe this to be the problem. (I tried opening a pr but permission denied eh)
My suggestion would be to update the Dockerfile like so:
I'm trying to run the reportportal/migrations image on an arm64 node in my k8s cluster. Receiving errors:
I'm using the arm64 digest of the image available on dockerhub, and i can verify that the node that the pod is assigned to is the correct architecture for this image.
The dockerfile here seems to contain a bug:
migrations/Dockerfile
Line 4 in cca0e98
Even when building the arm64 variant of the image, it's still retrieving the amd64 version of the golang-migrate binary. As this is directly called by the
./entrypoint.sh
, I believe this to be the problem. (I tried opening a pr but permission denied eh)My suggestion would be to update the Dockerfile like so:
The $TARGETARCH arg exposes the underlying container architecture as a variable, so this can be used to pull the appropriate binary from github.
The text was updated successfully, but these errors were encountered: