To Setup local nuget/npm:
- Add two entries in you hosts file (Windows: C:\Windows\System32\drivers\etc\hosts, Linux: /etc/hosts): 127.0.0.1 npm-local 127.0.0.1 nuget-local
- docker-compose up -d
To setup Jenkins:
- docker-compose up -d
- Wait for jenkins to load (Use: "docker-compose logs -f")
- Once Jenkins initializes copy the initialAdminPassword (From the logs or the file directly) and go to http://localhost:8080
- Put the password in the box & hit continue
- Click Install Suggested Plugins
- Once done you will be sent to the create user screen, just click "continue as admin" or, if you want, create a new user you can remember
- Click "Save and Finish"
- Click "Start using Jenkins"
- Click "Open Blue Ocean" on left hand pane
- Click "Create a new Pipeline" after it loads
- Follow the wizard
- Choose GitHub
- Input your access token (create it if required)
- Choose "Jarga" as the organization
- Choose grpc-streaming as the repository
- Click Create Pipeline
- Copy content of jobs folder at root(~) of project into the ./data/jenkins/jenkins_data/jobs folder
- Delete the folder 'grpc-streaming' in ./data/jenkins/jenkins_data/jobs
- Click "Administration" in the Jenkins blue ocean UI
- Click "Reload Configuration from Disk" and OK on the popup
- When jenkins reloads jobs should exist for the proto files, Click into any job
- Click "Scan Repository Now" (This should pick up all tags available)
- Refresh the job view and then go to the "Tags" tab, all tags should be listed.
- Build the tag you want (Only tags > 1.0.0-v5 work)
- Go to http://nuget-local:8000/ to see nuget packages
- Go to http://npm-local:4873/ to see npm packages
ADDITIONAL FOR WEB DEMO:
- You will need to upload the file adventure_time_bacon_pancakes_new_york_remix_frag.mp4 to mongo via the grpc-cli
- Take the ID generated from mongo and insert it into the grpc-video Videos table (ExternalFileId column) with the Id "TEST"