Skip to content

Instantly share code, notes, and snippets.

@ianmiell
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianmiell/f4c81ead21cd31a26ca3 to your computer and use it in GitHub Desktop.
Save ianmiell/f4c81ead21cd31a26ca3 to your computer and use it in GitHub Desktop.
# Build the ShutIt distro base image
# WARNING! You will need time, so leave this running while you get on with something useful and come back to it later.
apt-get update
apt-get -y install git python-pip
mkdir -p /opt/shutit
cd /opt/shutit
git clone https://github.com/ianmiell/shutit.git
git clone https://github.com/ianmiell/shutit-distro.git
cd shutit
pip install -r requirements.txt
find . | grep cnf$ | xargs chmod 0600
cd library/alfs/bin
export PATH=$PATH:/opt/shutit/shutit
echo 'export PATH=$PATH:/opt/shutit/shutit' >> ~/.bashrc
./build.sh
cd -
mv shutit/artifacts/lfs.tar.zx shutit-distro/base
cd shutit-distro/base
docker build --no-cache -t sd_base
docker run -t -i sd_base
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment