Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions docker/bigtop-puppet/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ PREFIX=$(echo "$1" | cut -d '-' -f 1)
OS=$(echo "$1" | cut -d '-' -f 2)
VERSION=$(echo "$1" | cut -d '-' -f 3-)
ARCH=$(uname -m)
if [ "${ARCH}" != "x86_64" ];then
ARCH="-${ARCH}"
else
ARCH=""
fi
case "$ARCH" in
aarch64|arm64) ARCH="aarch64" ;;
*) ARCH="$ARCH" ;;
esac

ENV_PATH=""
if [ ${OS} = "centos" -a ${VERSION} -ge 8 ]; then
Expand Down Expand Up @@ -67,5 +66,8 @@ case "${OS}-${VERSION}" in
;;
esac

docker build --no-cache -t bigtop/puppet:${PREFIX}-${OS}-${VERSION}${ARCH} .
if [ "${ARCH}" != "x86_64" ];then
VERSION="${VERSION}-${ARCH}"
fi
docker build --no-cache -t bigtop/puppet:${PREFIX}-${OS}-${VERSION} .
rm -f Dockerfile puppetize.sh
4 changes: 4 additions & 0 deletions docker/bigtop-slaves/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ PREFIX=$(echo "$1" | cut -d '-' -f 1)
OS=$(echo "$1" | cut -d '-' -f 2)
VERSION=$(echo "$1" | cut -d '-' -f 3-)
ARCH=$(uname -m)
case "$ARCH" in
aarch64|arm64) ARCH="aarch64" ;;
*) ARCH="$ARCH" ;;
esac

## Workaround for docker defect on linaros cloud
if [ "${ARCH}" = "aarch64" ];then
Expand Down