fdb bump, bionic mozjs fix, automation improvement
diff --git a/bin/apt-dependencies.sh b/bin/apt-dependencies.sh
index 8e29b23..f35ddb2 100755
--- a/bin/apt-dependencies.sh
+++ b/bin/apt-dependencies.sh
@@ -170,7 +170,7 @@
apt-get install -y couch-libmozjs185-dev
fi
# newer releases have newer libmozjs
- if [ "${VERSION_CODENAME}" == "bionic" -o "${VERSION_CODENAME}" == "buster" ]; then
+ if [ "${VERSION_CODENAME}" == "buster" ]; then
apt-get install -y libmozjs-60-dev
fi
if [ "${VERSION_CODENAME}" == "focal" ]; then
@@ -185,11 +185,12 @@
# Erlang is installed by apt-erlang.sh
# FoundationDB
-wget https://www.foundationdb.org/downloads/6.2.15/ubuntu/installers/foundationdb-clients_6.2.15-1_amd64.deb
-wget https://www.foundationdb.org/downloads/6.2.15/ubuntu/installers/foundationdb-server_6.2.15-1_amd64.deb
+wget https://www.foundationdb.org/downloads/6.2.20/ubuntu/installers/foundationdb-clients_6.2.20-1_amd64.deb
+wget https://www.foundationdb.org/downloads/6.2.20/ubuntu/installers/foundationdb-server_6.2.20-1_amd64.deb
dpkg -i ./foundationdb*deb
pkill -f fdb || true
pkill -f foundation || true
+rm -rf ./foundationdb*deb
# clean up
apt-get clean
diff --git a/bin/yum-dependencies.sh b/bin/yum-dependencies.sh
index fb6407c..2ccd32c 100755
--- a/bin/yum-dependencies.sh
+++ b/bin/yum-dependencies.sh
@@ -200,17 +200,18 @@
# FoundationDB
if [[ ${VERSION_ID} -eq 6 ]]; then
- wget https://www.foundationdb.org/downloads/6.2.15/rhel6/installers/foundationdb-clients-6.2.15-1.el6.x86_64.rpm
- wget https://www.foundationdb.org/downloads/6.2.15/rhel6/installers/foundationdb-server-6.2.15-1.el6.x86_64.rpm
+ wget https://www.foundationdb.org/downloads/6.2.20/rhel6/installers/foundationdb-clients-6.2.20-1.el6.x86_64.rpm
+ wget https://www.foundationdb.org/downloads/6.2.20/rhel6/installers/foundationdb-server-6.2.20-1.el6.x86_64.rpm
yum --nogpgcheck localinstall -y foundationdb*rpm
else
- wget https://www.foundationdb.org/downloads/6.2.15/rhel7/installers/foundationdb-clients-6.2.15-1.el7.x86_64.rpm
- wget https://www.foundationdb.org/downloads/6.2.15/rhel7/installers/foundationdb-server-6.2.15-1.el7.x86_64.rpm
+ wget https://www.foundationdb.org/downloads/6.2.20/rhel7/installers/foundationdb-clients-6.2.20-1.el7.x86_64.rpm
+ wget https://www.foundationdb.org/downloads/6.2.20/rhel7/installers/foundationdb-server-6.2.20-1.el7.x86_64.rpm
# Buggy FoundationDB packages require this workaround
rpm -i --nodeps ./foundationdb*rpm
fi
pkill -f fdb || true
pkill -f foundation || true
+rm -rf ./foundationdb*rpm
# clean up
yum clean all -y
diff --git a/build.sh b/build.sh
index 77aabf8..6d5f7d3 100755
--- a/build.sh
+++ b/build.sh
@@ -40,7 +40,9 @@
DEBIANS="debian-stretch debian-buster"
UBUNTUS="ubuntu-xenial ubuntu-bionic ubuntu-focal"
CENTOSES="centos-6 centos-7 centos-8"
-
+ERLANGALL_BASE="debian-buster"
+XPLAT_BASE="debian-buster"
+XPLAT_ARCHES="arm64v8 ppc64le"
BINTRAY_API="https://api.bintray.com"
@@ -92,10 +94,17 @@
fi
}
+pull-os-image() {
+ image_name=$(echo $1 | tr "-" ":")
+ docker pull $image_name
+}
+
build-platform() {
find-erlang-version $1
+ pull-os-image $1
docker build -f dockerfiles/$1 \
$buildargs \
+ --no-cache \
--tag couchdbdev/${CONTAINERARCH}$1-erlang-${ERLANGVERSION} \
${SCRIPTPATH}
}
@@ -178,7 +187,10 @@
shift
for plat in $DEBIANS $UBUNTUS $CENTOSES; do
build-platform $plat $*
- ERLANGVERSION=all build-platform debian-buster
+ done
+ ERLANGVERSION=all build-platform $ERLANGALL_BASE
+ for arch in $XPLAT_ARCHES; do
+ CONTAINERARCH=$arch build-platform $XPLAT_BASE
done
;;
platform-upload)