Skip to main content

How to deploy Jenkins on Docker, Hyper-V using HyperForm (DCHQ)

Jenkins can be deployed on Docker container in 3 simple steps.


Step 1: Jenkins docker-compose blueprint.

   This blueprint is very straight-forward. Here we are going to deploy the "latest" version of Jenkin image. And expose port 8080 to VM/Host port 8080.









You can find the blueprint on HyperForm.
   https://www.dchq.io/#/library/2c9180865644050001564c6431fd629d


Step 2: Environment to deploy.

 All you need to deploy the blueprint is a host or a VM with docker installed.

 If you need to try this in the cloud, luckily HyperForm (DCHQ.io) provides free environments in the public cloud or in their private data centers for testing. I'm going to use HyperForm's free cluster and customize and Run the blueprint.





Step 3: Deploy and Manage.


   Jenkins is now deployed and I can access the admin page by clicking the 8080 port no.






















Optional: Configure and Secure Jenkins

If you go to Jenkins page, this is what it looks like.

It says you to copy the text from this location "/var/jenkins_home/secrets/initialAdminPassword" from Jenkins container.

Luckily HyperForm provides an in-browser terminal for containers. This means I don't have to log in to the host on which my Jenkins is running and neither I need to get inside the container to copy the text, simply I can use the in-browser terminal and run "cat /var/jenkins_home/secrets/initialAdminPassword" to print the secret. I can copy page the value and continue installation.




































Jenkins is live...start creating your jobs...






















Comments

  1. What if you want to use the host's machine docker inside of Jenkins? Does not seem to work via mounting -v //var/run/docker.sock:/var/run/docker.sock

    ReplyDelete

Post a Comment

Popular posts from this blog

Azure Publisher List

4psa 4ward365 7isolutions a10networks abiquo accellion Acronis Acronis.Backup actian_matrix actifio active-navigation activeeon adam-software adatao adobe adobe_test adra-match advantech advantech-webaccess aerospike aerospike-database aimsinnovation aiscaler-cache-control-ddos-and-url-rewriting- akeron akumina alachisoft alertlogic AlertLogic.Extension algebraix-data alienvault alldigital-brevity alteryx altiar alvao analitica angoss apigee appcelerator appex-networks appistry appveyorci appzero aqua-security arangodb aras archive360 array_networks arvatosystems aspera aspex aspex-managed-cloud atlassian attunity_cloudbeam auraportal auriq-systems avepoint averesystems aviatrix-systems awingu axinom axway azul AzureRT.Test azuresyncfusion AzureTools1type AzureTools1type100 AzureTools1type200 balabit barracudanetworks basho Bitnami bizagi biztalk360 blackberry blockapps blockstack bluetalon bmc.ctm bmcctm.