Skip to content

Instantly share code, notes, and snippets.

Avatar
♥️
TIANON

Tianon Gravi tianon

♥️
TIANON
View GitHub Profile
@tianon
tianon / create-sbuild-chroot.sh
Last active Dec 13, 2019
SUPERSEDED BY https://github.com/tianon/debian-bin -- collection of useful sbuild-related scripts
View create-sbuild-chroot.sh
#!/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 Sep 7, 2015
backport-criu; usage: ./build.sh
View Dockerfile
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
View mattn-c-code.patch
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 Jun 29, 2015
Dockerfile heredoc idea
View Dockerfile
FROM debian:jessie
RUN <<EOI
set -e
apt-get update
apt-get install -y \
package \
package \
package
EOI
@tianon
tianon / Dockerfile
Last active Aug 29, 2015
Rust starter for Peter
View Dockerfile
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 \
View debian-build-depends.sh
#!/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)"
View install-build-deps.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)"
View dockerinit-imports
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
@tianon
tianon / script.sh
Last active Aug 29, 2015
windows dind for docker jenkins
View script.sh
commithash="$(git log -1 --shorthashwhateveritis)"
docker build -t "docker:$commithash" .
docker run -it --privileged -d --name "docker-$commithash" -p 2375 -P "docker:$commithash" bash -c 'hack/make.sh binary && exec bundles/docker-*/binary/docker -d -D -H tcp://0.0.0.0:2375'
port="$(docker inspect -f '{{index .NetworkSettings.Ports "2375/tcp" 0 "HostPort"}}' docker-$commithash)"
ip="${DOCKER_HOST#*://}"
ip="${ip%%:*}"
(
export DOCKER_HOST="tcp://$ip:$port"
# the rest as it is right now, blah blah blah ./hack/make.sh dynbinary test-integration-cli
You can’t perform that action at this time.