Skip to content
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

[Bug]: Docker images are not multiarch #764

Open
1 task done
rickardp opened this issue Mar 24, 2024 · 1 comment
Open
1 task done

[Bug]: Docker images are not multiarch #764

rickardp opened this issue Mar 24, 2024 · 1 comment
Assignees
Labels
Deployment & Docker Pull requests that update Docker code Enhancement New feature or request Java Backend Pull requests that update Java code

Comments

@rickardp
Copy link

rickardp commented Mar 24, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The lowcoderorg/lowcoder-ce-api-service:2.3.1 image is AMD64 only, but ARM64 images are also built under a different tag lowcoderorg/lowcoder-ce-api-service:2.3.1-arm64.

This makes scripts not portable between for example Linux/x64 and Linux/arm64 (or Apple silicon)

Expected Behavior

Multi arch Docker images should use the same tag, so that lowcoderorg/lowcoder-ce-api-service:2.3.1 is used regardless of architecture. This makes referencing the images much easier. It should be as easy as sending all the needed platforms to Docker BuildX.

See for example https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/

Steps to reproduce

Reference the image, e.g lowcoderorg/lowcoder-ce-api-service:2.3.1. Observe that the

Environment

No response

Additional Information

No response

@rickardp rickardp changed the title [Bug]: <title> [Bug]: Docker images are not multiarch Mar 24, 2024
@rickardp
Copy link
Author

rickardp commented Mar 24, 2024

The workaround until this image is fixed:

  • Create Dockerfile.amd64 with FROM lowcoderorg/lowcoder-ce-api-service:2.3.1
  • Create Dockerfile.arm64 with FROM lowcoderorg/lowcoder-ce-api-service:2.3.1-arm64
  • docker buildx build --load --platform linux/amd64 -t my-lowcoder-ce-api-service:2.3.1-amd64 -f Dockerfile.amd64 .
  • docker buildx build --load --platform linux/arm64 -t my-lowcoder-ce-api-service:2.3.1-arm64 -f Dockerfile.arm64 .
  • docker buildx imagetools create -t my-lowcoder-ce-api-service:2.3.1 my-lowcoder-ce-api-service:2.3.1-amd64 my-lowcoder-ce-api-service:2.3.1-arm64

Repeat for all images (frontend, node, etc)

my- above is replaced with a private registry of choice, e.g. ghcr.io/my-org/my-

@FalkWolsky FalkWolsky added Enhancement New feature or request Java Backend Pull requests that update Java code Deployment & Docker Pull requests that update Docker code labels Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deployment & Docker Pull requests that update Docker code Enhancement New feature or request Java Backend Pull requests that update Java code
Projects
None yet
Development

No branches or pull requests

3 participants