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

cache_to inline and cache_from #304

Merged
merged 5 commits into from
Aug 29, 2022
Merged
Changes from 1 commit
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
44 changes: 44 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ services:
build:
context: ./
dockerfile: ./src/adservice/Dockerfile
cache_from:
- ${IMAGE_NAME}:${IMAGE_VERSION}-adservice
cache_to:
- inline # see https://github.com/moby/buildkit#export-cache
ports:
- "${AD_SERVICE_PORT}"
environment:
Expand All @@ -70,6 +74,10 @@ services:
build:
context: ./
dockerfile: ./src/cartservice/src/Dockerfile
cache_from:
- ${IMAGE_NAME}:${IMAGE_VERSION}-cartservice
cache_to:
- inline # see https://github.com/moby/buildkit#export-cache
ports:
- "${CART_SERVICE_PORT}"
environment:
Expand All @@ -90,6 +98,10 @@ services:
build:
context: ./
dockerfile: ./src/checkoutservice/Dockerfile
cache_from:
- ${IMAGE_NAME}:${IMAGE_VERSION}-checkoutservice
cache_to:
- inline # see https://github.com/moby/buildkit#export-cache
ports:
- "${CHECKOUT_SERVICE_PORT}"
environment:
Expand Down Expand Up @@ -121,6 +133,10 @@ services:
args:
- GRPC_VERSION=1.46.0
- OPENTELEMETRY_VERSION=1.4.0
cache_from:
- ${IMAGE_NAME}:${IMAGE_VERSION}-currencyservice
cache_to:
- inline # see https://github.com/moby/buildkit#export-cache
ports:
- "${CURRENCY_SERVICE_PORT}"
environment:
Expand All @@ -137,6 +153,10 @@ services:
container_name: email-service
build:
context: ./src/emailservice
cache_from:
- ${IMAGE_NAME}:${IMAGE_VERSION}-emailservice
cache_to:
- inline # see https://github.com/moby/buildkit#export-cache
ports:
- "${EMAIL_SERVICE_PORT}"
environment:
Expand All @@ -155,6 +175,10 @@ services:
build:
context: ./
dockerfile: ./src/frontend/Dockerfile
cache_from:
- ${IMAGE_NAME}:${IMAGE_VERSION}-frontend
cache_to:
- inline # see https://github.com/moby/buildkit#export-cache
ports:
- "${FRONTEND_PORT}:${FRONTEND_PORT}"
environment:
Expand Down Expand Up @@ -190,6 +214,10 @@ services:
build:
context: ./
dockerfile: ./src/paymentservice/Dockerfile
cache_from:
- ${IMAGE_NAME}:${IMAGE_VERSION}-paymentservice
cache_to:
- inline # see https://github.com/moby/buildkit#export-cache
ports:
- "${PAYMENT_SERVICE_PORT}"
environment:
Expand All @@ -207,6 +235,10 @@ services:
build:
context: ./
dockerfile: ./src/productcatalogservice/Dockerfile
cache_from:
- ${IMAGE_NAME}:${IMAGE_VERSION}-productcatalogservice
cache_to:
- inline # see https://github.com/moby/buildkit#export-cache
ports:
- "${PRODUCT_CATALOG_SERVICE_PORT}"
environment:
Expand All @@ -224,6 +256,10 @@ services:
build:
context: ./
dockerfile: ./src/recommendationservice/Dockerfile
cache_from:
- ${IMAGE_NAME}:${IMAGE_VERSION}-recommendationservice
cache_to:
- inline # see https://github.com/moby/buildkit#export-cache
ports:
- "${RECOMMENDATION_SERVICE_PORT}"
depends_on:
Expand All @@ -244,6 +280,10 @@ services:
build:
context: ./
dockerfile: ./src/shippingservice/Dockerfile
cache_from:
- ${IMAGE_NAME}:${IMAGE_VERSION}-shippingservice
cache_to:
- inline # see https://github.com/moby/buildkit#export-cache
ports:
- "${SHIPPING_SERVICE_PORT}"
environment:
Expand Down Expand Up @@ -290,6 +330,10 @@ services:
build:
context: ./
dockerfile: ./src/loadgenerator/Dockerfile
cache_from:
- ${IMAGE_NAME}:${IMAGE_VERSION}-loadgenerator
cache_to:
- inline # see https://github.com/moby/buildkit#export-cache
environment:
- FRONTEND_ADDR
- USERS
Expand Down