12345678910111213141516171819202122232425262728293031 |
- # Copyright Materialize, Inc. and contributors. All rights reserved.
- #
- # Use of this software is governed by the Business Source License
- # included in the LICENSE file at the root of this repository.
- #
- # As of the Change Date specified in that file, in accordance with
- # the Business Source License, use of this software will be governed
- # by the Apache License, Version 2.0.
- # Build and run SQLancer ported for Materialize
- MZFROM ubuntu-base
- WORKDIR /workdir
- RUN apt-get update && TZ=UTC DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
- ca-certificates \
- git \
- default-jdk \
- maven \
- && apt-get clean \
- && rm -rf /var/lib/apt/lists/* \
- && rm -rf /usr/share/doc/* /usr/share/man/* /usr/share/info/* /usr/share/locale/* /var/cache/* /var/log/*
- # Build SQLancer
- RUN git clone --depth=1 --single-branch https://github.com/sqlancer/sqlancer \
- && cd sqlancer \
- && rm -rf .git \
- && mvn package -DskipTests
- ENTRYPOINT ["/usr/bin/eatmydata", "/usr/bin/java", "-jar", "sqlancer/target/sqlancer-2.0.0.jar"]
|