This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$template LogentriesFormat,"TOKEN %HOSTNAME% %syslogtag%%msg%\n" | |
*.* @@api.logentries.com:10000;LogentriesFormat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
write_files: | |
- path: /home/core/journal2logentries.sh | |
permissions: '0744' | |
owner: root:root | |
content: | | |
#!/usr/bin/env bash | |
# CoreOS on Google Compute Engine: push systemd journal logs to logentries.com | |
# get your private token from logentries.com, see https://logentries.com/doc/input-token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tree | |
. | |
├── _blog | |
│ └── 2014-05-15-hello-world.md | |
├── _config.yml | |
├── _docs | |
│ └── howto-do-sth.md | |
├── _includes | |
│ └── head.html | |
├── _layouts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat Dockerfile | |
# 4.3.12 should probably be something like 4.3.10 or somesuch | |
# | |
FROM boot2docker/boot2docker | |
RUN apt-get install p7zip-full | |
RUN mkdir -p /vboxguest && \ | |
cd /vboxguest && \ | |
curl -L -o vboxguest.iso http://download.virtualbox.org/virtualbox/4.3.12/VBoxGuestAdditions_4.3.12.iso && \ | |
7z x vboxguest.iso -ir'!VBoxLinuxAdditions.run' && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
boot2docker ssh "sudo modprobe vboxsf && sudo mkdir -p $HOME && sudo mount -t vboxsf home $HOME" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://get.docker.io/builds/Darwin/x86_64/docker-1.0.1.tgz | |
tar -xvf docker-1.0.1.tgz | |
chmod +x usr/local/bin/docker | |
# optional: rm /usr/local/bin/docker | |
mv usr/local/bin/docker /usr/local/bin/docker | |
rm docker-1.0.1.tgz | |
rm -r usr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# if boot2docker is already installed with brew | |
brew uninstall boot2docker | |
brew uninstall boot2docker-cli | |
# install go (which is always a good idea) | |
brew install go | |
# export $GOPATH ~/go # or whatever | |
cd $GOPATH && mkdir src && mkdir pkg && mkdir bin | |
cd $GOPATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./build_docker.sh | |
$ cat Dockerfile | |
# using VirtualBox version 4.3.12 | |
FROM boot2docker/boot2docker | |
RUN apt-get install p7zip-full | |
RUN mkdir -p /vboxguest && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker build -t mattes/boot2docker-vbga --no-cache . | |
Sending build context to Docker daemon 224.3 kB | |
Sending build context to Docker daemon | |
Step 0 : FROM boot2docker/boot2docker | |
Pulling repository boot2docker/boot2docker | |
4bc43baa9b5d: Pulling dependent layers | |
d2d1bebeaee3: Pulling dependent layers | |
511136ea3c5a: Download complete | |
d1881793a057: Download complete |