Skip to content

Instantly share code, notes, and snippets.

View tianon's full-sized avatar
♥️
TIANON

Tianon Gravi tianon

♥️
TIANON
  • @docker, but thoughts, comments, commits generally his own ("do not represent the views of Docker, Inc" etc etc)
  • Las Vegas, NV
  • 18:19 (UTC -07:00)
  • X @tianon
View GitHub Profile
@tianon
tianon / docker-pull-official.sh
Last active January 5, 2016 08:30
"docker pull" all official images
#!/bin/bash
set -e
dir="$(mktemp -d)"
trap "rm -rf '$dir'" EXIT
git clone --depth 1 https://github.com/docker-library/official-images.git "$dir"
"$dir/bashbrew/bashbrew.sh" list --all | xargs -rtn1 docker pull
@tianon
tianon / 2b0901be48b8760387d5ecbd61cfd62838bd04458d219fc5409cb010736089a3-VERSION
Last active December 16, 2015 18:52
broken "docker load" with content addressability
1.0
@tianon
tianon / create-sbuild-chroot.sh
Last active December 13, 2019 03:36
SUPERSEDED BY https://github.com/tianon/debian-bin -- collection of useful sbuild-related scripts
#!/bin/bash
set -eu
# https://gist.github.com/tianon/a0080cbca558e4b907fe
suite="${1:-}"
shift || { echo >&2 "usage: $0 suite [arch]"; exit 1; }
targetSuite="$suite"
case "$targetSuite" in
@tianon
tianon / Dockerfile
Last active September 7, 2015 19:13
backport-criu; usage: ./build.sh
FROM debian:sid
RUN apt-get update && apt-get install -y --no-install-recommends \
debian-keyring \
devscripts \
dpkg-dev \
wget \
&& rm -rf /var/lib/apt/lists/*
ENV DEBFULLNAME Docker
diff --git a/hack/.vendor-helpers.sh b/hack/.vendor-helpers.sh
index 1d4674b..54ce6bb 100755
--- a/hack/.vendor-helpers.sh
+++ b/hack/.vendor-helpers.sh
@@ -98,7 +98,10 @@ clean() {
unset IFS
echo -n 'pruning unused packages, '
- findArgs=()
+ findArgs=(
@tianon
tianon / Dockerfile
Created June 29, 2015 22:47
Dockerfile heredoc idea
FROM debian:jessie
RUN <<EOI
set -e
apt-get update
apt-get install -y \
package \
package \
package
EOI
@tianon
tianon / Dockerfile
Last active August 29, 2015 14:23
Rust starter for Peter
FROM debian:jessie
# pub 4096R/FA1BE5FE 2013-09-26
# Key fingerprint = 108F 6620 5EAE B0AA A8DD 5E1C 85AB 96E6 FA1B E5FE
# uid Rust Language (Tag and Release Signing Key) <rust-key@rust-lang.org>
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE
ENV RUST_VERSION 1.0.0
RUN set -x \
#!/bin/bash
set -e
# https://gist.github.com/tianon/92ebbd1793864b9586bc
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
hackVendor="$(< hack/vendor.sh)"
if [ "$1" ]; then
hackVendor="$(git show "$1":hack/vendor.sh)"
#!/bin/bash
set -e
deb="$(mktemp --tmpdir build-deps-XXXXXXXXXX.deb)"
trap "rm -f '$deb'" EXIT
"$(dirname "$(readlink -f "$BASH_SOURCE")")/make-build-deps.sh" "$deb"
dpkg --unpack "$deb"
depsPackage="$(dpkg-deb -f "$deb" Package)"
github.com/Sirupsen/logrus
github.com/docker/libcontainer/apparmor
github.com/docker/libcontainer/configs
github.com/docker/docker/pkg/ulimit
github.com/docker/docker/autogen/dockerversion
github.com/docker/docker/pkg/ioutils
github.com/docker/docker/pkg/promise
github.com/docker/docker/pkg/units
github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar
github.com/docker/docker/pkg/common