how to install maven,java{jdk}, jenkins.war file & apache tomcat on dockerfile?

0 votes
hi i am new to docker

I am trying to write dockerfile with complete installation of git, maven, java, apache tomcat, Jenkins war file & Jenkins & assign path variables for maven , java
May 1 in Docker by anonymous
• 120 points
398 views

1 answer to this question.

0 votes

Hi,

In real scenario docker container is used for individual service. For an example, if you want to create CI/CD pipeline between git server and jenkins, you can launch two container and link them. But if you want to configure all the settings as you mentioned above for automation, then you should launch one container(CentOS or Ubuntu) and install all the service manually. If all the service works fine, then create one image from that container using commit. Next time whenever you require same configuration, you can run the image. But, If you try to do with dockerfile, it is quite difficult to troubleshoot the dependencies and all.

Hope this will give you some idea.

answered May 4 by MD
• 56,480 points

Related Questions In Docker

0 votes
1 answer

Dockerfile to install apache server and start httpd service on it.

Hey @Kali, That's pretty simple. You could have ...READ MORE

answered Jan 22, 2019 in Docker by Yesha
10,527 views
+1 vote
1 answer

How do i install jenkins using a dockerfile on a windows container?

Here is to how you can install JENKINS ...READ MORE

answered Aug 22, 2019 in Docker by Sirajul
• 57,940 points
2,941 views
0 votes
2 answers

How to install docker-compose on Windows?

Docker compose is already installed if you ...READ MORE

answered Apr 15, 2019 in Docker by Anudeep
1,952 views
0 votes
1 answer

How to install Docker on CentOS?

Hey @Dishant, follow these steps to install ...READ MORE

answered Feb 27, 2019 in Docker by Avinash
276 views
0 votes
1 answer

Dockerfile to install nginx on Ubuntu

Hey @Greg, this is a simple dockerfile ...READ MORE

answered Jul 23, 2019 in Docker by User101
4,085 views
0 votes
1 answer

Install jenkins using dockerfile on Ubuntu.

Here's the dockerfile that you can use: FROM ...READ MORE

answered Aug 22, 2019 in Docker by Sirajul
• 57,940 points
1,880 views
+4 votes
4 answers

How To Access a Service on Host From a Docker Container?

Adding to kalgi's answer, You can also ...READ MORE

answered Oct 16, 2018 in Docker by lina
• 8,220 points

edited Oct 16, 2018 by lina 15,741 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to install packages in a Docker container?

Hi@akhtar, To install packages in a docker container, ...READ MORE

answered Apr 15 in Docker by MD
• 56,480 points
5,941 views