Dockerfile 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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. libpq-dev \
  13. python-dev \
  14. python-pip \
  15. siege \
  16. software-properties-common && \
  17. pip install \
  18. colorama==0.3.1 \
  19. docker==4.0.2 \
  20. MySQL-python \
  21. psutil \
  22. psycopg2-binary \
  23. pymongo \
  24. requests && \
  25. # Fix for docker-py trying to import one package from the wrong location
  26. cp -r /usr/local/lib/python2.7/dist-packages/backports/ssl_match_hostname \
  27. /usr/lib/python2.7/dist-packages/backports
  28. ENV FWROOT=/FrameworkBenchmarks PYTHONPATH=/FrameworkBenchmarks
  29. ENTRYPOINT ["python", "/FrameworkBenchmarks/toolset/run-tests.py"]