dotfiles

config files and scripts at HOME.
git clone git://git.ricketyspace.net/dotfiles.git
Log | Files | Refs

commit dfb36c26467e6922d8362256ae34a46869090f3e
parent 773a5ba6aad88dc7ced8363a36c5a3cd8801f62d
Author: rsiddharth <s@ricketyspace.net>
Date:   Tue, 18 Apr 2017 23:16:29 +0000

Add .containers/mdl-style

Diffstat:
.containers/mdl-style | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/.containers/mdl-style b/.containers/mdl-style @@ -0,0 +1,24 @@ +#!/bin/sh + +PWD=`pwd` +CONTAINER="mdl-style" +SCRIPT="mdl-style.sh" + +if [ "$1" = "bootstrap" ]; then + echo 'debootstrap' + sudo debootstrap --arch=amd64 testing $CONTAINER + sudo systemd-nspawn -D ./$CONTAINER \ + --bind-ro=$PWD/$SCRIPT:/root/$SCRIPT \ + /root/$SCRIPT install +elif [ "$1" = "install" ]; then + # this is run inside the container + apt-get update +elif [ "$1" = "start" ]; then + # start slack inside the container + sudo systemd-nspawn --setenv=DISPLAY=:0.0 \ + -D ./$CONTAINER +else + echo 'Dunno what to do' + exit 1 +fi +