Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAS-0002 fix docker build with versioning #760

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]

Loading