Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Cassandra SQL driver to be built by Jenkis (#2898)
* Add Cassandra SQL driver to be built by Jenkis * rlm_sql_cassandra: Some functions were deprecated in lib 2.9
- Loading branch information
Showing
3 changed files
with
87 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,42 @@ | |||
#!/bin/sh -e | |||
|
|||
libuv_ver="1.29.1" | |||
libuv_pkg="libuv1_${libuv_ver}-1_amd64.deb" | |||
|
|||
cassandra_ver="2.13.0" | |||
cassandra_pkgs="cassandra-cpp-driver-dbg_${cassandra_ver}-1_amd64.deb | |||
cassandra-cpp-driver-dev_${cassandra_ver}-1_amd64.deb | |||
cassandra-cpp-driver_${cassandra_ver}-1_amd64.deb" | |||
|
|||
ubuntu_ver="$(lsb_release -rs)" | |||
tmp_dir="/tmp/cassandra-$$" | |||
mkdir -p $tmp_dir | |||
|
|||
do_exit() { | |||
rm -rf $tmp_dir | |||
exit $1 | |||
} | |||
|
|||
# Libuv | |||
libuv_url="https://downloads.datastax.com/cpp-driver/ubuntu/${ubuntu_ver}/dependencies/libuv/v${libuv_ver}/${libuv_pkg}" | |||
if ! wget -q -O "${tmp_dir}/${libuv_pkg}" "${libuv_url}"; then | |||
echo "ERROR: Problems to fetch ${libuv_url}" | |||
do_exit 1 | |||
fi | |||
|
|||
# Cassandra sdk | |||
for _deb in ${cassandra_pkgs}; do | |||
_url="https://downloads.datastax.com/cpp-driver/ubuntu/${ubuntu_ver}/cassandra/v${cassandra_ver}/${_deb}" | |||
|
|||
if ! wget -q -O "${tmp_dir}/${_deb}" "${_url}"; then | |||
echo "ERROR: Problems to fetch ${_url}" | |||
do_exit 1 | |||
fi | |||
done | |||
|
|||
if ! dpkg -i ${tmp_dir}/*.deb; then | |||
echo "ERROR: Problems to install ${tmp_dir}/*.deb" | |||
do_exit 1 | |||
fi | |||
|
|||
do_exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters