anchor.diff:  #
   
   # Base docker image
  -from fedora:latest
  +from fedora:22
   maintainer Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
   
   # Update
  
positive.code: run dnf install -y make gcc git sudo openssh-server
  run dnf install -y python-devel python-pip
  run dnf install -y supervisor
  
  # Install mock and rpmbuild
  run dnf install -y mock rpm-build
  
negative.code: # Install repository tools
  run dnf install -y createrepo
  
  # Create data area
  run mkdir -p /data/buildbot
  
  # Install Python modules
  run pip install --upgrade pip
  run pip install mock pyaml networkx twisted
  
  # Install buildbot
  run cd /data/buildbot; \
      git clone https://github.com/buildbot/buildbot src
  run cd /data/buildbot/src/slave; python setup.py install
  
  # Create buildbot configuration
  run cd /data/buildbot; \
      buildslave create-slave slave @MASTER@ @SLAVE@ password
  
  # Create buildbot service
  run /bin/echo -e "\
  [program:buildslave]\n\
  command=twistd --nodaemon --no_save -y buildbot.tac\n\
  directory=/data/buildbot/slave\n\
  environment=LC_ALL=\"C\"\n" > \
      /etc/supervisord.d/buildbot.ini
  
  # Run supervisord
  cmd ["/usr/bin/supervisord", "-n"]
  