Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# In your BUCC folder:
bucc $ bin/bucc up
bucc $ bin/bucc env > bucc.env
bucc $ source bucc.env
bucc $ bosh update-cloud-config ~/projects/bucc/src/bosh-deployment/warden/cloud-config.yml
bucc $ bosh upload-stemcell --sha1 9190e1d20dcb937e007abbb4054e19b1daa8d0a4 \
https://bosh.io/d/stemcells/bosh-warden-boshlite-ubuntu-xenial-go_agent?v=170.14
$ git clone https://github.com/krasio/akoranga-nginx-boshrelease.git
$ cd akoranga-nginx-boshrelease
akoranga-nginx-boshrelease $ git checkout deploying-nginx
akoranga-nginx-boshrelease $ bosh create-release --force
akoranga-nginx-boshrelease $ bosh upload-release
$ git clone https://github.com/krasio/akoranga-deployment.git
$ cd akoranga-deployment
akoranga-deployment $ git checkout deploying-nginx
akoranga-deployment $ bosh -d akoranga deploy akoranga-deployment.yml
# Expose BOSH Lite VM network
$ sudo route add -net 10.244.0.0/16 192.168.50.6
# Find the Nginx instance IP address
$ bosh instances
Using environment '192.168.50.6' as user 'admin' (openid, bosh.admin)
Task 4. Done
Deployment 'akoranga'
Instance Process State AZ IPs
akoranga-nginx/fc563b20-e767-45a5-bb31-b49aeb065c64 running z1 10.244.0.2
1 instances
Succeeded
# Ta-Da!
$ curl -i http://10.244.0.2
HTTP/1.1 200 OK
Server: nginx/1.14.0
Date: Thu, 17 Jan 2019 01:26:39 GMT
Content-Type: application/octet-stream
Content-Length: 10
Connection: keep-alive
Kia Ora!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.