Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion bin/make-base-vm
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,21 @@ if [ $DOCKER = "1" ]; then
base_image="$DISTRO:$SUITE"
fi

if [ $(uname) != "Darwin" ]; then
CACHELINE=$(cat << EOF0
RUN echo 'Acquire::http { Proxy "$MIRROR_BASE"; };' > /etc/apt/apt.conf.d/50cacher
EOF0
)
else
# MacOS, no local debian cache
CACHELINE=""
fi
# Generate the dockerfile
cat << EOF > $OUT.Dockerfile
FROM $base_image

ENV DEBIAN_FRONTEND=noninteractive
RUN echo 'Acquire::http { Proxy "$MIRROR_BASE"; };' > /etc/apt/apt.conf.d/50cacher
$CACHELINE
RUN apt-get update && apt-get --no-install-recommends -y install $addpkg

RUN useradd -ms /bin/bash -U $DISTRO
Expand Down