This hello-deployment project works charm in mac operation system [Tested]
What is in it for you?
You will get to know about multiple systems such as Continous Integration Server, Deployment Server, Artifacts system etc that are part of build and deployment automation.
Fork this repository and then clone using "git clone https://www.githut.com/[YOUR_GIT_ID]/hello-deployment.git". Go into "hello-deployment/DevVM/mac" and execute "./bootscript.sh"
Done and dusted!!
The docker images that are built during the automated build in Jenkins are stored in bintray as an artifacts.
- Sign up for a bintray account at https://bintray.com/signup/oss.
- Create an Organization
- Enter organization details and proceed.
- Create sandbox repository
- Enter sandbox repository details and proceed.
- Also create staging and release repositories.
- Now you have all the repositories needed.
- Select any repository and click on "Set ME UP".
Setting up your credentials is only required when resolving from a private Docker repository. Use the Docker client login command to authenticate (please use Docker v1.6 and above):
docker login -u vijayendra -p <API_KEY> -e <EMAIL> mudigal-docker-hello-sanbox.bintray.io
Use the Docker client pull command to download an image (please use Docker v1.6 and above):
docker pull mudigal-docker-hello-sanbox.bintray.io/<NAMESPACE>/<PACKAGE_NAME>:<VERSION>
<NAMESPACE> - Optional. When not specified "library:" will be used as the prefix to the Bintray package name. <VERSION> - Optional. When not specified "latest" will be used as the Bintray version name.
Tag your image according to the following convention by running the following command:
docker tag <IMAGE_ID> mudigal-docker-hello-sanbox.bintray.io/<NAMESPACE>/<PACKAGE_NAME>:<VERSION>
Use the Docker client push command to upload and publish your images (please use Docker v1.6 and above):
docker push mudigal-docker-hello-sanbox.bintray.io/<NAMESPACE>/<PACKAGE_NAME>:<VERSION>
<NAMESPACE> - Optional. When not specified "library:" will be used as the prefix to the Bintray package name. <VERSION> - Optional. When not specified "latest" will be used as the Bintray version name.
- Note down API Key that you need to use to push artifacts.
Jenkins is used as continous build, delivery and deployment server.
In you host system goto "http://localhost:8082" to access Jenkins and do the initial setup.
To access kubernetes dashboard, goto command prompt and execute "kubectl proxy". You can now access the dashboard at http://127.0.0.1:8001/ui
Access the deployed application at http://127.0.0.1:8001/api/v1/namespaces/development/services/hello:8040/proxy/
Access grafana dashboard at http://127.0.0.1:8001/api/v1/proxy/namespaces/kube-system/services/monitoring-grafana/