-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #274 from jburel/rocky
Rocky linux 9
- Loading branch information
Showing
12 changed files
with
169 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
|
||
set -e -u -x | ||
|
||
OMEROVER=${OMEROVER:-latest} | ||
|
||
. `dirname $0`/settings.env | ||
|
||
bash -eux step01_centos7_init.sh | ||
|
||
bash -eux step01_centos7_deps.sh | ||
|
||
# install java | ||
bash -eux step01_centos_java_deps.sh | ||
|
||
# install ice | ||
bash -eux step01_rocky9_ice_deps.sh | ||
|
||
# install Postgres | ||
bash -eux step01_rocky9_pg_deps.sh | ||
|
||
bash -eux step02_all_setup.sh | ||
|
||
bash -eux step03_all_postgres.sh | ||
|
||
bash -eux step01_rocky9_ice_venv.sh | ||
|
||
# Those steps are valid if an omero-server user exists | ||
# This might not be the case when used in the context of devspace | ||
if [ "$(getent passwd omero-server)" ]; then | ||
cp settings.env step04_all_omero.sh setup_omero_db.sh ~omero-server | ||
|
||
OMEROVER=$OMEROVER bash -eux step04_all_omero_install.sh | ||
|
||
su - omero-server -c " bash -eux step04_all_omero.sh" | ||
|
||
su - omero-server -c "bash setup_omero_db.sh" | ||
fi | ||
|
||
|
||
#If you don't want to use the systemd scripts you can start OMERO manually: | ||
#su - omero-server -c ". /home/omero-server/settings.env omero admin start" | ||
|
||
bash -eux step06_centos7_daemon.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
#start-recommended | ||
dnf config-manager --set-enabled crb | ||
yum -y install bzip2 expat libdb-cxx | ||
|
||
cd /tmp | ||
wget https://github.com/sbesson/zeroc-ice-rockylinux9-x86_64/releases/download/202307018/Ice-3.6.5-rockylinux9-x86_64.tar.gz | ||
tar xf Ice-3.6.5-rockylinux9-x86_64.tar.gz | ||
mv Ice-3.6.5 /opt/ice-3.6.5 | ||
echo /opt/ice-3.6.5/lib64 > /etc/ld.so.conf.d/ice-x86_64.conf | ||
ldconfig | ||
#end-recommended |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/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/sbesson/zeroc-ice-py-rockylinux9-x86_64/releases/download/20230719/zeroc_ice-3.6.5-cp39-cp39-linux_x86_64.whl | ||
|
||
# Install server dependencies | ||
$VENV_SERVER/bin/pip install omero-server | ||
#end-ice-py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
PGVER=${PGVER:-pg13} # pg 13 is installed by default | ||
|
||
#start-postgresql-installation-general | ||
|
||
#end-postgresql-installation-general | ||
#start-recommended | ||
yum -y install postgresql-server postgresql | ||
|
||
if [ -f /.dockerenv ]; then | ||
su - postgres -c "/usr/bin/initdb -D /var/lib/pgsql/data --encoding=UTF8" | ||
echo "listen_addresses='*'" >> /var/lib/pgsql/data/postgresql.conf | ||
else | ||
PGSETUP_INITDB_OPTIONS=--encoding=UTF8 /usr/bin/postgresql-setup --initdb | ||
fi | ||
sed -i.bak -re 's/^(host.*)ident/\1md5/' /var/lib/pgsql/data/pg_hba.conf | ||
|
||
if [ -f /.dockerenv ]; then | ||
su - postgres -c "/usr/bin/pg_ctl start -D /var/lib/pgsql/data -w" | ||
else | ||
systemctl start postgresql | ||
fi | ||
systemctl enable postgresql | ||
|
||
sed -i 's/ ident/ trust/g' /var/lib/pgsql/data/pg_hba.conf | ||
|
||
#end-recommended |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Dockerfile for testing the OMERO Linux installation instructions | ||
# Not intended for production use | ||
FROM rockylinux:9 | ||
MAINTAINER [email protected] | ||
|
||
ARG OMEROVER=latest | ||
ARG JAVAVER=openjdk11 | ||
ARG ICEVER=ice36 | ||
ARG PGVER=pg13 | ||
|
||
RUN touch /.dockerenv | ||
ADD omero-install-test.zip / | ||
RUN dnf -y install unzip && unzip omero-install-test.zip | ||
|
||
RUN cd omero-install-test && \ | ||
bash install_rocky9.sh | ||
|
||
ADD run.sh /home/omero-server/run.sh | ||
|
||
EXPOSE 80 4063 4064 | ||
CMD ["/bin/bash", "-e", "/home/omero-server/run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
su - postgres -c "/usr/bin/pg_ctl start -D /var/lib/pgsql/data -w" | ||
|
||
#service crond start # Doesn't work in Docker | ||
su - omero-server -c ". /home/omero-server/settings.env && omero admin start" | ||
if [ -t 1 ] ; then | ||
exec bash | ||
else | ||
exec tail -F /opt/omero/server/OMERO.server/var/log/* | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters