anchor.diff:  ADD maintain_cache.sh /etc/service/maintain_cache/run
   RUN chmod +x /etc/service/maintain_cache/run
   
  +# optional. if you want the ability to use key-based ssh login
  +
   ADD <your-ssh-key>.pub  /tmp/your_key
   RUN cat /tmp/your_key >> /root/.ssh/authorized_keys && rm -f /tmp/your_key
   
  +
  +# dependencies
  +
   RUN pip install Flask-Cache
  -RUN pip install graphite-influxdb
   RUN pip install raven blinker
   # for developing:
  -# RUN apt-get install -y tcpdump ngrep dnsutils memcached libmemcached-dev telnet
  +RUN apt-get install -y tcpdump ngrep dnsutils memcached libmemcached-dev telnet
  +
  +
  +# the best versions are often not in pypi, for now.
  +
  +# we need the caching support!
  +RUN pip uninstall -y graphite-api 
  +RUN pip install https://github.com/Dieterbe/graphite-api/tarball/cache
  +
  +# we need the latest version!
  +RUN pip uninstall -y graphite-influxdb
  +RUN pip install https://github.com/Vimeo/graphite-influxdb/tarball/master
  +
  +# we need the timeout fix https://github.com/influxdb/influxdb-python/pull/41
  +RUN pip uninstall -y influxdb
  +RUN pip install https://github.com/influxdb/influxdb-python/tarball/master
  +
   
   # Clean up APT when done.
   RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  
positive.code: RUN /etc/my_init.d/00_regen_ssh_host_keys.sh
  CMD ["/sbin/my_init"]
  
  
  ### taken from brutasse/graphite-api
  
  VOLUME /srv/graphite
  
  
negative.code: 
  RUN apt-get install -y build-essential python-dev libffi-dev libcairo2-dev python-pip
  
  RUN pip install gunicorn graphite-api[sentry,cyanite] graphite-influxdb
  
  EXPOSE 8000
  
  ####
  
  # add our config
  
  ONBUILD ADD graphite-api.yaml /etc/graphite-api.yaml
  ONBUILD RUN chmod 0644 /etc/graphite-api.yaml
  
  # init scripts
  
  RUN mkdir /etc/service/graphite-api
  ADD graphite-api.sh /etc/service/graphite-api/run
  