Skip to content

Instantly share code, notes, and snippets.

@mendeni
mendeni / gist:9198981
Created February 24, 2014 22:50
lxc-1.0.0-rackos.sh
#!/bin/bash -ex
apt-get -y install curl
curl http://pkg.ohthree.com/signing.gpg.key | apt-key add -
grep "deb http://pkg.ohthree.com/ onion-unstable main" /etc/apt/sources.list || (echo "deb http://pkg.ohthree.com/ onion-unstable main" >> /etc/apt/sources.list)
apt-get update
apt-get -y install git automake pkg-config libseccomp-dev libselinux1-dev rubygems libcap-dev
gem install fpm
@mendeni
mendeni / lxc.sh
Created February 19, 2014 20:14
build lxc .deb's from github.com/lxc/lxc master branch
#!/bin/bash -ex
DATETIME=`date +%Y%m%d%H%M`
apt-get -y install curl
curl http://pkg.ohthree.com/signing.gpg.key | apt-key add -
grep "deb http://pkg.ohthree.com/ onion-unstable main" /etc/apt/sources.list || (echo "deb http://pkg.ohthree.com/ onion-unstable main" >> /etc/apt/sources.list)
apt-get update
apt-get -y install git automake pkg-config libseccomp-dev rubygems
@mendeni
mendeni / seccomp.sew.sh
Created February 19, 2014 20:04
more seccomp testing with lxc-execute
#! /usr/bin/env bash
cat << EOF > /tmp/config-deny
lxc.seccomp = /tmp/whitelist-deny
EOF
cat << EOF > /tmp/config-allow
lxc.seccomp = /tmp/whitelist-allow
EOF
@mendeni
mendeni / config passed
Created February 19, 2014 16:15
lxc-execute
lxc-execute 1392826314.850 DEBUG lxc_start - sigchild handler set
lxc-execute 1392826314.850 INFO lxc_console - no console for lxc-execute.
lxc-execute 1392826314.850 INFO lxc_start - 'echotest' is initialized
lxc-execute 1392826314.860 DEBUG lxc_start - Not dropping cap_sys_boot or watching utmp
lxc-execute 1392826314.860 INFO lxc_cgroup - cgroup driver cgroupfs initing for echotest
lxc-execute 1392826314.862 DEBUG lxc_conf - Set exec command to cat
lxc-execute 1392826314.862 DEBUG lxc_conf - capabilities have been setup
lxc-execute 1392826314.862 NOTICE lxc_conf - 'echotest' is setup.
lxc-execute 1392826314.862 WARN lxc_start - inherited fd 4
lxc-execute 1392826314.862 WARN lxc_start - inherited fd 6
@mendeni
mendeni / gist:9083464
Created February 19, 2014 00:14
lxc.sh
apt-get -y install curl
curl http://pkg.ohthree.com/signing.gpg.key | apt-key add -
echo "deb http://pkg.ohthree.com/ onion-unstable main" >> /etc/apt/sources.list
apt-get update
apt-get -y install git automake pkg-config libseccomp-dev rubygems
gem install fpm
git clone https://github.com/lxc/lxc.git
@mendeni
mendeni / gist:8477759
Last active January 3, 2016 14:39
fork a repo
# -- fork the repo u want on github, then clone it:
git clone https://github.com/mendeni/containers.git
# -- add the remote upstream master
git remote add upstream https://github.com/rackerlabs/containers.git
# -- get upstream commits (but don't change working files)
git fetch upstream
# -- ensure you are on master