To use this nginx release, you should have a Bosh Director setup and a stemcell uploaded to it. This release has been tested on an ubuntu-xenial stemcell.
To install a bosh director, follow the instructions here. a virtual box environment should do: https://bosh.io/docs/bosh-lite;
Upload Ubuntu Xenial stemcell to Bosh
bosh -e {{env-alias}} upload-stemcell --sha1 674cd3c1e64d8c51e62770697a63c07ca04e9bbd \
https://bosh.io/d/stemcells/bosh-warden-boshlite-ubuntu-xenial-go_agent?v=315.45
There are two ways this release can be added to your bosh director.
- From Repo Release Files (Clone Repo)
git clone https://github.com/wayneskillz/bosh-nginx-release.git
cd bosh-nginx-release
bosh upload-release
- From Release Tarball (Located in the tarball directory)
bosh -e {{env_alias}} upload-release https://github.com/wayneskillz/bosh-nginx-release/raw/master/tarball/nginx-deployment-1.13.1.tar.gz
Assuming you are in the bosh nginx directory cloned earlier, i.e. in the bosh-nginx-release directory:
bosh -e {{env_alias}} -d nginx-deployment deploy examples/nginx-deployment.yml
Open terminal/command prompt and type in the following curl command to test
curl -u admin http://10.244.0.2
when prompted for a password, type in admin
without the quotes.
Visit http://10.244.0.2/ on your browser and you should see the nginx homescreen with a popup to authenticate:
Default username and password is admin
After entering this, you should see the default nginx homepage.
- In the event that this release was not deployed on a fresh virtualbox vm, type the following command to view the ip address for the deployment.
bosh -e {{env_alias}} -d nginx-deployment vms
Now open your browser at that ip to test.
Note Replace {{env_alias}} with the alias name of your bosh director.