Scripts to build pytorch in Jenkins / Nimbix for continuous integration and building binaries
- Setup an ec2 machine according to instructions from docs/ec2instance.md
- Sign up for NIMBIX according to instructions from docs/nimbixsignup.md
- Create a github bot called "pytorchbot" according to instructions from docs/githubconfiguration.md
- On the ec2 machine, setup an ssh key and add it to the "pytorchbot" github account
- SSH into the ec2 instance, and run:
cd ~/
sudo apt-get update -y
sudo apt-get install -y git
git clone git@github.com:pytorch/builder.git
cp builder/config.yaml.templ builder/config.yaml
- Change the jenkinspassword and shared_secret in builder/config.yaml
- Then run this and follow instructions:
bash builder/installjenkins.sh
- Then start jenkins
bash builder/runjenkins.sh
-
Follow the instructions in docs/jenkins.md
-
Follow the instructions in docs/wrapperinstancesetup.md
-
Finally, run these commands so that http://build.pytorch.org gets forwarded to https:// automatically
sudo apt-get install -y nginx
sudo service nginx stop
sudo rm /etc/nginx/sites-enabled/default
cat <<EOF | sudo tee /etc/nginx/sites-available/redirect-https
server {
listen 80;
return 302 https://\$host\$request_uri;
}
EOF
sudo ln -sf /etc/nginx/sites-available/redirect-https /etc/nginx/sites-enabled/redirect-https
sudo service nginx start
- email notifications
sudo apt-get install mailutils
# then enable email notifications in jenkins
- kill jenkins
- ./certbot-auto renew
- regenerate key with: https://github.com/pytorch/builder/blob/master/installjenkins.sh#L45-L49
- bash builder/runjenkins.sh