-
Notifications
You must be signed in to change notification settings - Fork 163
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
(chore) #485: Implement Multi-Architecture Docker Image Build and Deployment with Debian Base Image #517
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bcoderx6
changed the title
(chore) Implement Multi-Architecture Docker Image Build and Deployment with Debian Base Image
(chore) #485: Implement Multi-Architecture Docker Image Build and Deployment with Debian Base Image
Jul 23, 2024
I made a base version: https://github.com/metacall/core/actions/runs/10378538484 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#485
This pull request introduces comprehensive enhancements to the Docker build and deployment process, focusing on multi-architecture support and optimized base images. The following key updates have been made:
Docker Compose Updates
docker-compose-multiarch.yml
to include theplatform
directive for each service, targeting architectures such aslinux/amd64
andlinux/arm64
. This change ensures compatibility with different hardware configurations.Shell Script Enhancements
docker-compose.sh
:sub_build_multiarch()
function to leverage Docker Buildx for building images across multiple architectures.METACALL_BASE_IMAGE=debian:bookworm-slim
to standardize the base image for all services, ensuring a consistent and optimized environment for building Docker images.GitHub Actions Workflow
docker/setup-qemu-action@v2
for cross-platform emulation, allowing builds for architectures not natively supported by the host machine.docker/setup-buildx-action@v2
to manage Buildx instances, facilitating multi-architecture image builds.linux/amd64
,linux/arm/v6
,linux/arm/v7
, andlinux/arm64
, extending compatibility across diverse platforms.-Metadata and Versioning:
docker/metadata-action@v5
to automatically handle Docker image tags and versions.Benefits
debian:bookworm-slim
as the base image ensures a streamlined and efficient build environment across all services.@viferga @giarve