I hereby claim:
- I am metalivedev on github.
- I am rufus (https://keybase.io/rufus) on keybase.
- I have a public key whose fingerprint is E398 6BAC 410D 21B7 CC46 9155 66B0 2926 00B1 B9FE
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
""" | |
Check all existing Docker containers for their mapped paths, and then purge any | |
zombie directories in docker's volumes directory which don't correspond to an | |
existing container. | |
FROM https://github.com/docker/docker/issues/6354#issuecomment-114688663 | |
Modified by metalivedev to work with Docker 1.6.x | |
""" | |
import logging | |
import os |
echo workqueue:workqueue_queue_work > /sys/kernel/debug/tracing/set_event | |
cat /sys/kernel/debug/tracing/trace_pipe > out.txt | |
# (Leave it running a couple of seconds, then Ctrl+C; this is just to flush the buffer) | |
# Do it again to get fresh info | |
cat /sys/kernel/debug/tracing/trace_pipe > out.txt | |
(Leave it running a couple of seconds, then Ctrl+C; this is to recover the data) | |
cut -d- -f2 out.txt | awk '{print $1}' | sort | uniq -c | sort -n | |
# Take a look at who's got the most instructions queued (first column) and kill them and their children | |
# Sam dumped something out of the cgroup to get the process list and ran xargs kill -9 |
$ curl -v -I https://dashboard.dotcloud.com | |
* About to connect() to dashboard.dotcloud.com port 443 (#0) | |
* Trying 184.73.159.228... connected | |
* Connected to dashboard.dotcloud.com (184.73.159.228) port 443 (#0) | |
* SSLv3, TLS handshake, Client hello (1): | |
* SSLv3, TLS handshake, Server hello (2): | |
* SSLv3, TLS handshake, CERT (11): | |
* SSLv3, TLS handshake, Server finished (14): | |
* SSLv3, TLS handshake, Client key exchange (16): | |
* SSLv3, TLS change cipher, Client hello (1): |
""" | |
Exports Issues from a specified repository to a CSV file | |
Uses basic authentication (Github username + password) to retrieve Issues | |
from a repository that username has access to. Supports Github API v3. | |
""" | |
import csv | |
import requests | |
mac$ VirtualBox -? | |
Oracle VM VirtualBox Manager 4.3.6 | |
(C) 2005-2013 Oracle Corporation | |
... | |
mac$ cd src/boot2docker/ | |
mac$ ./boot2docker init | |
mac$ ./boot2docker up | |
mac$ export DOCKER_HOST=tcp:// | |
mac$ ./docker version |
FROM ubuntu | |
# Add the Universe to the repo list | |
RUN echo 'deb http://us.archive.ubuntu.com/ubuntu/ precise universe' >> /etc/apt/sources.list | |
RUN echo 'deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe' >> /etc/apt/sources.list | |
# You might also need redis, nginx, postgres, and celeryd to work like production RTD. | |
# openssh-server is optional and just makes it easier to interact with the container later. | |
RUN apt-get update && apt-get install -y gcc git openssh-server python-pip python-dev libxml2-dev libxslt1-dev | |
RUN git clone http://github.com/rtfd/readthedocs.org.git | |
RUN cd readthedocs.org && pip install -r pip_requirements.txt |
import requests | |
import json | |
mytoken = 'SECRET_PERSONAL_TOKEN_SEE:https://github.com/settings/applications' | |
url = 'https://api.github.com/repos/dotcloud/docker' | |
addlabels = {} | |
labelarray = [ '/project/doc' ] #start with the docs label, and then any others for code | |
addlabels['docs'] = json.dumps( labelarray ) | |
# We're not going to add a second lable for code anymore | |
# since the core team will be watching all PRs. |
diff --git a/docs/sources/use/host_integration.rst b/docs/sources/use/host_integration.rst | |
index cc2f56a..47d9ea7 100644 | |
--- a/docs/sources/use/host_integration.rst | |
+++ b/docs/sources/use/host_integration.rst | |
@@ -2,67 +2,124 @@ | |
:description: How to generate scripts for upstart, systemd, etc. | |
:keywords: systemd, upstart, supervisor, docker, documentation, host integration | |
+ | |
+ |
Sample Dockerfile, then sample build output | |
#-------------- | |
FROM base | |
RUN echo Layer 0 >> layerfile.txt | |
RUN echo Layer 1 >> layerfile.txt | |
RUN echo Layer 2 >> layerfile.txt | |
RUN echo Layer 3 >> layerfile.txt | |
RUN echo Layer 4 >> layerfile.txt |