Skip to content

Commit 9884f3e

Browse files
author
Marcelo Ochoa
committed
added arm64 platform build and note on readme glusterfs
1 parent 386fe36 commit 9884f3e

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

build.sh

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@ build() {
1717
BPLATFORM="linux/arm/v7"
1818
TPLATFORM="armhf"
1919
GPLATFORM="armv6l"
20-
else
21-
BPLATFORM="linux/amd64"
22-
TPLATFORM="amd64"
23-
GPLATFORM="amd64"
20+
else if [ $ARCH == "aarch64" ]
21+
then
22+
BPLATFORM="linux/arm64"
23+
TPLATFORM="arm64"
24+
GPLATFORM="arm64"
25+
else
26+
BPLATFORM="linux/amd64"
27+
TPLATFORM="amd64"
28+
GPLATFORM="amd64"
29+
fi
2430
fi
2531
docker plugin rm -f mochoa/$1:$TAG || true
2632
docker rmi -f rootfsimage || true
@@ -36,6 +42,11 @@ build() {
3642
cp $1/config.json build
3743
docker plugin create mochoa/$1-$ARCH:$TAG build
3844
docker plugin push mochoa/$1-$ARCH:$TAG
45+
if [ $ARCH == "x86_64" ]
46+
then
47+
docker plugin create mochoa/$1:$TAG build
48+
docker plugin push mochoa/$1:$TAG
49+
fi
3950
}
4051
build glusterfs-volume-plugin
4152
build s3fs-volume-plugin

glusterfs-volume-plugin/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ This is the *recommended* approach for production systems as it will prevent sta
2727
docker plugin enable PLUGINALIAS
2828

2929
If there is a need to have a different set of servers, a separate plugin alias should be created with a different set of servers.
30+
* Note that store1 and store2 servers must be defined at /etc/hosts of docker run time.
3031

3132
Example in docker-compose.yml:
3233

0 commit comments

Comments
 (0)