Files
homelab/infrastructure/graduated/distoolbox/arch-build.sh

23 lines
771 B
Bash
Executable File

#!/bin/bash
COMMAND_PREFIX=""
# If you haven't already, read up on setting the docker context to use podman as the backend.
# TL;DR
# systemctl --user enable --now podman.socket
# docker context create podman --docker host=unix://$XDG_RUNTIME_DIR/podman/podman.sock
# docker context use podman
# Run the build for the CPU image
docker build \
-t gitea.reeseapps.com/services/arch-toolbox:latest \
-f ./infrastructure/graduated/distoolbox/arch-toolbox.containerfile \
--load \
./infrastructure/graduated/distoolbox
# Run the build for the AMD gpu image
docker build \
-t gitea.reeseapps.com/services/arch-toolbox-amdgpu:latest \
-f ./infrastructure/graduated/distoolbox/arch-amdgpu-toolbox.containerfile \
--load \
./infrastructure/graduated/distoolbox