Demoexams
Перейти к навигации
Перейти к поиску
Machine Learning
fix script
#!/bin/bash useradd --create-home --shell /bin/bash -p exam1 exam1 useradd --create-home --shell /bin/bash -p exam2 exam2 userdel -r -f exam systemctl enable docker docker stop demoexam_container docker rm demoexam_container cat << EOF > /root/run-demoexam-1.sh #!/bin/bash docker run -it -e PORT=8081 -d --restart=always --name=demoexam_container_1 --network host nntc_jpnb /home/jovyan/.config/run.sh EOF cat << EOF > /root/run-demoexam-2.sh #!/bin/bash docker run -it -e PORT=8082 -d --restart=always --name=demoexam_container_2 --network host nntc_jpnb /home/jovyan/.config/run.sh EOF bash /root/run-demoexam-1.sh bash /root/run-demoexam-2.sh
reboot
URLs
exam1
http://localhost:8081/?token=nntc
exam2
http://localhost:8082/?token=nntc