echo -e "\033[31m 3. 下载组件 \033[0m"
\
&&
cd /opt \
&&
if
[ ! -d "/opt/jumpserver"
]; then git clone --depth=1 https://github.com/jumpserver/jumpserver.git; fi
\
&&
if
[ ! -f "/opt/luna.tar.gz"
]; then wget https://demo.jumpserver.org/download/luna/1.5.5/luna.tar.gz; tar xf luna.tar.gz; chown -R root:root luna; fi
\
&& yum -y install $(cat /opt/jumpserver/requirements/rpm_requirements.txt)
\
&&
echo -e "[easy_install]\nindex_url = https://mirrors.aliyun.com/pypi/simple/" > ~/.pydistutils.cfg \
&&
source /opt/py3/bin/activate \
&& pip install wheel -i https://mirrors.aliyun.com/pypi/simple/ \
&& pip install --upgrade pip setuptools -i https://mirrors.aliyun.com/pypi/simple/ \
&& pip install -r /opt/jumpserver/requirements/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ \
&& curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io \
&& systemctl restart docker \
&& docker pull jumpserver/jms_koko:1.5.5 \
&& docker pull jumpserver/jms_guacamole:1.5.5 \
&& rm -rf /etc/nginx/conf.d/default.conf \
&& wget -O /etc/nginx/conf.d/jumpserver.conf https://demo.jumpserver.org/download/nginx/conf.d/jumpserver.conf
|