2021-10-18 13:52:17 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-11-15 13:01:27 +00:00
|
|
|
set -o errexit
|
|
|
|
set -o nounset
|
|
|
|
set -o pipefail
|
|
|
|
|
2021-10-18 13:52:17 +00:00
|
|
|
yum update -y
|
|
|
|
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
2022-02-21 20:14:22 +00:00
|
|
|
yum install -y python36 python36-pip nginx gcc gcc-c++ python3-devel gettext
|
2021-10-18 13:52:17 +00:00
|
|
|
yum -y upgrade
|
|
|
|
python3 -m pip install -r /opt/clearml/fileserver/requirements.txt
|
|
|
|
python3 -m pip install -r /opt/clearml/apiserver/requirements.txt
|
|
|
|
mkdir -p /opt/clearml/log
|
|
|
|
mkdir -p /opt/clearml/config
|
|
|
|
ln -s /dev/stdout /var/log/nginx/access.log
|
|
|
|
ln -s /dev/stderr /var/log/nginx/error.log
|
|
|
|
mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.orig
|
|
|
|
mv /tmp/internal_files/clearml.conf.template /etc/nginx/clearml.conf.template
|
2022-03-22 15:21:58 +00:00
|
|
|
mv /tmp/internal_files/clearml_subpath.conf.template /etc/nginx/clearml_subpath.conf.template
|
2021-10-18 13:52:17 +00:00
|
|
|
yum clean all
|