Skip to content

Instantly share code, notes, and snippets.

@crosbymichael
Created July 8, 2014 23:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crosbymichael/782c6ba3a456bf45be7b to your computer and use it in GitHub Desktop.
Save crosbymichael/782c6ba3a456bf45be7b to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
function RUN() {
nsinit exec -- "$@"
}
function COMMIT() {
git add -A
git commit -m "$1"
echo "--- COMMITED ---"
}
RUN apt-get update
COMMIT "update apt cache"
RUN apt-get install -y --no-install-recommends \
git \
libxml2-dev \
python \
build-essential \
make \
gcc \
python-dev \
locales \
python-pip
COMMIT "install python"
RUN dpkg-reconfigure locales && \
locale-gen C.UTF-8 && \
/usr/sbin/update-locale LANG=C.UTF-8
COMMIT "configure locales"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment