blob: e30e67ad8291f0bb3081a84905294421ec5966df [file] [log] [blame]
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM openjdk:14-jdk-slim
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y html2text libsaxonb-java
COPY cassandra-builds/build-scripts/cassandra-test-report.xsl .
VOLUME ["/tmp"]
# xslt transform, convert to plaintext, and truncate (ASF ML limit is 1MB), to the cassandra-test-report.txt file
CMD ["/bin/sh", "-c", "saxonb-xslt -s:/tmp/TESTS-TestSuites.xml -xsl:cassandra-test-report.xsl | html2text -nobs -style pretty | head -c 900KB"]