File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,16 @@ build() {
17
17
BPLATFORM=" linux/arm/v7"
18
18
TPLATFORM=" armhf"
19
19
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
24
30
fi
25
31
docker plugin rm -f mochoa/$1 :$TAG || true
26
32
docker rmi -f rootfsimage || true
@@ -36,6 +42,11 @@ build() {
36
42
cp $1 /config.json build
37
43
docker plugin create mochoa/$1 -$ARCH :$TAG build
38
44
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
39
50
}
40
51
build glusterfs-volume-plugin
41
52
build s3fs-volume-plugin
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ This is the *recommended* approach for production systems as it will prevent sta
27
27
docker plugin enable PLUGINALIAS
28
28
29
29
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.
30
31
31
32
Example in docker-compose.yml:
32
33
You can’t perform that action at this time.
0 commit comments