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
  • 16:54 (UTC -07:00)
  • X @tianon
View GitHub Profile
+ cd src/github.com/cpuguy83/docker-jruby
+ git reset -q HEAD
+ git checkout -q -- .
+ git clean -dfxq
+ git checkout -q 384671d2c1b26465a38c6f9e645024b3ab217bad --
+ cd src/github.com/cpuguy83/docker-jruby/9000
+ git-set-mtimes
+ docker build -t jruby:dev src/github.com/cpuguy83/docker-jruby/9000
Sending build context to Docker daemon 2.56 kB
Sending build context to Docker daemon
#!/bin/bash
set -e
# hello-world latest ef872312fe1b 3 months ago 910 B
# hello-world latest ef872312fe1bbc5e05aae626791a47ee9b032efa8f3bda39cc0be7b56bfe59b9 3 months ago 910 B
# debian latest f6fab3b798be 10 weeks ago 85.1 MB
# debian latest f6fab3b798be3174f45aa1eb731f8182705555f89c9026d8c1ef230cbf8301dd 10 weeks ago 85.1 MB
usage() {
@tianon
tianon / diff.patch
Last active August 29, 2015 14:14
vendor.sh changes from 1.3.3 to master
diff --git a/hack/vendor.sh b/project/vendor.sh
similarity index 87%
rename from hack/vendor.sh
rename to project/vendor.sh
index 7ecb1a5..b60e42f 100755
--- a/hack/vendor.sh
+++ b/project/vendor.sh
@@ -39,7 +39,7 @@ clone() {
echo done
}
@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).
@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 / 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
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
@tianon
tianon / Makefile
Last active August 29, 2015 14:16
generated, parameterized Dockerfiles
# ...
build:
./hack/generate-dockerfile.sh > Dockerfile
docker build -t docker .
# ...
@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
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