1- FROM php:8.2
1+ FROM php:8.4
22WORKDIR /tmp/cassandra-php-driver
33
44RUN apt update -y \
5- && apt install python3 pip cmake unzip mlocate build-essential git libuv1-dev libssl-dev libgmp-dev openssl zlib1g-dev libpcre3-dev openjdk-11-jre openjdk-11-jdk -y \
6- && pip install git+https://github.com/riptano/ccm.git@master
5+ && apt install python3 pip cmake unzip plocate build-essential git libuv1-dev libssl-dev libgmp-dev openssl zlib1g-dev libpcre2-dev -y \
6+ && pip install --break-system-packages setuptools git+https://github.com/apache/cassandra-ccm \
7+ && apt-get install -y wget gnupg ca-certificates \
8+ && mkdir -p /etc/apt/keyrings \
9+ && wget -O /etc/apt/keyrings/adoptium.gpg https://packages.adoptium.net/artifactory/api/gpg/key/public \
10+ && echo "deb [signed-by=/etc/apt/keyrings/adoptium.gpg] https://packages.adoptium.net/artifactory/deb bookworm main" > /etc/apt/sources.list.d/adoptium.list \
11+ && apt-get update \
12+ && apt-get install -y temurin-11-jdk \
13+ && rm -rf /var/lib/apt/lists/*
14+
15+ RUN mkdir -p ~/.ccm && echo '[repositories]\n cassandra = https://dlcdn.apache.org/cassandra' > ~/.ccm/config
716
817COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin
918RUN docker-php-source extract \
@@ -17,7 +26,7 @@ RUN cmake -DCMAKE_CXX_FLAGS="-fPIC" -DCASS_BUILD_STATIC=OFF -DCASS_BUILD_SHARED=
1726RUN docker-php-source extract
1827
1928COPY ext ext
20- ENV NO_INTERACTION true
29+ ENV NO_INTERACTION= true
2130RUN cd ext \
2231 && phpize \
2332 && LDFLAGS="-L/usr/local/lib" LIBS="-lssl -lz -luv -lm -lgmp -lstdc++" ./configure --with-cassandra=/usr/local \
@@ -38,10 +47,9 @@ ENV CI=$CI
3847COPY support support
3948COPY tests tests
4049COPY phpunit.xml .
41- ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64/
50+ ENV JAVA_HOME= /usr
4251RUN bin/phpunit --stop-on-error --stop-on-failure --testsuite unit
43- RUN bin/phpunit --stop-on-error --stop-on-failure --testsuite integration --exclude-group flaky
44- RUN bash -c "for i in {1..10}; do bin/phpunit --stop-on-error --stop-on-failure --testsuite integration --group flaky && exit 0 || sleep 1; done; exit 1;"
52+ RUN bin/phpunit --stop-on-error --stop-on-failure --testsuite integration
4553
4654COPY features features
4755COPY behat.yml .
0 commit comments