Importing into a fresh repository.
Showing
12 changed files
with
141 additions
and
0 deletions
Dockerfile
0 → 100644
1 | FROM debian:jessie | ||
2 | |||
3 | ADD /overlay/ / | ||
4 | |||
5 | RUN ["use-apt-mirror", "http.us.debian.org"] | ||
6 | |||
7 | RUN ["apt-docker", \ | ||
8 | "-y", "dist-upgrade", \ | ||
9 | ";", "-y", "install", "apt-utils", "libterm-readline-perl-perl", \ | ||
10 | ";", "-y", "install", "apt-transport-https", "ca-certificates", \ | ||
11 | "rsyslog", \ | ||
12 | "sudo", \ | ||
13 | "git", "wget", \ | ||
14 | "less", \ | ||
15 | ";" ] | ||
16 | |||
17 | |||
18 | # "vim", "nano-", "vim-tiny-", \ | ||
19 | # "less", \ | ||
20 | # "screen", "tmux", \ | ||
21 |
docker-compose.yml
0 → 100644
1 | APT::Default-Release "jessie"; |
overlay/etc/apt/preferences.d/docker.pref
0 → 100644
1 | deb http://http.us.debian.org/debian jessie-backports main |
1 | deb http://http.us.debian.org/debian testing main |
overlay/usr/local/bin/apt-docker
0 → 100755
1 | #!/bin/bash | ||
2 | |||
3 | set -e | ||
4 | |||
5 | declare -a cmd | ||
6 | |||
7 | apt-get update | ||
8 | |||
9 | export DEBIAN_FRONTEND=noninteractive RUNLEVEL=1 | ||
10 | while [[ $# -gt 0 ]]; do | ||
11 | if [[ $1 = ";" ]]; then | ||
12 | apt-get "${cmd[@]}" | ||
13 | cmd=() | ||
14 | else | ||
15 | cmd+=("$1") | ||
16 | fi | ||
17 | shift | ||
18 | done | ||
19 | if [[ ${#cmd[*]} -gt 0 ]]; then | ||
20 | apt-get "${cmd[@]}" | ||
21 | cmd=() | ||
22 | fi | ||
23 | rm -rf /var/lib/apt/lists/ /var/cache/apt/archives/*.deb |
overlay/usr/local/bin/docker-download-file
0 → 100755
overlay/usr/local/bin/docker-git-bundle
0 → 100755
1 | #!/bin/bash | ||
2 | |||
3 | set -e | ||
4 | url="$1" | ||
5 | bundle_file="$2" | ||
6 | |||
7 | shift 2 | ||
8 | |||
9 | declare -a git_args | ||
10 | |||
11 | rm -rf /tmp/build | ||
12 | mkdir -p /tmp/build | ||
13 | if [[ -e $bundle_file ]]; then | ||
14 | git clone --mirror --bare "$bundle_file" "/tmp/build/base.git" | ||
15 | git_args+=( | ||
16 | --reference "/tmp/build/base.git" | ||
17 | ) | ||
18 | ls -l "$bundle_file" | ||
19 | fi | ||
20 | git clone --mirror --bare "${git_args[@]}" "$url" "/tmp/build/repo.git" | ||
21 | GIT_DIR="/tmp/build/repo.git" git bundle create "/tmp/build/new-bundle.git" --all | ||
22 | |||
23 | ls -l "/tmp/build/new-bundle.git" | ||
24 | |||
25 | cp -a "/tmp/build/new-bundle.git" "$bundle_file.tmp" | ||
26 | if [[ -e $bundle_file ]]; then | ||
27 | chown --reference "$bundle_file" "$bundle_file.tmp" | ||
28 | chmod --reference "$bundle_file" "$bundle_file.tmp" | ||
29 | fi | ||
30 | mv "$bundle_file.tmp" "$bundle_file" | ||
31 | |||
32 | rm -rf /tmp/build | ||
33 |
overlay/usr/local/bin/save-data-dir
0 → 100755
overlay/usr/local/bin/use-apt-mirror
0 → 100755
-
Please register or sign in to post a comment