-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide docker containers using released conda packages instead of cu…
…stom built. add script for building multi-arch packages
- Loading branch information
Showing
2 changed files
with
35 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
CONTAINER_NAME="connormanning/entwine" | ||
VERSION="3.1.1" | ||
|
||
WIPE_CACHE="$1" | ||
if [ -z "$WIPE_CACHE" ]; then | ||
echo "Not wiping cache"; | ||
else | ||
WIPE_CACHE="--no-cache" | ||
echo "Wiping cache '$WIPE_CACHE'"; | ||
|
||
fi | ||
|
||
docker buildx build \ | ||
-t "$CONTAINER_NAME:$VERSION-amd64" . \ | ||
--platform linux/amd64 \ | ||
-f Dockerfile --load $WIPE_CACHE | ||
|
||
docker buildx build -t "$CONTAINER_NAME:$VERSION-arm64" . \ | ||
-f Dockerfile --platform linux/arm64 \ | ||
--load $WIPE_CACHE | ||
|
||
|
||
docker push $CONTAINER_NAME:$VERSION-arm64 | ||
docker push $CONTAINER_NAME:$VERSION-amd64 | ||
|
||
docker manifest create "$CONTAINER_NAME:$VERSION" \ | ||
--amend "$CONTAINER_NAME:$VERSION-arm64" \ | ||
--amend "$CONTAINER_NAME:$VERSION-amd64" | ||
|
||
docker manifest inspect $CONTAINER_NAME:$VERSION | ||
|
||
docker manifest push "$CONTAINER_NAME:$VERSION" |