Deploying Jenkins with Azure Container Cases
Among the finest issues about Azure cloud containers is the flexibility to get an utility up and operating so extremely rapidly. And the very first thing you need to do is familiarize your self with the structure of containers and Docker, basically.
Right here you will discover all of those containers and all of those purposes which are out there to you, referred to as the Docker Hub or hub.docker.com.
You possibly can merely scroll on down. And you may see all the out there ones which are out there to you simply on the Dwelling web page alone. You possibly can see a Redis cache. You possibly can see NGINX. That is fairly cool. An official Ubuntu picture, MySQL or Postgre databases, apache, whats up world– simply something that we have to get this factor up and operating.
Jenkins is an incredible automation instrument. So, if you happen to merely seek for Jenkins an official Jenkins Docker picture will present up. Let’s go and provides {that a} click on.
And I can see that the official Docker picture for Jenkins is correct right here out there to make use of however there’s a deprecation discover “this picture has been deprecated in favour of jenkins/Jenkins”. Effectively, let’s go forward and provides {that a} click on and get to the best occasion of Jenkins.
There we go. And now I can see this was up to date lately. The proprietor is Jenkins. That is the official launch for Jenkins. So, is there something particular I have to find out about operating Jenkins particularly in Docker? Let’s simply go forward and go to the documentation and see for positive.
And simply trying on the very preliminary command to get this factor up and operating, it seems prefer it wants port 8080 open with a view to be accessible. So, with that in thoughts, I used to be going to keep in mind that 8080 must be up and operating in order that we are able to get began with Azure. Now, as I mentioned beforehand, deploying a container in Azure with Azure Container Cases is insanely simple. Identical to you possibly can deploy a digital machine fairly rapidly, we are able to deploy this utility fairly rapidly in Azure. And it may be publicly accessible or nonetheless else I need to management it. So, to get this going, I am simply going to repeat, proper right here, the little title of the Jenkins occasion that we have as a result of that is the official Jenkins documentation. And all we have to have the title of the Docker hub accessible model of Jenkins out there. So, we’ll simply go forward and duplicate “jenkins/jenkins:lts”.
And we’ll hop it over to the Azure portal. And we’ll get began deploying this in an Azure Container Occasion. I am merely going to click on Create a Useful resource. And we’ll seek for the container occasion. We’ll go forward and provides {that a} click on.
And we’ll click on Create to get began making a Container Occasion.
The Fundamentals
Container Identify |
csharpjenkins |
Container Kind |
Public |
Container Picture |
jenkins/jenkins:lts |
Subscription |
MVP-Subscription (you need to use your individual) |
Useful resource Group |
CsharpJenkins (Create New) |
Location |
Southeast Asia |
OS Kind |
Linux |
Variety of cores |
2 |
Reminiscence (GB) |
4 |
GPU |
0 |
Networking
Networking |
Sure |
DNS title label |
csharpjenkins |
Port |
8080 |
Open further ports |
Sure |
Port |
50000 |
Port protocol |
TCP |
Depart the Superior settings as I don’t have to specify any setting variables or any command overrides, So, lets click on Evaluate + Create.
And right here is my abstract. We will be deploying jenkins/jenkins:lts. We will give it two cores and 4 gigs of RAM, which is means an excessive amount of for this specific container. However that is effective. We have got a DNS label. We’re opening Port 8080 and 50000 on TCP. Let’s go and provides us this a click on Create.
And that ought to begin deploying my Jenkins Container. Now, Jenkins, particularly, can take some time to rise up and operating. It does have to be warmed up, so to talk. So, I will let this run for a number of minutes earlier than we come again to it and try it out and ensure it is operating. And it says, after a minute and 20 seconds, the deployment is full and that this container is up and operating so, let’s Go to useful resource.
So, I am merely going to repeat the fully-qualified area title proper right here. We’ll simply give it a click on to repeat. We’ll open a brand new tab. I am going to paste it in. And keep in mind, that is on Port 8080.
So, we’ll go forward and sort in colon 8080 with the FQDN,“csharpjenkins.southeastasia.azurecontainer.io” take a look at that. There it’s, Jenkins, up and operating on a container– took nearly no time in any respect to get this factor up and operating. That is the magic of Azure Container Cases, and the way rapidly we are able to go about deploying containers in our Azure setting.
I hope this text has been informative for you. Thanks for studying.