@@ -21,7 +21,9 @@ ARCHTYPE=`uname -m`
2121
2222dnf install -y \
2323 expect \
24- python2-pip
24+ python2-pip \
25+ php-pear \
26+ php-devel
2527
2628pip2 install pexpect==4.4.0
2729
@@ -37,7 +39,10 @@ pip2 install pexpect==4.4.0
3739# be installed in the same container. In a production deployment they may be installed
3840# on separate hosts.
3941# ------------------------
40- dnf install -y https://github.com/ubccr/xdmod/releases/download/v10.0.0/xdmod-10.0.0-1.0.beta1.el8.noarch.rpm
42+ dnf install -y https://github.com/ubccr/xdmod/releases/download/v10.0.0-beta4-el8/xdmod-10.0.0-1.4.beta4.el8.noarch.rpm \
43+ https://github.com/ubccr/xdmod-ondemand/releases/download/v10.0.0/xdmod-ondemand-10.0.0-1.0.beta1.el8.noarch.rpm \
44+ https://github.com/ubccr/xdmod/releases/download/v10.0.0-beta4-el8/xdmod-supremm-10.0.0-1.4.beta4.el8.noarch.rpm \
45+ https://github.com/ubccr/supremm/releases/download/2.0.0-beta3/supremm-2.0.0-1.0_beta3.el8.x86_64.rpm
4146
4247# ------------------------
4348# The Job Performance software uses MongoDB to store the job-level performance
@@ -49,7 +54,15 @@ dnf install -y https://github.com/ubccr/xdmod/releases/download/v10.0.0/xdmod-10
4954dnf install -y \
5055 https://repo.mongodb.org/yum/redhat/8/mongodb-org/5.0/${ARCHTYPE} /RPMS/mongodb-org-shell-5.0.9-1.el8.${ARCHTYPE} .rpm
5156
52- pip3 install pymongo --upgrade
57+
58+
59+ # ------------------------
60+ #
61+ # ------------------------
62+ pecl install mongodb
63+ echo " extension=mongodb.so" >> /etc/php.d/40-mongodb.ini
64+
65+ pip3 install pymongo==3.7.0 --upgrade
5366pip2 install pymongo --upgrade
5467
5568# ------------------------
@@ -74,6 +87,14 @@ sed -i 's/.*date.timezone[[:space:]]*=.*/date.timezone = UTC/' /etc/php.ini
7487# ------------------------
7588rm -f /etc/httpd/conf.d/ssl.conf
7689
90+ # ------------------------
91+ # We need to make sure that we have access to this file so that SSO works.
92+ # ------------------------
93+ if [[ -f /etc/pki/tls/private/localhost.key ]]; then
94+ chown root:apache /etc/pki/tls/private/localhost.key
95+ chmod 750 /etc/pki/tls/private/localhost.key
96+ fi
97+
7798# ------------------------
7899# These commands remove cached files to reduce the overall image size.
79100# ------------------------
0 commit comments