BAEL-54445 reorganize docker modules

This commit is contained in:
Loredana Crusoveanu
2022-07-01 16:55:58 +03:00
parent 95897028d5
commit 8ba5c9b67b
42 changed files with 20 additions and 635 deletions

View File

@@ -0,0 +1,3 @@
## Relevant Articles:
- [Dockerfile Strategies for Git](https://www.baeldung.com/ops/dockerfile-git-strategies)

View File

@@ -0,0 +1,4 @@
[submodule "project"]
path = project
url = https://github.com/eugenp/tutorials.git
branch = master

View File

@@ -0,0 +1,13 @@
ADD . /project/
ADD /build/ /project/
ADD /output/project.jar /project/
ADD ssh-private-key /root/.ssh/id_rsa
RUN git clone git@github.com:eugenp/tutorials.git
ARG username=$GIT_USERNAME
ARG password=$GIT_PASSWORD
RUN git clone https://username:password@github.com:eugenp/tutorials.git
VOLUME /build/ /project/