Skip to content

mudigal-technologies/hello-deployment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello-deployment

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.

Alt text

Environment Setup

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!!

Bintray Account

The docker images that are built during the automated build in Jenkins are stored in bintray as an artifacts.

  1. Sign up for a bintray account at https://bintray.com/signup/oss.

Alt text

  1. Create an Organization

Alt text

  1. Enter organization details and proceed.

Alt text

  1. Create sandbox repository

Alt text

  1. Enter sandbox repository details and proceed.

Alt text

  1. Also create staging and release repositories.

Alt text

  1. Now you have all the repositories needed.

Alt text

  1. Select any repository and click on "Set ME UP".

Setting up your credentials

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

Pulling Docker Images

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.

Pushing Docker Images

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.

Alt text

  1. Note down API Key that you need to use to push artifacts.

Alt text

Alt text

Jenkins Setup

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.

Alt text

Alt text

Alt text

Alt text

Alt text

Alt text

Alt text

Alt text

Alt text

Alt text

Alt text

Alt text

Alt text

Alt text

Kubernetes Dashboard

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

Alt text

Alt text

Alt text

Access the deployed application at http://127.0.0.1:8001/api/v1/namespaces/development/services/hello:8040/proxy/

Alt text

Alt text

Grafana Dashboard

Access grafana dashboard at http://127.0.0.1:8001/api/v1/proxy/namespaces/kube-system/services/monitoring-grafana/

Alt text

Alt text

Alt text

Releases

No releases published

Packages

No packages published

Languages

  • HTML 96.5%
  • CSS 3.5%