Dockerfile 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. FROM ubuntu:18.04
  2. ARG DEBIAN_FRONTEND=noninteractive
  3. # WARNING: DON'T PUT A SPACE AFTER ANY BACKSLASH OR APT WILL BREAK
  4. # One -q produces output suitable for logging (mostly hides
  5. # progress indicators)
  6. RUN apt-get -yqq update && apt-get -yqq install \
  7. -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
  8. cloc \
  9. dstat `# Collect resource usage statistics` \
  10. git-core \
  11. libmysqlclient-dev `# Needed for MySQL-python` \
  12. python-dev \
  13. python-pip \
  14. siege \
  15. software-properties-common && \
  16. pip install \
  17. colorama==0.3.1 \
  18. docker==4.0.2 \
  19. MySQL-python \
  20. psutil \
  21. psycopg2-binary \
  22. pymongo \
  23. requests && \
  24. # Fix for docker-py trying to import one package from the wrong location
  25. cp -r /usr/local/lib/python2.7/dist-packages/backports/ssl_match_hostname \
  26. /usr/lib/python2.7/dist-packages/backports
  27. ENV FWROOT=/FrameworkBenchmarks PYTHONPATH=/FrameworkBenchmarks
  28. ENTRYPOINT ["python", "/FrameworkBenchmarks/toolset/run-tests.py"]