Giter VIP home page Giter VIP logo

ci's Introduction

ci

Windows environment setup

Steps undertaken for Windows CI AMI creation. Pre-requisite - AWS CLI is installed and configured.

Step 1 : Get AMI id

aws ssm get-parameter --name /aws/service/ami-windows-latest/Windows_Server-2019-English-Full-Base

Step 2 : Instance Creation

Choose AMI

Use AMI ID from Step 1

Choose Instance Type

Nothing specific. Can choose P2 instance

Configure Instance

Add user data while creating instance (Configure Instance -> User Data) as follows

User data
<powershell>
cd C:\Users\Administrator
$progressPreference = 'silentlyContinue'
Invoke-WebRequest -Uri https://cygwin.com/setup-x86_64.exe -OutFile setup-x86_64.exe
.\setup-x86_64.exe --site http://cygwin.mirror.constant.com --quiet-mode --root "C:\cygwin64" --local-package-dir "C:\Users\Administrator" --verbose --prune-install --packages openssh,git,rsync,vim,python3
Invoke-WebRequest -Uri https://windows-post-install.s3-us-west-2.amazonaws.com/windows.zip -OutFile windows.zip
Expand-Archive -LiteralPath .\windows.zip
Invoke-WebRequest -Uri "https://download.mozilla.org/?product=firefox-latest-ssl&os=win64&lang=en-US" -OutFile ffox.exe
.\ffox.exe /n /s
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f
</powershell>

Add storage

200Gig storage

Security Group

Select an existing security group Choose both : AWS RDP and AWS SSH

Step 3 : Instance steps

Using Microsoft Remote Desktop, connect to the remote instance. In a powershell prompt execute

Set-ExecutionPolicy Bypass -Scope Process -Force
./setup.ps1

Step 4 : Create AMI with base dependencies

Stop the instance. Create Amazon Machine Image out of the instance (Windows GPU Updated Deps AMI) Refer : https://docs.aws.amazon.com/toolkit-for-visual-studio/latest/user-guide/tkv-create-ami-from-instance.html

Step 5 : Launch instance with Base AMI

Upon launching the p2 instance using the base AMI (username password same as 1 used for creating base AMI) Clone the repo and build for windows :

git clone -b windows_builds --recursive https://github.com/larroy/mxnet.git
python .\ci\build_windows.py

Step 6 : Create the Windows GPU Jenkins AMI

It differs from the previous AMI as it has base AMI + Jenkins Slave autoconnect.

Restart the stopped instance

./jenkins_slave.ps1

Create Amazon Machine Image (just like Step 4)

Step 7 : Test

To Do: Add step to update the CI Infra on AWS to pick the updated AMI. For testing, run a job (windows GPU in this case) on Jenkins CI Dev.

CUDA 10.2: http://developer.download.nvidia.com/compute/cuda/10.2/Prod/network_installers/cuda_10.2.89_win10_network.exe

ci's People

Contributors

chaibapchya avatar josephevans avatar larroy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.