Dockerfile 925 B

12345678910111213141516171819202122232425262728
  1. # VERSION: 0.22
  2. # DOCKER-VERSION 0.6.3
  3. # AUTHOR: Daniel Mizyrycki <daniel@dotcloud.com>
  4. # DESCRIPTION: Generate docker-ci daily report
  5. # COMMENTS: The build process is initiated by deployment.py
  6. Report configuration is passed through ./credentials.json at
  7. # deployment time.
  8. # TO_BUILD: docker build -t report .
  9. # TO_DEPLOY: docker run report
  10. from ubuntu:12.04
  11. maintainer Daniel Mizyrycki <daniel@dotcloud.com>
  12. env PYTHONPATH /report
  13. # Add report dependencies
  14. run echo 'deb http://archive.ubuntu.com/ubuntu precise main universe' > \
  15. /etc/apt/sources.list
  16. run apt-get update; apt-get install -y python2.7 python-pip ssh rsync
  17. # Set San Francisco timezone
  18. run echo "America/Los_Angeles" >/etc/timezone
  19. run dpkg-reconfigure --frontend noninteractive tzdata
  20. # Add report code and set default container command
  21. add . /report
  22. cmd "/report/report.py"