Last active
August 29, 2015 14:12
-
-
Save ianmiell/f4c81ead21cd31a26ca3 to your computer and use it in GitHub Desktop.
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 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