File: build-appimage-container

package info (click to toggle)
pgtop 4.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 780 kB
  • sloc: ansic: 14,080; sh: 39; xml: 32; makefile: 2
file content (23 lines) | stat: -rwxr-xr-x 418 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

if ! which podman > /dev/null 2>&1; then
	echo "podman is not in your path"
	exit 1
fi

CONTAINER_DIR=$(realpath "$(dirname "$0")")
CONTAINER_TAG="pg_top-appimage"

ARCH="$(uname -m)"

if [ "${ARCH}" = "arm64" ]; then
	ARCH="aarch64"
fi

cd "$CONTAINER_DIR/.." && \
		podman build \
				--isolation=chroot \
				--build-arg ARCH="${ARCH}" \
				-t "${CONTAINER_TAG}" \
				-f Containerfile.appimage \
				.