mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2025-12-06 07:12:01 +01:00
24 lines
573 B
Bash
24 lines
573 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
# Parameters
|
||
|
|
architecture="x86_64"
|
||
|
|
dockerimg="sysrescuebuildiso-${architecture}:latest"
|
||
|
|
|
||
|
|
# Determine the path to the git repository
|
||
|
|
fullpath="$(realpath $0)"
|
||
|
|
curdir="$(dirname ${fullpath})"
|
||
|
|
repodir="$(realpath ${curdir}/..)"
|
||
|
|
tmpdir="${repodir}/docker/tmpfiles"
|
||
|
|
echo "fullpath=${fullpath}"
|
||
|
|
echo "repodir=${repodir}"
|
||
|
|
|
||
|
|
# Copy configuration files
|
||
|
|
mkdir -p ${tmpdir}
|
||
|
|
cp -a ${repodir}/pacman.conf ${tmpdir}
|
||
|
|
|
||
|
|
# Build the docker image
|
||
|
|
docker build -t ${dockerimg} -f ${repodir}/docker/Dockerfile-build-iso-${architecture} ${repodir}/docker
|
||
|
|
|
||
|
|
# Cleanup
|
||
|
|
rm -rf ${tmpdir}
|