Last active
April 24, 2018 12:16
-
-
Save carson-katri/92a81e80a51331aed34d304fb5b433d4 to your computer and use it in GitHub Desktop.
Dockerfile for RebbleOS
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
FROM ubuntu:16.04 | |
# Based on the Dockerfile by André Dumas | |
# Install dependencies | |
RUN apt-get update && apt-get install -y \ | |
curl \ | |
python2.7-dev \ | |
python-pip \ | |
libfreetype6 \ | |
gcc-arm-none-eabi | |
# QEMU dependencies | |
RUN apt-get install -y \ | |
libsdl1.2debian \ | |
libfdt1 \ | |
libpixman-1-0 | |
# Install Pebble Tool | |
ENV PEBBLE_TOOL_VERSION pebble-sdk-4.5-linux64 | |
ENV PEBBLE_PATH /root/pebble-dev | |
ENV PEBBLE_HOME $PEBBLE_PATH/$PEBBLE_TOOL_VERSION | |
ENV PATH $PEBBLE_HOME/bin:$PATH | |
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash - && apt-get install -y nodejs | |
RUN mkdir -p $PEBBLE_PATH | |
RUN curl -sSL https://s3.amazonaws.com/assets.getpebble.com/pebble-tool/$PEBBLE_TOOL_VERSION.tar.bz2 \ | |
| tar -v -C $PEBBLE_PATH -xj | |
WORKDIR $PEBBLE_HOME | |
RUN /bin/bash -c " \ | |
pip install virtualenv \ | |
&& virtualenv --no-site-packages .env \ | |
&& source .env/bin/activate \ | |
&& pip install -I 'six==1.9.0' \ | |
&& pip install -r requirements.txt \ | |
&& deactivate \ | |
" | |
RUN /bin/bash -c " \ | |
mkdir -p /root/.pebble-sdk \ | |
&& touch /root/.pebble-sdk/NO_TRACKING \ | |
" | |
# Install Pebble SDK | |
ENV PEBBLE_SDK_VERSION 4.3 | |
RUN yes | pebble sdk install $PEBBLE_SDK_VERSION | |
VOLUME /pebble | |
WORKDIR /pebble | |
ENTRYPOINT ["make"] | |
### First, build: | |
# docker build -t rebble-docker . | |
### Then, run: | |
# docker run \ | |
# -v /absolute/path/to/RebbleOS/:/pebble \ | |
# rebble-docker [Argument to `make`] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment