mirror of
https://gitlab.archlinux.org/archlinux/archlinux-docker.git
synced 2025-08-06 06:07:18 +02:00
The field is an inline comment, which by default is not present in the podman log. Plus we do have the exact URL list a couple of lines further down. Haven't seen any other Dockerfile have one either, so let's nuke it. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
16 lines
492 B
Bash
Executable File
16 lines
492 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
declare -r GROUP="$1"
|
|
declare -r OUTPUTDIR="$2"
|
|
|
|
sed -e "s|TEMPLATE_ROOTFS_FILE|$GROUP.tar.zst|" \
|
|
-e "s|TEMPLATE_ROOTFS_DOWNLOAD|true|" \
|
|
-e "s|TEMPLATE_ROOTFS_HASH|$(cat $OUTPUTDIR/$GROUP.tar.zst.SHA256)|" \
|
|
-e "s|TEMPLATE_TITLE|Arch Linux Dev Image|" \
|
|
-e "s|TEMPLATE_VERSION_ID|dev|" \
|
|
-e "s|TEMPLATE_REVISION|$(git rev-parse HEAD)|" \
|
|
-e "s|TEMPLATE_CREATED|$(date -Is)|" \
|
|
Dockerfile.template > "$OUTPUTDIR/Dockerfile.$GROUP"
|