Skip to content

Commit

Permalink
bring cassandra back
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreM102 committed Sep 11, 2020
1 parent 089959e commit c71140e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 14 deletions.
28 changes: 14 additions & 14 deletions php/scripts/extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,20 +105,20 @@ else
&& docker-php-source delete
fi

# docker-php-source extract \
# && curl -L -o /tmp/cassandra-cpp-driver.deb "https://downloads.datastax.com/cpp-driver/ubuntu/18.04/cassandra/v2.14.0/cassandra-cpp-driver_2.14.0-1_amd64.deb" \
# && curl -L -o /tmp/cassandra-cpp-driver-dev.deb "https://downloads.datastax.com/cpp-driver/ubuntu/18.04/cassandra/v2.14.0/cassandra-cpp-driver-dev_2.14.0-1_amd64.deb" \
# && dpkg -i /tmp/cassandra-cpp-driver.deb /tmp/cassandra-cpp-driver-dev.deb \
# && rm /tmp/cassandra-cpp-driver.deb /tmp/cassandra-cpp-driver-dev.deb \
# && curl -L -o /tmp/cassandra.tar.gz "https://github.com/datastax/php-driver/archive/24d85d9f1d.tar.gz" \
# && mkdir /tmp/cassandra \
# && tar xfz /tmp/cassandra.tar.gz --strip 1 -C /tmp/cassandra \
# && rm -r /tmp/cassandra.tar.gz \
# && curl -L "https://github.com/datastax/php-driver/pull/135.patch" | patch -p1 -d /tmp/cassandra -i - \
# && mv /tmp/cassandra/ext /usr/src/php/ext/cassandra \
# && rm -rf /tmp/cassandra \
# && docker-php-ext-install cassandra \
# && docker-php-source delete
docker-php-source extract \
&& curl -L -o /tmp/cassandra-cpp-driver.deb "https://downloads.datastax.com/cpp-driver/ubuntu/18.04/cassandra/v2.14.0/cassandra-cpp-driver_2.14.0-1_amd64.deb" \
&& curl -L -o /tmp/cassandra-cpp-driver-dev.deb "https://downloads.datastax.com/cpp-driver/ubuntu/18.04/cassandra/v2.14.0/cassandra-cpp-driver-dev_2.14.0-1_amd64.deb" \
&& dpkg -i /tmp/cassandra-cpp-driver.deb /tmp/cassandra-cpp-driver-dev.deb \
&& rm /tmp/cassandra-cpp-driver.deb /tmp/cassandra-cpp-driver-dev.deb \
&& curl -L -o /tmp/cassandra.tar.gz "https://github.com/datastax/php-driver/archive/24d85d9f1d.tar.gz" \
&& mkdir /tmp/cassandra \
&& tar xfz /tmp/cassandra.tar.gz --strip 1 -C /tmp/cassandra \
&& rm -r /tmp/cassandra.tar.gz \
&& curl -L "https://github.com/datastax/php-driver/pull/135.patch" | patch -p1 -d /tmp/cassandra -i - \
&& mv /tmp/cassandra/ext /usr/src/php/ext/cassandra \
&& rm -rf /tmp/cassandra \
&& docker-php-ext-install cassandra \
&& docker-php-source delete

if [[ $PHP_VERSION == "7.2" ]]; then
docker-php-source extract \
Expand Down
1 change: 1 addition & 0 deletions tests/goss-7.2-3-lts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ command:
- bcmath
- bz2
- calendar
- cassandra
- exif
- gd
- gmp
Expand Down
1 change: 1 addition & 0 deletions tests/goss-7.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ command:
- bcmath
- bz2
- calendar
- cassandra
- exif
- gd
- gmp
Expand Down
1 change: 1 addition & 0 deletions tests/goss-7.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ command:
- bcmath
- bz2
- calendar
- cassandra
- exif
- gd
- gmp
Expand Down
1 change: 1 addition & 0 deletions tests/goss-7.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ command:
- bcmath
- bz2
- calendar
- cassandra
- exif
- gd
- gmp
Expand Down
1 change: 1 addition & 0 deletions tests/goss-lts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ command:
- bcmath
- bz2
- calendar
- cassandra
- exif
- gd
- gmp
Expand Down

0 comments on commit c71140e

Please sign in to comment.