Skip to content

Instantly share code, notes, and snippets.

View jamtur01's full-sized avatar
💭
I may be slow to respond.

James Turnbull jamtur01

💭
I may be slow to respond.
View GitHub Profile
[syslog]
type = "LogstreamerInput"
log_directory = "/var/log"
file_match = 'auth\.log'
decoder = "RsyslogDecoder"
[RsyslogDecoder]
type = "SandboxDecoder"
filename = "lua_decoders/rsyslog.lua"
FROM ubuntu:14.04
MAINTAINER James Turnbull "[email protected]"
ENV REFRESHED_AT 2014-06-01
RUN apt-get update
RUN apt-get -y install redis-server redis-tools
EXPOSE 6379
ENTRYPOINT [ "/usr/bin/redis-server" ]
ServiceVirtualization.com: What were the main challenges and limitations of the basic Linux container specification, and how does Docker address these?
Turnbull: Containers have been around for a while. In Linux, they are most strongly represented by LXC. The big challenge with LXC was that it was written by kernel engineers and it's not really user frie. Hence you don't see a lot of LXC deployments aside from companies like Facebook, Etsy and Google with highly skilled engineering teams. Docker makes this easier by providing a UI around the kernel and provides a workflow for things you want to build in containers.
ServiceVirtualization.com: What have been the limitations of virtual machines for providing consistency across software development, QA and production environments?
Turnbull: The big challenge from the performance with a traditional VM is overhead. Every time you deploy a VM, you are deploying the hypervisor on top of the OS infrastructure. Up to 20 percent of the hardware is consumed by the hyp
set([6855, 6601, 6986, 6892, 6930, 7023, 6866, 7027, 7028, 7029, 7030, 6569, 6996, 6877])
make docs
cp ./VERSION docs/VERSION
echo "clirun" > docs/GIT_BRANCH
echo "" > docs/AWS_S3_BUCKET
echo "0757a56" > docs/GITCOMMIT
docker build -t "docker-docs:clirun" docs
2014/06/29 22:22:06 Post http://192.168.59.103:2375/build?rm=1&t=docker-docs%3Aclirun: dial tcp 192.168.59.103:2375: operation timed out
make: *** [docs-build] Error 1
1. Create the Jekyll base and builder images and the Apache image (once-off).
2. Create a container from our Jekyll image that holds our website source. This will be stored in a volume.
3. When we want to edit our site we can use the website source volume.
4. Create a container from our Jekyll builder image that will compile our new site and store it in a new volume.
5. Create a Docker container from our Apache image that uses the volume containing the compiled site and serve that out.
6. Rinse and repeat as the site needs to be updated.
https://github.com/jamtur01/docker/commit/d26bbc69acb0e5626fb316a8385f850fd4da8a69#diff-c5cdd93c466d876a816f20bbdb5b1b69
https://github.com/jamtur01/docker/commit/d26bbc69acb0e5626fb316a8385f850fd4da8a69#diff-43fa57e0f6be076558a8e9bb96cd9881
https://github.com/jamtur01/docker/commit/d26bbc69acb0e5626fb316a8385f850fd4da8a69#diff-a2714251c106475bd88ca79e77733911
https://github.com/jamtur01/docker/commit/d26bbc69acb0e5626fb316a8385f850fd4da8a69#diff-0f0df865ed9b0de3b080020cb7f490b4
https://github.com/jamtur01/docker/commit/d26bbc69acb0e5626fb316a8385f850fd4da8a69#diff-77bbbc90ae4435415f7a4f6007374f75
https://github.com/jamtur01/docker/commit/d26bbc69acb0e5626fb316a8385f850fd4da8a69#diff-aaab0d941fe76c5d3b1ae0fde62d2549
https://github.com/jamtur01/docker/commit/d26bbc69acb0e5626fb316a8385f850fd4da8a69#diff-f7322da46bf8be6deac882804f280f66
$ pulls --help
panic: runtime error: index out of range
goroutine 1 [running]:
runtime.panic(0x2d4b40, 0x683f37)
/usr/local/go/src/pkg/runtime/panic.c:266 +0xb6
github.com/dotcloud/gordon.parseMaintainer(0xc210099780, 0x36, 0xfe3)
/Users/james/go/src/github.com/dotcloud/gordon/review.go:167 +0x2b8
github.com/dotcloud/gordon.getMaintainerManagersIds(0xc2100c3db0, 0x2f, 0x2, 0xc2100c3db0, 0x2f, ...)
go get -u github.com/dotcloud/gordon/pulls
# github.com/dotcloud/gordon
../src/github.com/dotcloud/gordon/display.go:7: import /Users/james/go/pkg/darwin_amd64/github.com/aybabtme/color/brush.a: object is [darwin amd64 go1.2 X:none] expected [darwin amd64 go1.2.1 X:none]
$ docker -H=docker.lovedthanlost.net:4243 info
2014/04/14 09:12:01 malformed HTTP response "\x15\x03\x01\x00\x02\x02"
$ docker --tls -H=docker.lovedthanlost.net:4243 info
Containers: 33
Images: 104
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Dirs: 170
Execution Driver: native-0.1