Files
Horchposten/build.sh
2026-03-08 14:44:50 +00:00

19 lines
508 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
IMAGE="localhost/horchposten:latest"
echo "Building image: ${IMAGE}"
podman build -t "${IMAGE}" -f Containerfile .
echo "Exporting image to OCI archive..."
podman save --format oci-archive -o horchposten.tar "${IMAGE}"
echo "Importing image into k3s containerd..."
sudo k3s ctr images import horchposten.tar
rm -f horchposten.tar
echo "Done. Image available in k3s as: docker.io/library/horchposten:latest"
echo "Use imagePullPolicy: Never in your k8s manifests."