0a908876 by Adam Heath

Importing into a fresh repository.

1 parent a049cf3e
FROM debian:jessie
ADD /overlay/ /
RUN ["use-apt-mirror", "http.us.debian.org"]
RUN ["apt-docker", \
"-y", "dist-upgrade", \
";", "-y", "install", "apt-utils", "libterm-readline-perl-perl", \
";", "-y", "install", "apt-transport-https", "ca-certificates", \
"rsyslog", \
"sudo", \
"git", "wget", \
"less", \
";" ]
# "vim", "nano-", "vim-tiny-", \
# "less", \
# "screen", "tmux", \
version: '2'
services:
build:
image: docker.brainfood.com/debian-support
build:
context: .
args:
- http_proxy
- https_proxy
APT::Install-Suggests false;
APT::Install-Recommends false;
Package: *
Pin: release l=Debian-Security
Pin-Priority: 1000
Package: *
Pin: release a=stable
Pin-Priority: 900
Package: *
Pin: release a=testing
Pin-Priority: 750
Package: *
Pin: release l=Debian Backports
Pin-Priority: 750
deb http://http.us.debian.org/debian jessie-backports main
deb http://http.us.debian.org/debian testing main
#!/bin/bash
set -e
declare -a cmd
apt-get update
export DEBIAN_FRONTEND=noninteractive RUNLEVEL=1
while [[ $# -gt 0 ]]; do
if [[ $1 = ";" ]]; then
apt-get "${cmd[@]}"
cmd=()
else
cmd+=("$1")
fi
shift
done
if [[ ${#cmd[*]} -gt 0 ]]; then
apt-get "${cmd[@]}"
cmd=()
fi
rm -rf /var/lib/apt/lists/ /var/cache/apt/archives/*.deb
#!/bin/sh
set -ex
url="$1"
target="$2"
shift 2
rm -rf /tmp/docker-download-file
mkdir /tmp/docker-download-file
cd /tmp/docker-download-file
wget "$url"
set -- *
cp "$1" "$target.tmp"
mv "$target.tmp" "$target"
cd /
rm -rf /tmp/docker-download-file
#!/bin/bash
set -e
url="$1"
bundle_file="$2"
shift 2
declare -a git_args
rm -rf /tmp/build
mkdir -p /tmp/build
if [[ -e $bundle_file ]]; then
git clone --mirror --bare "$bundle_file" "/tmp/build/base.git"
git_args+=(
--reference "/tmp/build/base.git"
)
ls -l "$bundle_file"
fi
git clone --mirror --bare "${git_args[@]}" "$url" "/tmp/build/repo.git"
GIT_DIR="/tmp/build/repo.git" git bundle create "/tmp/build/new-bundle.git" --all
ls -l "/tmp/build/new-bundle.git"
cp -a "/tmp/build/new-bundle.git" "$bundle_file.tmp"
if [[ -e $bundle_file ]]; then
chown --reference "$bundle_file" "$bundle_file.tmp"
chmod --reference "$bundle_file" "$bundle_file.tmp"
fi
mv "$bundle_file.tmp" "$bundle_file"
rm -rf /tmp/build
#!/bin/sh
data_dir="$1"
data_name="$2"
shift 2
mkdir -p /var/lib/docker-init/data
tar -C "$data_dir" -c . | gzip -9v > "/var/lib/docker-init/data/$data_name.data.tar.gz"
find "$data_dir" -mindepth 1 -maxdepth 1 -exec rm -rf '{}' ';'
#!/bin/sh
find /etc/apt -type f -print0 | xargs -0 sed -i -e "s,http://httpredir.debian.org,http://$1,g"