Skip to content

Commit

Permalink
add arch image to iamge name if neeeded
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed May 23, 2024
1 parent b5498d4 commit f683dfe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zeek-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ while IFS='=' read -r ZEEK_ENV_VAR value ; do
fi
done < <(env)

export ZEEK_IMAGE=${ZEEK_IMAGE:-oci.guero.top/zeek:latest}
ZEEK_IMAGE=${ZEEK_IMAGE:-oci.guero.top/zeek:latest}
IMAGE_ARCH_SUFFIX="$(uname -m | sed 's/^x86_64$//' | sed 's/^arm64$/-arm64/' | sed 's/^aarch64$/-arm64/')"
[[ -n "$IMAGE_ARCH_SUFFIX" ]] && [[ "$ZEEK_IMAGE" != *"$IMAGE_ARCH_SUFFIX" ]] && ZEEK_IMAGE="${ZEEK_IMAGE}${IMAGE_ARCH_SUFFIX}"
export ZEEK_IMAGE
export CONTAINER_ENGINE="${CONTAINER_ENGINE:-docker}"
if [[ "$CONTAINER_ENGINE" == "podman" ]]; then
export DEFAULT_UID=0
Expand Down

0 comments on commit f683dfe

Please sign in to comment.