Skip to content

Instantly share code, notes, and snippets.

View tianon's full-sized avatar
♥️
TIANON

Tianon Gravi tianon

♥️
TIANON
View GitHub Profile
#!/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
@tianon
tianon / script.sh
Last active August 29, 2015 14:16
windows dind for docker jenkins
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
gpgv: Signature made Tue Mar 3 14:00:20 2015 MST using RSA key ID 46925553
gpgv: Good signature from "Debian Archive Automatic Signing Key (7.0/wheezy) <[email protected]>"
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 5 package 'dpkg':
missing description
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 5 package 'dpkg':
missing architecture
Selecting previously unselected package base-passwd.
(Reading database ... 0 files and directories currently installed.)
Preparing to unpack .../base-passwd_3.5.37_amd64.deb ...
Unpacking base-passwd (3.5.37) ...
@tianon
tianon / Makefile
Last active August 29, 2015 14:16
generated, parameterized Dockerfiles
# ...
build:
./hack/generate-dockerfile.sh > Dockerfile
docker build -t docker .
# ...
diff --git a/gcc/content.md b/gcc/content.md
index 1397f19..2953720 100644
--- a/gcc/content.md
+++ b/gcc/content.md
@@ -1,10 +1,6 @@
# What is GCC?
-The GNU Compiler Collection (GCC) is a compiler system produced by the GNU
-Project that supports various programming languages. GCC is a key component of
-the GNU toolchain. The Free Software Foundation (FSF) distributes GCC under the
#!/bin/bash
set -e
str='docker run'
str+=' {{printf "--name=%q" .Name}}'
str+='{{if (eq .HostConfig.NetworkMode "bridge")}} {{printf "--hostname=%q" .Config.Hostname}}{{else}} {{printf "--net=%q" .HostConfig.NetworkMode}}{{end}}'
str+='{{if .Config.OpenStdin}} --interactive{{end}}'
str+='{{if .Config.Tty}} --tty{{end}}'
@tianon
tianon / Dockerfile
Last active August 29, 2015 14:14
heinous "cb" Dockerfile spitballing for paultag
FROM tianon/frankendebian
#FROM debian:experimental
# https://wiki.debian.org/BuilddSetup
# "Configure apt (don't install recommends, no pdiffs)."
RUN { \
echo 'APT::Install-Recommends 0;'; \
echo 'Acquire::PDiffs "false";'; \
} > /etc/apt/apt.conf.d/buildd
@tianon
tianon / busybox--list.diff
Created February 3, 2015 06:33
busybox upstream static compile versus buildroot
--- buildroot.txt 2015-02-02 23:32:14.769309302 -0700
+++ upstream.txt 2015-02-02 23:31:48.984899085 -0700
@@ -1,32 +1,48 @@
[
[[
+acpid
+add-shell
addgroup
adduser
-ar
@tianon
tianon / r-base.diff
Created January 30, 2015 22:14
git --no-pager diff 105fca2b42051c5cd0894da31839c99a9b7de320:debian/r-base 56cb59cc262e9d2c02f9e11cfacab65f0b659c5f:r-base
diff --git a/Dockerfile b/Dockerfile
index fc67592..ff25f25 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,45 +7,48 @@ MAINTAINER "Carl Boettiger and Dirk Eddelbuettel" rocker-maintainers@eddelbuette
## Set a default user. Available via runtime flag `--user docker`
## Add user to 'staff' group, granting them write privileges to /usr/local/lib/R/site.library
-## User should also have & own a home directory (for rstudio or linked volumes to work properly). (could use adduser to create this automatically instead)
+## User should also have & own a home directory (for rstudio or linked volumes to work properly).