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 2, 2020 in Docker by anonymous
• 120 points
2,239 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, 2020 by MD
• 95,460 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
23,389 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
• 59,230 points
6,251 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
4,618 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
1,116 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
18,903 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
• 59,230 points
6,009 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 34,254 views
0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer

How to write ansible play book to install docker and start docker container with docker image on multiple host machines

Hi@Shashi, You can do this task easily with ...READ MORE

answered Oct 22, 2020 in Docker by MD
• 95,460 points
6,767 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP