Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Install to AlmaLinux 9 #15

Open
jvlehtonen opened this issue Jan 16, 2025 · 0 comments
Open

Install to AlmaLinux 9 #15

jvlehtonen opened this issue Jan 16, 2025 · 0 comments

Comments

@jvlehtonen
Copy link

Hi,

I did look at the install instructions and at least "CentOS 7" is now a bit dated.
I do know that at this point in time CSC has AlmaLinux-9 images.

I'm not fond of conda, and EPEL has some RPM packages, so I did come up with:

sudo dnf up                     # (almost) always a good thing
sudo dnf epel-release   # Configure EPEL
# This might miss some as I did not run on barebones image
sudo dnf install unzip rclone restic s3cmd python3-openstackclient  zstd libzstd libzstd-devel
# Python venv, with default AlmaLinux 9 Python (3.9)
# For more than one user, so not into $HOME
python3.9 -m venv /opt/allas
source /opt/allas/bin/activate
pip install --upgrade pip
pip install python-swiftclient
pip install crypt4gh
deactivate
# Get the allas-cli-utils
cd /opt      
git clone https://github.com/CSCfi/allas-cli-utils

For use, I created module. (I have package Lmod from EPEL.)

-- -*- lua -*-
--
-- Built 2025-01-16
--

whatis([[Name : allas-cli-utils]])
whatis([[Version : 2025-01]])
whatis([[Description : python3.9 venv for CSC Allas CLI]])

setenv("VIRTUAL_ENV","/opt/allas")
prepend_path("PATH","/opt/allas/bin")
append_path("PATH","/opt/allas-cli-utils")
set_alias("a-go","source /opt/allas-cli-utils/allas_conf")

Hence I could start using the utils with:

ml allas
a-go -u my_csc_username

However, I did not test yet beyond a-list.


Feel free to use, if it is any good.

Jukka V. Lehtonen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant