Skip to content

Commit

Permalink
roachprod: remove unused install targets
Browse files Browse the repository at this point in the history
The following install targets are removed in this commit:

* `cassandra`: this should have been removed along with cockroachdb#64029.
* `charybdefs`: this is also no longer used and should have been
  removed along with cockroachdb#102492.
* `confluent`: only cdc tests would use this, and they implement their
  own logic to install `confluent`. In the future, we can consider
  including that logic in roachprod itself as part of `Install`, but
  that can be done in the future separately.
* `tools`: this target doesn't work, which indicates no one has been
  using it.

Epic: none

Release note: None
  • Loading branch information
renatolabs committed Apr 12, 2024
1 parent 93cf9fc commit c6809e4
Showing 1 changed file with 0 additions and 73 deletions.
73 changes: 0 additions & 73 deletions pkg/roachprod/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,67 +22,6 @@ import (
)

var installCmds = map[string]string{
"cassandra": `
echo "deb http://www.apache.org/dist/cassandra/debian 311x main" | \
sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list;
curl https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -;
sudo apt-get update;
sudo apt-get install -y cassandra;
sudo service cassandra stop;
`,

"charybdefs": `
thrift_dir="/opt/thrift"
if [ ! -f "/usr/bin/thrift" ]; then
sudo apt-get update;
sudo apt-get install -qy automake bison flex g++ git libboost-all-dev libevent-dev libssl-dev libtool make pkg-config python-setuptools libglib2.0-dev python2 python-six
sudo mkdir -p "${thrift_dir}"
sudo chmod 777 "${thrift_dir}"
cd "${thrift_dir}"
curl "https://archive.apache.org/dist/thrift/0.13.0/thrift-0.13.0.tar.gz" | sudo tar xvz --strip-components 1
sudo ./configure --prefix=/usr
sudo make -j$(nproc)
sudo make install
(cd "${thrift_dir}/lib/py" && sudo python2 setup.py install)
fi
charybde_dir="/opt/charybdefs"
nemesis_path="${charybde_dir}/charybdefs-nemesis"
if [ ! -f "${nemesis_path}" ]; then
sudo apt-get install -qy build-essential cmake libfuse-dev fuse
sudo rm -rf "${charybde_dir}" "${nemesis_path}" /usr/local/bin/charybdefs{,-nemesis}
sudo mkdir -p "${charybde_dir}"
sudo chmod 777 "${charybde_dir}"
git clone --depth 1 --branch crl "https://github.com/cockroachdb/charybdefs.git" "${charybde_dir}"
cd "${charybde_dir}"
thrift -r --gen cpp server.thrift
cmake CMakeLists.txt
make -j$(nproc)
sudo modprobe fuse
sudo ln -s "${charybde_dir}/charybdefs" /usr/local/bin/charybdefs
cat > "${nemesis_path}" <<EOF
#!/bin/bash
cd /opt/charybdefs/cookbook
./recipes "\$@"
EOF
chmod +x "${nemesis_path}"
sudo ln -s "${nemesis_path}" /usr/local/bin/charybdefs-nemesis
fi
`,

"confluent": `
sudo apt-get update;
sudo apt-get install -y default-jdk-headless;
curl https://packages.confluent.io/archive/5.0/confluent-oss-5.0.0-2.11.tar.gz | sudo tar -C /usr/local -xz;
sudo ln -s /usr/local/confluent-5.0.0 /usr/local/confluent;
`,

// Docker installation steps are lifted from https://docs.docker.com/engine/install/ubuntu/
"docker": `
# Add Docker's official GPG key:
sudo apt-get update;
Expand Down Expand Up @@ -135,18 +74,6 @@ sudo apt-get update;
sudo apt-get install -y sysbench;
`,

"tools": `
sudo apt-get update;
sudo apt-get install -y \
fio \
iftop \
iotop \
sysstat \
linux-tools-common \
linux-tools-4.10.0-35-generic \
linux-cloud-tools-4.10.0-35-generic;
`,

"zfs": `
sudo apt-get update;
sudo apt-get install -y \
Expand Down

0 comments on commit c6809e4

Please sign in to comment.