Skip to content

Containerized App and DB#8

Open
Fatma-AlHashmi96 wants to merge 3 commits intoCodelineAtyab:mainfrom
Fatma-AlHashmi96:fatma-alhashmi-containerize-app
Open

Containerized App and DB#8
Fatma-AlHashmi96 wants to merge 3 commits intoCodelineAtyab:mainfrom
Fatma-AlHashmi96:fatma-alhashmi-containerize-app

Conversation

@Fatma-AlHashmi96
Copy link

  1. First, install Maven and add to the system environment variable, path in the variable and then, install in the appication file using command "mvn clean package -DskipTests".
  2. Second, create the "Dockerfile" with application name and copy the whole source file of the application into the app file.
  3. Third, create the "docker-compose.yaml" to take into consideration the supporting version of OpenJDK17 with Maven.

@Fatma-AlHashmi96
Copy link
Author

Pull the dockerfile and docker-compose


#Copy pom.xml to current working directory
COPY pom.xml .
RUN mvn dependency:go-offline -B
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment, mentioning what go-offline -B would do.
Is there any benefit since we are already packaging all of the dependencies on line 13 ?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Target directory is host specific and should not be pushed with the source code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants