ory / kratos-selfservice-ui-node

Apache License 2.0
314 stars 207 forks source link

Cross platform docker images (especially linux/arm64) #331

Open nmapx opened 5 months ago

nmapx commented 5 months ago

Preflight checklist

Ory Network Project

No response

Describe your problem

I've noticed self-service doesn't offer arm64 specific docker image (comparing to other Ory products) what for ARM users means they need to "fake" docker to think it's running amd64 which kinda works but is a bit hacky.

Describe your ideal solution

      ...
      - setup_remote_docker
      - run: docker build -t oryd/kratos-selfservice-ui-node:latest .
      - run:
          docker tag oryd/kratos-selfservice-ui-node:latest
          oryd/kratos-selfservice-ui-node:$DOCKER_SHORT_TAG
      - run:
          docker login --username "$DOCKER_USERNAME" --password
          "$DOCKER_PASSWORD"
      - run: docker push oryd/kratos-selfservice-ui-node:latest
      - run: docker push oryd/kratos-selfservice-ui-node:$DOCKER_SHORT_TAG
      ...

It should be plug & play if you switch to docker buildx build ... in CircleCI pipeline

Workarounds or alternatives

For now it requires that ARM users use platform: linux/amd64 on docker container startup

Version

latest

Additional Context

No response

david1542 commented 1 month ago

Is there any news about this? We also experience some weird behavior around that.

Rodeoclash commented 1 month ago

To second this, I would also welcome ARM containers. We deploy this container after making some modifications to the assets in it. Being able to deploy it into our ARM ECS cluster alongside the other Ory containers would be great.