Make sure ssh is is enabled on your RaspberryPi. Then ssh into your RaspberryPi with the following command.
ssh <username>@<hostname>.localDownload and unzip Yun2Infinity. Once dowloaded and unzipped return to this tutorial.
change the django/yun2inf_project/yun2inf_project/settings.py and input your domain into the allowed host variable and turn off debg.
DEBUG = False ALLOWED_HOSTS = [".<hostname>.local"]Go to the directory django/yun2inf_project and build the image with the following command.
sudo docker build . -t chenkianwee/yun2inf:<x.x.x>On your server install docker and build the new image. After you have build the new docker image for yun2inf. Make the appropriate changes in the ‘setup_yun2inf.sh’.
echo '------------------------------------------------------' echo 'Trying to start django container now ...' echo '------------------------------------------------------' docker run -d --name "$CONTAINERNAME4"\ -h "$CONTAINERNAME4"\ --network "yun2inf"\ -p $YPORT:8000\ -v "y2i:/yun2inf_project/www/static/"\ chenkianwee/yun2inf:0.0.1 !!! change this image name to the new image you have build !!!Build the jupyterbook. Once build return to this tutorial.
You can now excess Y2I by typing in the following in your browser.
<hostname>.local