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

Debugging CentOS 7 #71

Closed
wants to merge 14 commits into from
21 changes: 1 addition & 20 deletions .github/workflows/build-neuron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,32 +74,13 @@ jobs:
UNPRIVILEGED_USER: runner # User created+used inside Docker containers
# Extra software collections to be installed and enabled on CentOS7
SOFTWARE_COLLECTIONS_centos_7: devtoolset-9 rh-git218 rh-python38
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: 'true'

strategy:
matrix:
os:
# GitHub Actions MacOS 13 runner
- { vm: macos-13, flavour: macOS }
# GitHub Actions MacOS 12 runner
- { vm: macos-12, flavour: macOS }
# CentOS7 Docker image
- { vm: ubuntu-latest, container: "centos:7", flavour: redhat }
# Alma Linux 8 Docker image
- { vm: ubuntu-latest, container: "almalinux:8.10", flavour: redhat }
# CentOS Stream 9 Docker image
- { vm: ubuntu-latest, container: "quay.io/centos/centos:stream9", flavour: redhat }
# Fedora 37 Docker image
- { vm: ubuntu-latest, container: "fedora:37", flavour: redhat }
# Fedora Latest (38, at time of writing) Docker image
- { vm: ubuntu-latest, container: "fedora:latest", flavour: redhat }
# Ubuntu 20.04 Docker image
- { vm: ubuntu-latest, container: "ubuntu:20.04", flavour: debian }
# Ubuntu Latest (22.04, at time of writing) Docker image
- { vm: ubuntu-latest, container: "ubuntu:latest", flavour: debian }
# Debian Bullseye (11) Docker image
- { vm: ubuntu-latest, container: "debian:bullseye", flavour: debian }
# At the time of writing, Debian Bookworm (12) Docker image
- { vm: ubuntu-latest, container: "debian:stable", flavour: debian }
branch_or_tag_and_default_wheel: ${{ fromJson(needs.provide_version_matrix.outputs.matrix) }}
fail-fast: false

Expand Down
2 changes: 1 addition & 1 deletion scripts/buildNeuron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ else
pip install --upgrade plotly "ipywidgets>=7.0.0"
fi
if [[ -f external/nmodl/requirements.txt ]]; then
pip install --upgrade -r external/nmodl/requirements.txt
pip install --upgrade -r external/nmodl/requirements.txt 'numpy<2'
fi
# Needed for installation of older NEURON versions with Python 12
pip install --upgrade setuptools
Expand Down
50 changes: 50 additions & 0 deletions scripts/install_redhat_centos_7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,56 @@
# Use MPICH instead of OpenMPI on CentOS7, see #51.
# This variable will be read by install_redhat.sh
mpi_lib=mpich-devel

# CentOS 7 is EOL as of 2024-06-30, so we need to use the vault
contents=$(cat << EOF
[base]
name=CentOS-\$releasever - Base
baseurl=http://vault.centos.org/7.9.2009/os/\$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[updates]
name=CentOS-\$releasever - Updates
baseurl=http://vault.centos.org/7.9.2009/updates/\$basearch/
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[extras]
name=CentOS-\$releasever - Extras
baseurl=http://vault.centos.org/7.9.2009/extras/\$basearch/
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[centosplus]
name=CentOS-\$releasever - Plus
baseurl=http://vault.centos.org/7.9.2009/centosplus/\$basearch/
gpgcheck=0
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[centos-sclo-rh]
name=CentOS-\$releasever - SCLo rh
baseurl=http://vault.centos.org/7.9.2009/sclo/\$basearch/rh/
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[centos-sclo-sclo]
name=CentOS-\$releasever - SCLo sclo
baseurl=http://vault.centos.org/7.9.2009/sclo/\$basearch/sclo/
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
EOF
)
echo "${contents}" > /etc/yum.repos.d/CentOS-Base.repo
curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 https://vault.centos.org/RPM-GPG-KEY-CentOS-7
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
yum clean all
yum makecache

# actually install the packages
# EPEL is needed to get CMake 3 in CentOS7
# SCL is needed to get a modern toolchain in CentOS7
yum install -y epel-release centos-release-scl centos-release-scl-rh
Expand Down
Loading