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 in Docker by anonymous
• 18,300 points
63 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 by MD
• 64,820 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
• 58,130 points
840 views
0 votes
2 answers
+3 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
18,338 views
0 votes
2 answers

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

Instead of using docker run you could ...READ MORE

answered Aug 13, 2019 in Docker by Sirajul
• 58,130 points
20,128 views
+2 votes
1 answer
0 votes
1 answer

Running docker-compose on a docker gitlab-ci-multi-runner

The problem (as I understand it) is ...READ MORE

answered Aug 2, 2018 in Docker by Kalgi
• 51,970 points
798 views
+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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
719 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 27 in Docker by MD
• 64,820 points
67 views
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
• 64,820 points
7,708 views