-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial commit Dockerfile and updated README
- Loading branch information
philipp
authored and
philipp
committed
May 18, 2020
1 parent
11c1b96
commit ecd7799
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM openjdk:8-jdk-alpine | ||
ARG JAR_FILE=target/*.jar | ||
COPY ${JAR_FILE} user-service.jar | ||
ENTRYPOINT ["java","-jar","/user-service.jar"] | ||
EXPOSE 3333 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
# Car Rental User Microservice | ||
|
||
Car Rental microservice project for Service Engineering | ||
|
||
## Build and Run | ||
|
||
1. `mvn package` | ||
2. `docker build -t se-carrental/user-service .` | ||
3. `docker tag se-carrental/user-service rabbitcarrental.azurecr.io/se-carrental/user-service:latest` | ||
4. `docker login rabbitcarrental.azurecr.io` | ||
5. `docker push rabbitcarrental.azurecr.io/se-carrental/user-service:latest` | ||
6. `docker logout rabbitcarrental.azurecr.io` | ||
7. `docker run -p 3333:3333 se-carrental/user-service` |