How do we deploy a war from git to tomcat in ubuntu image using docker files

0 votes
Hi friends,

Help me with manual docker deployment steps.
Example: I have tomcat installed in ubuntu alpine image. I have code(war) in Github.

How do we deploy a war ( from git to tomcat in ubuntu image ) using docker files?

Please help me with this
Sep 17, 2020 in Docker by anonymous
• 19,610 points
1,663 views

1 answer to this question.

0 votes

Hi,

If you want to clone your repo inside your Docker image, then you can use the git clone command. So inside your Docker file, you can use the below command.

RUN git clone git@bitbucket.org:User/repo.git
answered Sep 17, 2020 by MD
• 95,460 points

Related Questions In Docker

0 votes
1 answer

how do I create an image from a tar archive in docker?

You can use docker load command inorder to get ...READ MORE

answered Jul 2, 2019 in Docker by Sirajul
• 59,230 points
8,659 views
0 votes
2 answers
+4 votes
4 answers

How to install packages inside a docker Ubuntu image?

Execute the update and the install command ...READ MORE

answered Apr 24, 2019 in Docker by Vismaya
47,188 views
+1 vote
2 answers

How do I copy a file from docker container to host?

Here is a way which you can ...READ MORE

answered Aug 28, 2018 in Docker by Damon Salvatore
• 5,980 points
28,576 views
+2 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,035 views
0 votes
1 answer

How to save a Docker image in tar file?

Hi@akhtar, Sometimes we may require to copy an ...READ MORE

answered Sep 28, 2020 in Docker by MD
• 95,460 points
4,484 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