Commit 2cce1809 authored by segfault's avatar segfault
Browse files

WIP

parent 8df3f236
......@@ -64,11 +64,8 @@ test-iuk:
dzil test --all'
test-perl5lib:
image: tailslive/perl5lib:v1
script:
- apt-get update
- 'cat config/chroot_local-packageslists/tails-perl5lib.list
| grep -E -v "^#"
| xargs apt-get -qy install'
- apt-get update -qq # Take into account APT configuration added by apt-file
# Otherwise, apt-get called by "dzil authordebs --install" asks confirmation
- echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/yes
......
FROM debian:buster
ARG packages
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && apt-get install -y \
apt-file \
libdist-zilla-plugin-test-notabs-perl \
libdist-zilla-plugin-test-perl-critic-perl \
libdist-zilla-app-command-authordebs-perl \
libmodule-build-perl \
sudo \
# Install packages from
# config/chroot_local-packageslists/tails-perl5lib.list
${packages} \
# Remove APT lists to produce a smaller image
&& rm -rf /var/lib/apt/lists/*
#!/bin/bash
set -euo pipefail
set -x
print_usage() {
cat << EOF
usage: $0 [OPTIONS]
Build the docker image.
Options:
--push
Push the image after building it.
-h, --help
Print usage message.
EOF
}
# Parse arguments
while [ "$#" -gt 0 ]; do
case "$1" in
--push)
PUSH=1
shift
;;
-h|--help)
print_usage
exit 0
;;
*) # unknown option
echo "unknown option: $1"
print_usage
exit 1
;;
esac
done
TAG="${TAG:-"tailslive/iuk:v1"}"
# Get the list of required packages
PACKAGES_LIST="config/chroot_local-packageslists/tails-iuk.list"
GIT_DIR=$(git rev-parse --show-toplevel)
PACKAGES=$(grep -v ^# "${GIT_DIR}/${PACKAGES_LIST}")
# Append the perl5lib packages, which are also required
PACKAGES_LIST="config/chroot_local-packageslists/tails-perl5lib.list"
PACKAGES="${PACKAGES} $(grep -v ^# "${GIT_DIR}/${PACKAGES_LIST}")"
# Build the image
DOCKER_BUILDKIT=1 docker build \
--cache-from "${TAG}" \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--tag "${TAG}" \
--build-arg packages="${PACKAGES}" \
.
# Push the image (if requested)
if [ -n "${PUSH:-}" ]; then
docker push "${TAG}"
fi
FROM debian:buster
ARG packages
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && apt-get install -y \
apt-file \
libdist-zilla-plugin-test-notabs-perl \
libdist-zilla-plugin-test-perl-critic-perl \
libdist-zilla-app-command-authordebs-perl \
libmodule-build-perl \
sudo \
# Install packages from
# config/chroot_local-packageslists/tails-perl5lib.list
${packages} \
# Remove APT lists to produce a smaller image
&& rm -rf /var/lib/apt/lists/*
#!/bin/bash
set -euo pipefail
set -x
print_usage() {
cat << EOF
usage: $0 [OPTIONS]
Build the docker image.
Options:
--push
Push the image after building it.
-h, --help
Print usage message.
EOF
}
# Parse arguments
while [ "$#" -gt 0 ]; do
case "$1" in
--push)
PUSH=1
shift
;;
-h|--help)
print_usage
exit 0
;;
*) # unknown option
echo "unknown option: $1"
print_usage
exit 1
;;
esac
done
TAG="${TAG:-"tailslive/perl5lib:v1"}"
# Get the list of required packages
PACKAGES_LIST="config/chroot_local-packageslists/tails-perl5lib.list"
GIT_DIR=$(git rev-parse --show-toplevel)
PACKAGES=$(grep -v ^# "${GIT_DIR}/${PACKAGES_LIST}")
# Build the image
DOCKER_BUILDKIT=1 docker build \
--cache-from "${TAG}" \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--tag "${TAG}" \
--build-arg packages="${PACKAGES}" \
.
# Push the image (if requested)
if [ -n "${PUSH:-}" ]; then
docker push "${TAG}"
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment