Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

medusa offline install needs an update #665

Closed
paayers opened this issue Oct 9, 2023 · 3 comments · Fixed by #679
Closed

medusa offline install needs an update #665

paayers opened this issue Oct 9, 2023 · 3 comments · Fixed by #679
Assignees
Labels
done Issues in the state 'done'

Comments

@paayers
Copy link

paayers commented Oct 9, 2023

Project board link

The offline install for Medusa is here:

https://github.com/thelastpickle/cassandra-medusa/blob/master/docs/Installation.md#offline-installation

The current RHEL/centos instructions do not work, but I’ve verified the following approach works:

install python3 and create a new virtual environment:
sudo python3 -m venv test

move into the created directory:
cd test

activate the new environment:
source bin/activate

next, upgrade pip/setuptools:
sudo bin/pip3 install --upgrade pip
sudo bin/pip3 install --upgrade pip setuptools

now, install medusa:
sudo bin/pip3 install cassandra-medusa

move out of the created directory:
cd ..

once the install is successful, create the requirements.txt file containing dependencies:
sudo test/bin/pip3 freeze > requirements.txt

create a new dir called medusa_requirements:
mkdir medusa_requirements

using the requirements.txt file, download all the included files into the new directory:
sudo test/bin/pip3 download -r requirements.txt -d medusa_requirements

now move the requirements.txt file into the medusa_requirements directory:
mv requirements.txt medusa_requirements/

now tar up the contents of the medusa_requirements directory:
sudo tar -zcf medusa_reqs.tar.gz medusa_requirements/
Now you should be able to transfer the medusa_reqs.tar.gz tarball to your env with no internet access.
Once transferred, unzip the files and install the libraries, for example:

tar -zxf medusa_reqs.tar.gz
pip3 install -r medusa_requirements/requirements.txt --no-index --find-links medusa_requirements

@paayers
Copy link
Author

paayers commented Oct 9, 2023

Jira for reference in case it's needed:
https://datastax.jira.com/browse/DOC-4071

@adejanovski adejanovski moved this to Product Backlog in K8ssandra Oct 11, 2023
@adejanovski adejanovski added the product-backlog Issues in the state 'product-backlog' label Oct 11, 2023
@rzvoncek
Copy link
Contributor

rzvoncek commented Mar 5, 2024

Relates to #555 .

@rzvoncek rzvoncek moved this from Product Backlog to Ready For Review in K8ssandra Mar 5, 2024
@adejanovski adejanovski added ready-for-review Issues in the state 'ready-for-review' and removed product-backlog Issues in the state 'product-backlog' labels Mar 5, 2024
@adejanovski adejanovski moved this from Ready For Review to Review in K8ssandra Mar 6, 2024
@adejanovski adejanovski added review Issues in the state 'review' and removed ready-for-review Issues in the state 'ready-for-review' labels Mar 6, 2024
@adejanovski adejanovski linked a pull request Mar 6, 2024 that will close this issue
@rzvoncek
Copy link
Contributor

rzvoncek commented Mar 6, 2024

I've updated the offline / RHEL installation docs in #555.

@github-project-automation github-project-automation bot moved this from Review to Done in K8ssandra Mar 6, 2024
@adejanovski adejanovski added done Issues in the state 'done' and removed review Issues in the state 'review' labels Mar 6, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
done Issues in the state 'done'
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants