From ede8f5691b452050078dcd29ab6289cf6681afdb Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Wed, 3 Jul 2024 15:31:46 +0100 Subject: [PATCH] remove centos7 --- linux/step01_centos7_deps.sh | 4 -- linux/step01_centos7_ice_deps.sh | 36 ------------- linux/step01_centos7_ice_venv.sh | 18 ------- linux/step01_centos7_init.sh | 4 -- linux/step01_centos7_pg_deps.sh | 91 -------------------------------- 5 files changed, 153 deletions(-) delete mode 100644 linux/step01_centos7_deps.sh delete mode 100644 linux/step01_centos7_ice_deps.sh delete mode 100644 linux/step01_centos7_ice_venv.sh delete mode 100644 linux/step01_centos7_init.sh delete mode 100644 linux/step01_centos7_pg_deps.sh diff --git a/linux/step01_centos7_deps.sh b/linux/step01_centos7_deps.sh deleted file mode 100644 index bbff744d..00000000 --- a/linux/step01_centos7_deps.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -yum -y install python3 -yum -y install openssl diff --git a/linux/step01_centos7_ice_deps.sh b/linux/step01_centos7_ice_deps.sh deleted file mode 100644 index 91306970..00000000 --- a/linux/step01_centos7_ice_deps.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -ICEVER=${ICEVER:-ice36} - -# Ice installation -if [ "$ICEVER" = "ice36" ]; then - #start-recommended - curl -sL https://zeroc.com/download/Ice/3.6/el7/zeroc-ice3.6.repo > \ - /etc/yum.repos.d/zeroc-ice3.6.repo - - yum -y install glacier2 \ - icebox \ - icegrid \ - icepatch2 \ - libfreeze3.6-c++ \ - libice3.6-c++ \ - libicestorm3.6 - - #end-recommended - # reset the locale - localedef -i en_US -f UTF-8 en_US.UTF-8 -elif [ "$ICEVER" = "ice36-devel" ]; then - curl -sL https://zeroc.com/download/Ice/3.6/el7/zeroc-ice3.6.repo > \ - /etc/yum.repos.d/zeroc-ice3.6.repo - - yum -y install glacier2 \ - icebox \ - icegrid \ - icepatch2 \ - libfreeze3.6-c++ \ - libice3.6-c++ \ - libicestorm3.6 \ - ice-all-devel - - localedef -i en_US -f UTF-8 en_US.UTF-8 -fi diff --git a/linux/step01_centos7_ice_venv.sh b/linux/step01_centos7_ice_venv.sh deleted file mode 100644 index 54b44c8b..00000000 --- a/linux/step01_centos7_ice_venv.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -set -e -u -x - -VENV_SERVER=${VENV_SERVER:-/opt/omero/server/venv3} -#start-ice-py -# Create a virtual env -python3 -mvenv $VENV_SERVER - -# Upgrade pip -$VENV_SERVER/bin/pip install --upgrade pip - -# Install the Ice Python binding -$VENV_SERVER/bin/pip install https://github.com/ome/zeroc-ice-py-centos7/releases/download/0.2.1/zeroc_ice-3.6.5-cp36-cp36m-linux_x86_64.whl - -# Install server dependencies -$VENV_SERVER/bin/pip install omero-server -#end-ice-py diff --git a/linux/step01_centos7_init.sh b/linux/step01_centos7_init.sh deleted file mode 100644 index 273d573e..00000000 --- a/linux/step01_centos7_init.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -yum -y install epel-release - -yum -y install unzip wget bc diff --git a/linux/step01_centos7_pg_deps.sh b/linux/step01_centos7_pg_deps.sh deleted file mode 100644 index c20d5fa8..00000000 --- a/linux/step01_centos7_pg_deps.sh +++ /dev/null @@ -1,91 +0,0 @@ -#!/bin/bash - -PGVER=${PGVER:-pg11} - - -#start-postgresql-installation-general -yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm -#end-postgresql-installation-general -if [ "$PGVER" = "pg11" ]; then - #start-recommended - yum -y install postgresql11-server postgresql11 - - if [ "${container:-}" = docker ]; then - su - postgres -c "/usr/pgsql-11/bin/initdb -D /var/lib/pgsql/11/data --encoding=UTF8" - echo "listen_addresses='*'" >> /var/lib/pgsql/11/data/postgresql.conf - else - PGSETUP_INITDB_OPTIONS=--encoding=UTF8 /usr/pgsql-11/bin/postgresql-11-setup initdb - fi - sed -i.bak -re 's/^(host.*)ident/\1md5/' /var/lib/pgsql/11/data/pg_hba.conf - if [ "${container:-}" = docker ]; then - sed -i 's/OOMScoreAdjust/#OOMScoreAdjust/' \ - /usr/lib/systemd/system/postgresql-11.service - fi - if [ "${container:-}" = docker ]; then - su - postgres -c "/usr/pgsql-11/bin/pg_ctl start -D /var/lib/pgsql/11/data -w" - else - systemctl start postgresql-11.service - fi - systemctl enable postgresql-11.service - #end-recommended -elif [ "$PGVER" = "pg12" ]; then - yum -y install postgresql12-server postgresql12 - - if [ "${container:-}" = docker ]; then - su - postgres -c "/usr/pgsql-12/bin/initdb -D /var/lib/pgsql/12/data --encoding=UTF8" - echo "listen_addresses='*'" >> /var/lib/pgsql/12/data/postgresql.conf - else - PGSETUP_INITDB_OPTIONS=--encoding=UTF8 /usr/pgsql-12/bin/postgresql-12-setup initdb - fi - sed -i.bak -re 's/^(host.*)ident/\1md5/' /var/lib/pgsql/12/data/pg_hba.conf - if [ "${container:-}" = docker ]; then - sed -i 's/OOMScoreAdjust/#OOMScoreAdjust/' \ - /usr/lib/systemd/system/postgresql-12.service - fi - if [ "${container:-}" = docker ]; then - su - postgres -c "/usr/pgsql-12/bin/pg_ctl start -D /var/lib/pgsql/12/data -w" - else - systemctl start postgresql-12.service - fi - systemctl enable postgresql-12.service -elif [ "$PGVER" = "pg13" ]; then - yum -y install postgresql13-server postgresql13 - - if [ "${container:-}" = docker ]; then - su - postgres -c "/usr/pgsql-13/bin/initdb -D /var/lib/pgsql/13/data --encoding=UTF8" - echo "listen_addresses='*'" >> /var/lib/pgsql/13/data/postgresql.conf - else - PGSETUP_INITDB_OPTIONS=--encoding=UTF8 /usr/pgsql-13/bin/postgresql-13-setup initdb - fi - sed -i.bak -re 's/^(host.*)ident/\1md5/' /var/lib/pgsql/13/data/pg_hba.conf - if [ "${container:-}" = docker ]; then - sed -i 's/OOMScoreAdjust/#OOMScoreAdjust/' \ - /usr/lib/systemd/system/postgresql-13.service - fi - if [ "${container:-}" = docker ]; then - su - postgres -c "/usr/pgsql-13/bin/pg_ctl start -D /var/lib/pgsql/13/data -w" - else - systemctl start postgresql-13.service - fi - systemctl enable postgresql-13.service -elif [ "$PGVER" = "pg14" ]; then - yum -y install postgresql14-server postgresql14 - - if [ "${container:-}" = docker ]; then - su - postgres -c "/usr/pgsql-14/bin/initdb -D /var/lib/pgsql/14/data --encoding=UTF8" - echo "listen_addresses='*'" >> /var/lib/pgsql/14/data/postgresql.conf - else - PGSETUP_INITDB_OPTIONS=--encoding=UTF8 /usr/pgsql-14/bin/postgresql-14-setup initdb - fi - sed -i.bak -re 's/^(host.*)ident/\1md5/' /var/lib/pgsql/14/data/pg_hba.conf - if [ "${container:-}" = docker ]; then - sed -i 's/OOMScoreAdjust/#OOMScoreAdjust/' \ - /usr/lib/systemd/system/postgresql-14.service - fi - if [ "${container:-}" = docker ]; then - su - postgres -c "/usr/pgsql-14/bin/pg_ctl start -D /var/lib/pgsql/14/data -w" - else - systemctl start postgresql-14.service - fi - systemctl enable postgresql-14.service -fi