Skip to content

Commit 076300a

Browse files
SQUASH – fixes for apache#116
1 parent 24c59ee commit 076300a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docker/testing/ubuntu2004_j11.docker

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# limitations under the License.
1212

1313
FROM ubuntu:20.04
14-
MAINTAINER Apache Cassandra <[email protected]>
14+
LABEL org.opencontainers.image.authors="Apache Cassandra <[email protected]>"
1515

1616
# configure apt to retry downloads
1717
RUN echo 'APT::Acquire::Retries "99";' > /etc/apt/apt.conf.d/80-retries
@@ -84,6 +84,7 @@ RUN pip3 install --upgrade wheel
8484
# openjdk + ant
8585
RUN export DEBIAN_FRONTEND=noninteractive && \
8686
apt-get update && \
87+
apt-get install -y ca-certificates-java && \
8788
apt-get install -y --no-install-recommends openjdk-8-jdk openjdk-11-jdk openjdk-17-jdk ant ant-optional
8889

8990
# make Java 8 the default executable (we use to run all tests against Java 8)

docker/testing/ubuntu2004_j11_w_dependencies.docker

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212

1313
# base things off the testing image without dependencies warmed up
1414
FROM apache/cassandra-testing-ubuntu2004-java11
15-
MAINTAINER Apache Cassandra <[email protected]>
15+
LABEL org.opencontainers.image.authors="Apache Cassandra <[email protected]>"
1616

1717
USER cassandra
18-
ENV HOME /home/cassandra
18+
ENV HOME=/home/cassandra
1919
WORKDIR /home/cassandra
2020

2121
# Fetch the maven dependencies in advance since this tends to fail at runtime
@@ -47,7 +47,9 @@ RUN cd ~/cassandra && \
4747
git checkout origin/cassandra-2.1 && ant maven-ant-tasks-retrieve-build
4848

4949
# Initialize the CCM git repo as well as this also can fail to clone
50+
RUN rm -fr ~/.ccm/repository/_git_cache_apache
5051
RUN /bin/bash -c 'source ~/env3.6/bin/activate && \
52+
export LC_ALL=en_US.UTF-8 && export LANG=en_US.UTF-8 && export LANGUAGE=en_US.UTF-8 && \
5153
ccm create -n 1 -v git:cassandra-4.1 test && ccm remove test && \
5254
ccm create -n 1 -v git:cassandra-4.0 test && ccm remove test && \
5355
ccm create -n 1 -v git:cassandra-3.11 test && ccm remove test && \
@@ -72,3 +74,4 @@ RUN bash -c 'source ~/env3.6/bin/activate && \
7274
latest_4_1=$(curl -s https://downloads.apache.org/cassandra/ | grep -oP "(?<=href=\")4\.1\.[0-9]+(?=\")" | sort -V | tail -1 | cut -d"." -f3) && \
7375
for i in $(seq 1 $latest_4_1); do echo $i ; ccm create --quiet -n 1 -v binary:4.1.$i test && ccm remove test ; done'
7476

77+
RUN rm -rf ~/env*/src/cassandra-driver/.git /tmp/ccm-*.tar.gz

0 commit comments

Comments
 (0)