Skip to content

Commit

Permalink
initial commit Dockerfile and updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp authored and philipp committed May 18, 2020
1 parent 11c1b96 commit ecd7799
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
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

10 changes: 10 additions & 0 deletions README.md
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`

0 comments on commit ecd7799

Please sign in to comment.