title: How to run a Python web App for Raspberry Pi locally on Mac OSX
body: <p>This is a pretty specific question, but perhaps there are ideas in here which are more generally useful. Here goes:</p>
  
  <p>There's an open source media presentation program for Raspberry Pi - allows you to hook up a Pi to a TV and upload images to display on the TV. Repo here: <a href="https://github.com/wireload/screenly-ose" rel="nofollow">https://github.com/wireload/screenly-ose</a></p>
  
  <p>Now, I want to fork this repo and make a few custom UI changes for a project that I'm working on, but to do so, I'll have to get it running locally on my environment. And this is where the issue arises. </p>
  
  <p>So the application is a web app written primarily in Python which runs on the Raspberry Pi with Docker. </p>
  
  <p>I can't seem to get a local version of this app running, either with docker or without. Here is what I've tried so far:</p>
  
  <ol>
  <li>Run the app directly. The contents of the dockerfile are as follows (lines commented out in the original file have been turned into bold headers by SO auto-formatting, apologies for being hard to read): </li>
  </ol>
  
  <p>-</p>
  
  <pre><code>FROM debian:wheezy
  MAINTAINER Viktor Petersson &lt;vpetersson@wireload.net&gt;
  
  RUN apt-get update &amp;&amp; \
      apt-get -y install git-core net-tools python-pip python-netifaces python-simplejson python-imaging python-dev sqlite3 &amp;&amp; \
      apt-get clean
  
  # Install Python requirements
  ADD requirements.txt /tmp/requirements.txt
  RUN pip install -r /tmp/requirements.txt
  
  # Create runtime user
  RUN useradd pi
  
  # Install config file and file structure
  RUN mkdir -p /home/pi/.screenly /home/pi/screenly /home/pi/screenly_assets
  COPY misc/screenly.conf /home/pi/.screenly/screenly.conf
  RUN chown -R pi:pi /home/pi
  
  # Copy in code base
  COPY . /home/pi/screenly
  
  USER pi
  WORKDIR /home/pi/screenly
  
  EXPOSE 8080
  VOLUME /home/pi/screenly
  
  CMD python server.py
  </code></pre>
  
  <p>So I went through and just installed all the requirements by hand, but when I run <code>python server.py 8080</code> there is nothing at localhost:8080</p>
  
  <ol start="2">
  <li>Set up docker on OSX with boot2docker and a Linux VM. Then I go into terminal, navigate to the correct folder, and run <code>docker build -t my_app_name .</code></li>
  </ol>
  
  <p>This looks promising at first, but after spending 20 minutes downloading 200MB+ worth of dependencies, it returns an error.</p>
  
  <ol start="3">
  <li>Then I tried Kitematic, the GUI app for docker, but this hangs at 99% of the initial setup, every time. </li>
  </ol>
  
  <p>Have been trying to get this application up and running all day. Would appreciate any advice or even being pointed in the correct direction. </p>
  
  <p>Thank you. </p>