Last active
February 10, 2019 02:29
-
-
Save krasio/a07c91f46c29a10f696ddee309e449a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Steps to recreate http://blog.codingspree.net/posts/learning-bosh-deploying-web-application/ | |
# 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-web-application | |
akoranga-nginx-boshrelease $ bosh create-release --force | |
akoranga-nginx-boshrelease $ bosh upload-release | |
$ git clone https://github.com/krasio/akoranga-go-boshrelease.git | |
$ cd akoranga-go-boshrelease | |
akoranga-go-boshrelease $ git checkout deploying-web-application | |
akoranga-go-boshrelease $ bosh create-release --force | |
akoranga-go-boshrelease $ bosh upload-release | |
$ git clone https://github.com/krasio/akoranga-deployment.git | |
$ cd akoranga-deployment | |
akoranga-deployment $ git checkout deploying-web-application | |
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 web application instance IP address | |
$ bosh instances | |
Using environment '192.168.50.6' as user 'admin' (openid, bosh.admin) | |
Task 5. Done | |
Deployment 'akoranga' | |
Instance Process State AZ IPs | |
akoranga-app/0b68d9c4-ab21-4ea2-98cd-636774289e59 running z2 10.244.0.4 | |
akoranga-app/36730ac0-a52e-4b8f-9280-ae986b3544b6 running z1 10.244.0.3 | |
akoranga-nginx/7f15ccfc-9659-435e-8898-e36f703837bb running z1 10.244.0.2 | |
# Ta-Da! | |
$ curl -i http://10.244.0.2 | |
HTTP/1.1 200 OK | |
Server: nginx/1.14.0 | |
Date: Sun, 10 Feb 2019 01:25:09 GMT | |
Content-Type: application/octet-stream | |
Content-Length: 10 | |
Connection: keep-alive | |
Kia Ora! | |
$ curl -i http://10.244.0.3:8080 | |
HTTP/1.1 200 OK | |
Date: Sun, 10 Feb 2019 01:25:20 GMT | |
Content-Length: 48 | |
Content-Type: text/plain; charset=utf-8 | |
[73a6ff0b-b7b6-42e4-b441-248b2f1fdf51] Kia ora! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment