Skip to content

Instantly share code, notes, and snippets.

@justfortherec
Last active January 9, 2016 22:06
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 justfortherec/e1b3d53db8c27b6c6f76 to your computer and use it in GitHub Desktop.
Save justfortherec/e1b3d53db8c27b6c6f76 to your computer and use it in GitHub Desktop.
Setup script for Fairphone 2 build environment Docker image (https://hub.docker.com/r/jftr/fairphone2-build-env)
#!/bin/bash
# Configure path to Dockerfile and shared directory
FAIRPHONE_OS_PATH=`readlink -f "~/fairphone_os"`
# Download Docker image
sudo docker pull jftr/fairphone2-build-env
# Now your docker image is available.
# You can run the build instructions from
# http://code.fairphone.com/projects/fp-osos/dev/fairphone-os-build-instructions.html
# by executing
# $ docker run -v $FAIRPHONE_OS_PATH/:/var/fairphone_os/ jftr/fairphone2-build-env
# Or get an interactive shell to build manually with:
# $ docker run -v $FAIRPHONE_OS_PATH/:/var/fairphone_os/ -i -t jftr/fairphone2-build-env /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment