Fulcrum/contrib/docker/build.sh
mainnet-pat 8b63f55a21
Add arm64 support to Docker image + add librocksdb.a for linux aarch64 (#84)
This commit:

- Adds building docker images for multiple architectures (currently intel, arm64) 
  using docker `buildx`
- Temporarily modifies the `Dockerfile` to use `ppa:mainnet-pat/opt-qt-5.13.2-bionic` 
  which is a clone of previously used `ppa:beineri/opt-qt-5.13.2-bionic` but builds 
  arm64 deb packages as well. Author is contacted to support this in their repo.
    - Calin verified that the input source tree and build control files are identical to ~beineri
- Adds librocksdb.a static lib built for arm64 (should be generally useful outside of docker)
2021-07-02 01:36:51 +03:00

16 lines
362 B
Bash
Executable file

#!/bin/sh
set -e
if [ -z "$1" ] ; then
echo "Usage: $0 <image tag>"
exit 1
fi
IMAGE_TAG="$1"
here=$(dirname $(realpath "$0" 2> /dev/null || grealpath "$0"))
. "$here"/../base.sh
docker buildx build --build-arg MAKEFLAGS="-j $WORKER_COUNT" -t "$IMAGE_TAG" -f contrib/docker/Dockerfile \
--platform linux/arm64/v8,linux/amd64 --push "$here"/../..