Skip to content

Commit

Permalink
YAS-0002 fix docker build with versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
zuize47 committed Apr 10, 2024
1 parent 1fd1146 commit c492ea1
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions backoffice-bff/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM eclipse-temurin:21-jre-alpine
RUN apk add --no-cache bash
COPY target/backoffice-bff-0.0.1-SNAPSHOT.jar backoffice-bff-0.0.1-SNAPSHOT.jar
COPY target/backoffice*.jar app.jar
COPY wait-for-it.sh wait-for-it.sh
RUN chmod +x wait-for-it.sh
ENTRYPOINT ["java","-jar","/backoffice-bff-0.0.1-SNAPSHOT.jar"]
ENTRYPOINT ["java","-jar","/app.jar"]
4 changes: 2 additions & 2 deletions cart/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM eclipse-temurin:21-jre-alpine
ADD target/cart-0.0.1-SNAPSHOT.jar cart-0.0.1-SNAPSHOT.jar
ENTRYPOINT ["java", "-jar", "/cart-0.0.1-SNAPSHOT.jar"]
ADD target/cart*.jar app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]
4 changes: 2 additions & 2 deletions customer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM eclipse-temurin:21-jre-alpine
ADD target/customer-0.0.1-SNAPSHOT.jar customer-0.0.1-SNAPSHOT.jar
ENTRYPOINT ["java", "-jar", "/customer-0.0.1-SNAPSHOT.jar"]
ADD target/customer*.jar app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]
4 changes: 2 additions & 2 deletions inventory/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM eclipse-temurin:21-jre-alpine
ADD target/inventory-0.0.1-SNAPSHOT.jar inventory-0.0.1-SNAPSHOT.jar
ENTRYPOINT ["java", "-jar", "/inventory-0.0.1-SNAPSHOT.jar"]
ADD target/inventory*.jar app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]

4 changes: 2 additions & 2 deletions location/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM eclipse-temurin:21-jre-alpine
ADD target/location-0.0.1-SNAPSHOT.jar location-0.0.1-SNAPSHOT.jar
ENTRYPOINT ["java", "-jar", "/location-0.0.1-SNAPSHOT.jar"]
ADD target/location*.jar app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]

4 changes: 2 additions & 2 deletions media/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM eclipse-temurin:21-jre-alpine
COPY target/media-0.0.1-SNAPSHOT.jar media-0.0.1-SNAPSHOT.jar
ENTRYPOINT ["java","-jar","/media-0.0.1-SNAPSHOT.jar"]
COPY target/media*.jar app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
4 changes: 2 additions & 2 deletions order/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM eclipse-temurin:21-jre-alpine

ADD target/order-0.0.1-SNAPSHOT.jar order.jar
ENTRYPOINT ["java", "-jar", "/order.jar"]
ADD target/order*.jar app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]
4 changes: 2 additions & 2 deletions payment/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM eclipse-temurin:21-jre-alpine
ADD target/payment-0.0.1-SNAPSHOT.jar payment-0.0.1-SNAPSHOT.jar
ENTRYPOINT ["java", "-jar", "/payment-0.0.1-SNAPSHOT.jar"]
ADD target/payment*.jar app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]
4 changes: 2 additions & 2 deletions product/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM eclipse-temurin:21-jre-alpine
ADD target/product-0.0.1-SNAPSHOT.jar product-0.0.1-SNAPSHOT.jar
ENTRYPOINT ["java", "-jar", "/product-0.0.1-SNAPSHOT.jar"]
ADD target/product*.jar app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]
4 changes: 2 additions & 2 deletions promotion/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM eclipse-temurin:21-jre-alpine
ADD target/promotion-0.0.1-SNAPSHOT.jar promotion-0.0.1-SNAPSHOT.jar
ENTRYPOINT ["java", "-jar", "/promotion-0.0.1-SNAPSHOT.jar"]
ADD target/promotion*.jar app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]
4 changes: 2 additions & 2 deletions rating/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM eclipse-temurin:21-jre-alpine
ADD target/rating-0.0.1-SNAPSHOT.jar rating-0.0.1-SNAPSHOT.jar
ENTRYPOINT ["java", "-jar", "/rating-0.0.1-SNAPSHOT.jar"]
ADD target/rating*.jar app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]
4 changes: 2 additions & 2 deletions search/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM eclipse-temurin:21-jre-alpine
RUN apk add --no-cache bash
ADD target/search-0.0.1-SNAPSHOT.jar search-0.0.1-SNAPSHOT.jar
ADD target/search*.jar app.jar
COPY wait-for-it.sh wait-for-it.sh
RUN chmod +x wait-for-it.sh
ENTRYPOINT ["java", "-jar", "/search-0.0.1-SNAPSHOT.jar"]
ENTRYPOINT ["java", "-jar", "/app.jar"]
4 changes: 2 additions & 2 deletions storefront-bff/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ FROM eclipse-temurin:21-jre-alpine
RUN apk add --no-cache bash
COPY wait-for-it.sh wait-for-it.sh
RUN chmod +x wait-for-it.sh
COPY target/storefront-bff-0.0.1-SNAPSHOT.jar storefront-bff-0.0.1-SNAPSHOT.jar
ENTRYPOINT ["java","-jar","/storefront-bff-0.0.1-SNAPSHOT.jar"]
COPY target/storefront*.jar app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
4 changes: 2 additions & 2 deletions tax/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM eclipse-temurin:21-jre-alpine
ADD target/tax-0.0.1-SNAPSHOT.jar tax-0.0.1-SNAPSHOT.jar
ENTRYPOINT ["java", "-jar", "/tax-0.0.1-SNAPSHOT.jar"]
ADD target/tax*.jar app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]

0 comments on commit c492ea1

Please sign in to comment.