-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add amd64 and arm64 build targets and precommit script
Ensure both architectures are properly built and tested for CI compatibility. Introduced a precommit hook to streamline the process and made necessary amendments to the Dockerfile for ARM64 support.
- Loading branch information
1 parent
7f58039
commit a8b3b0e
Showing
3 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
### Added this script to allow locally build both version for amd64 and arm64 as a way to test it locally what will | ||
### be done on CI. | ||
|
||
### IMPORTANT: you should have `buildx` properly configured on your host. | ||
### https://github.com/docker/buildx | ||
|
||
set -e | ||
|
||
. scripts/shared.sh | ||
|
||
info_log "Building development for AMD64" | ||
docker buildx build -f docker/dev-node.dockerfile -t pocket-network/pocketdex:development-amd64 --platform=linux/amd64 . | ||
|
||
info_log "Building development for ARM64" | ||
docker buildx build -f docker/dev-node.dockerfile -t pocket-network/pocketdex:development-arm64 --platform=linux/arm64 . | ||
|
||
info_log "Building production for AMD64" | ||
docker buildx build -f docker/node.dockerfile -t pocket-network/pocketdex:development-amd64 --platform=linux/amd64 . | ||
|
||
info_log "Building production for ARM64" | ||
docker buildx build -f docker/node.dockerfile -t pocket-network/pocketdex:development-arm64 --platform=linux/arm64 . |