Skip to content

Commit

Permalink
Merge pull request #96 from jburel/centos7
Browse files Browse the repository at this point in the history
Centos7
  • Loading branch information
jburel committed Jul 5, 2024
2 parents b9dd160 + 0935a99 commit 0259b15
Show file tree
Hide file tree
Showing 22 changed files with 16 additions and 284 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
os: [centos7, ubuntu2004, ubuntu2204, debian10, rockylinux9]
os: [ubuntu2004, ubuntu2204, debian10, rockylinux9]
websession: [true, false]
webprefix: ["", "/omero"]
steps:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ ansible/*.retry
.DS_Store
ansible/.DS_Store
**/omeroweb-install-*
**/centos7*/**
**/ubuntu2004-*/**
**/ubuntu2204-*/**
**/debian10-*/**
Expand Down
2 changes: 1 addition & 1 deletion .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ elif [[ ${TRAVIS_OS_NAME} == 'osx' ]]; then

./omeroweb-install-osx-ice${ICEVER}

fi
fi
14 changes: 6 additions & 8 deletions .travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,16 @@ if [[ ${TRAVIS_OS_NAME:-} == 'linux' ]]; then
./test/test_services.sh
else
echo "Testing in VM"
if [[ ! ${OS} =~ "centos" ]]; then
if ${ANSIBLE:-false} ; then
(cd test && ./test_ansible.sh)
else
echo "Testing installation only in VM"
echo "cron is failing with: 'cron: can't lock /var/run/crond.pid, otherpid may be 1474: Resource temporarily unavailable'"
fi
if ${ANSIBLE:-false} ; then
(cd test && ./test_ansible.sh)
else
echo "Testing installation only in VM"
echo "cron is failing with: 'cron: can't lock /var/run/crond.pid, otherpid may be 1474: Resource temporarily unavailable'"
fi
fi

elif [[ ${TRAVIS_OS_NAME} == 'osx' ]]; then

./test/test_web.sh

fi
fi
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ Note: running tests on Mac OS X requires Docker for Mac (Docker Toolbox is not s
Copyright
---------

2016-2020, The Open Microscopy Environment
2016-2024, The Open Microscopy Environment
51 changes: 0 additions & 51 deletions ansible/group_vars/centos7-ice3.6

This file was deleted.

5 changes: 0 additions & 5 deletions ansible/hosts/centos7-ice3.6

This file was deleted.

4 changes: 2 additions & 2 deletions ansible/omeroweb-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@
dest: "{{ path }}/{{ prefix }}/nginx.repo"
when: (os | regex_findall("rocky"))

- name: Generate omero-web-systemd.service.sh (centos)
- name: Generate omero-web-systemd.service.sh (RockyLinux)
template:
src: "{{ os }}/omero-web-systemd.service.j2"
dest: "{{ path }}/{{ prefix }}/omero-web-systemd.service"
when: (os | regex_findall("centos")) or (os | regex_findall("rocky"))
when: (os | regex_findall("rocky"))
- name: Generate omero-web-init.d (ubuntu/debian)
template:
src: "{{ os }}/omero-web-init.d.j2"
Expand Down
33 changes: 0 additions & 33 deletions ansible/templates/centos7/daemon.sh.j2

This file was deleted.

15 changes: 0 additions & 15 deletions ansible/templates/centos7/deps.sh.j2

This file was deleted.

11 changes: 0 additions & 11 deletions ansible/templates/centos7/deps_ice3.6.sh.j2

This file was deleted.

19 changes: 0 additions & 19 deletions ansible/templates/centos7/deps_web_session.sh.j2

This file was deleted.

23 changes: 0 additions & 23 deletions ansible/templates/centos7/nginx.sh.j2

This file was deleted.

23 changes: 0 additions & 23 deletions ansible/templates/centos7/omero-web-systemd.service.j2

This file was deleted.

16 changes: 0 additions & 16 deletions ansible/templates/centos7/selinux.sh.j2

This file was deleted.

5 changes: 0 additions & 5 deletions ansible/templates/omeroweb-install-doc.txt.j2
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,6 @@
{{ style()|indent }}
{% endif %}

{% if os == 'centos7' %}
{% set path = os + '/omero-web-systemd.service.j2'%}
{% macro style() %}{% include path ignore missing with context %}{% endmacro %}
{{ style()|indent }}
{% endif %}
{% if os.startswith('ubuntu') or os.startswith('debian') %}
{% set path = os + '/omero-web-init.d.j2'%}
{% macro style() %}{% include path ignore missing with context %}{% endmacro %}
Expand Down
32 changes: 0 additions & 32 deletions test/Dockerfile_centos7

This file was deleted.

32 changes: 0 additions & 32 deletions test/Dockerfile_centos7_ansible

This file was deleted.

2 changes: 1 addition & 1 deletion test/docker-build-ansible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e -u -x

OS=${OS:-centos7}
OS=${OS:-rockylinux9}
ICEVER=${ICEVER:-3.6}

WEBPREFIX=${WEBPREFIX:-}
Expand Down
2 changes: 1 addition & 1 deletion test/docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e -u -x

OS=${OS:-centos7}
OS=${OS:-rockylinux9}
ICEVER=${ICEVER:-3.6}
WEBPORT=${WEBPORT:-}
WEBPREFIX=${WEBPREFIX:-}
Expand Down
4 changes: 2 additions & 2 deletions test/test_ansible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e -u -x

OS=${OS:-centos7}
OS=${OS:-rockylinux9}
ICEVER=${ICEVER:-3.6}

WEBPREFIX=${WEBPREFIX:-}
Expand Down Expand Up @@ -38,7 +38,7 @@ docker inspect -f {{.State.Running}} ${IMAGE}

# run playbook
cat << EOF > ${OS}-ice${ICEVER}
[centos7-ice3.6]
[rockylinux9-ice3.6]
${DOCKER_IP} ansible_port=2222 ansible_host=${DOCKER_IP} ansible_user=${OS} ansible_ssh_pass=${OS}
EOF

Expand Down
2 changes: 1 addition & 1 deletion test/test_services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e -u -x

OS=${OS:-centos7}
OS=${OS:-rockylinux9}
WEBSESSION=${WEBSESSION:-}
WEBPREFIX=${WEBPREFIX:-}
WEBPORT=${WEBPORT:-80}
Expand Down

0 comments on commit 0259b15

Please sign in to comment.