Dockerfile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Use of this software is governed by the Business Source License
  4. # included in the LICENSE file at the root of this repository.
  5. #
  6. # As of the Change Date specified in that file, in accordance with
  7. # the Business Source License, use of this software will be governed
  8. # by the Apache License, Version 2.0.
  9. # Build and run SQLsmith, a random query generator, ported for Materialize
  10. MZFROM ubuntu-base
  11. # Git dependencies
  12. RUN apt-get update && TZ=UTC DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
  13. build-essential \
  14. ca-certificates \
  15. git \
  16. libdbi-perl \
  17. libdbd-pg-perl \
  18. libparse-yapp-perl \
  19. postgresql-client \
  20. && apt-get clean \
  21. && rm -rf /var/lib/apt/lists/* \
  22. && rm -rf /usr/share/doc/* /usr/share/man/* /usr/share/info/* /usr/share/locale/* /var/cache/* /var/log/*
  23. RUN perl -MCPAN -e 'install DBIx::MyParsePP'
  24. RUN git clone --single-branch https://github.com/MaterializeInc/RQG.git \
  25. && cd RQG \
  26. && git checkout 4fe4e6f09f9599ce9f8ffd3f75d593b20518cc50 \
  27. && rm -rf .git
  28. ENTRYPOINT ["/usr/bin/eatmydata", "/usr/bin/perl"]
  29. WORKDIR RQG