blob: 9dc23b2ddefd52ce3b7a18cd30c1ab650e6e10a4 [file] [log] [blame]
#!/bin/bash
# Base Debian image that adds common CIPD packages.
set -x -e
APPNAME=base-cipd
# Keep in sync with the version of Debian we are depending on, i.e.
# make this match the tag in base-cipd/Dockerfile.
TAG=testing-slim
# Copy files into the right locations in ${ROOT}.
copy_release_files()
{
# Strip out irrelevant CIPD packages.
tmp="$(mktemp -d)"
touch ${tmp}/cipd.ensure
while IFS="" read -r line || [ -n "$line" ]
do
if [[ ! "$line" =~ arm64|armv6l|windows|mac ]]; then
echo "$line" >> ${tmp}/cipd.ensure
fi
done < ../cipd.ensure
INSTALL="install -D --verbose --backup=none"
INSTALL_DIR="install -d --verbose --backup=none"
${INSTALL} --mode=644 -T base-cipd/Dockerfile ${ROOT}/Dockerfile
# Files needed to install CIPD packages.
${INSTALL} --mode=644 -T ${tmp}/cipd.ensure ${ROOT}/tmp/cipd.ensure
${INSTALL} --mode=644 -T ../DEPS ${ROOT}/tmp/DEPS
rm -rf $tmp
}
source ../bash/docker_build.sh