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

Rebase upstream 1.11.1 #157

Closed
wants to merge 191 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
191 commits
Select commit Hold shift + click to select a range
816ee5a
[currencyservice] Add OTLP logs (#1378)
julianocosta89 Feb 16, 2024
9d77fdf
prep for release (#1379)
austinlparker Feb 16, 2024
e8e3553
refactor(checkoutservice): reuse grpc service client (#1387)
tranngoclam Feb 19, 2024
6eab783
chore: use semantic convention v1.24.0 (#1385)
tranngoclam Feb 19, 2024
59e0528
bump dependencies (#1390)
julianocosta89 Feb 19, 2024
64eb66e
Update trace test sem conv (#1394)
julianocosta89 Feb 20, 2024
6f38f5f
update to 1.8.0 release (#1395)
puckpuck Feb 21, 2024
f9053b7
[chore] make: fix restart, add redeploy targets (#1397)
puckpuck Feb 21, 2024
0d7e94b
[chore] - memory for collector and jaeger (#1396)
puckpuck Feb 21, 2024
1b9b117
[chore]: nightly build and publish (#1398)
puckpuck Feb 21, 2024
6bd2ede
use nightly releases (#1399)
puckpuck Feb 22, 2024
ef31bfd
[chore]: remove integration tests (#1406)
puckpuck Feb 22, 2024
cf7bac7
chore(checkoutservice): add producer interceptor for tracing (#1400)
tranngoclam Feb 24, 2024
e07f5b2
fix(accountingservice): fix graceful shutdown and log issues (#1401)
tranngoclam Feb 26, 2024
3f6958a
only run nightly for main repo (#1407)
puckpuck Feb 26, 2024
ca56690
fix(productcatalogservice): fix graceful shutdown issues (#1402)
tranngoclam Feb 26, 2024
940dfca
Test: Run integration tests on PR approval (#1414)
austinlparker Feb 26, 2024
b1e26c3
[CartService] - Add Host Detector (#1415)
julianocosta89 Feb 27, 2024
0a1ad08
docs(readme): add Dash0 to the list of forks (#1416)
basti1302 Feb 27, 2024
71f0e96
[frontend] update sharp to latest to avoid docker build issue on M1 (…
basti1302 Feb 27, 2024
06f020c
[frontend] fix typo in ShippingGateway (#1418)
basti1302 Mar 1, 2024
b7c7891
fix kafka producer spans (#1428)
puckpuck Mar 2, 2024
71e428b
chore: upgrade go.opentelemetry.io otel and contrib dependencies (#1408)
tranngoclam Mar 2, 2024
c8b8e08
refactor(checkoutservice): use exception.message key from semantic co…
tranngoclam Mar 6, 2024
ce4ad93
Remove Feature Flag Service in favor of OpenFeature + flagd (#1388)
austinlparker Mar 7, 2024
0ac4db7
refactor(checkoutservice): remove unused replace directive (#1431)
tranngoclam Mar 7, 2024
c076a66
[chore]: make stop target for all profiles (#1427)
puckpuck Mar 7, 2024
e82863b
Cache playwright browsers outside root home to allow container to run…
fvlankvelt Mar 7, 2024
0c80094
build protobuf in dockerfile for all services (#1386)
fsolleza Mar 7, 2024
c6f4471
[chore] add Liatrio to list of vendor demos (#1442)
adrielp Mar 9, 2024
78a5078
Update Telemetry Components (#1440)
julianocosta89 Mar 11, 2024
6775060
refactor(accountingservice): refactor accountingservice dockerfile (#…
tranngoclam Mar 12, 2024
87e051d
[Frontend-proxy] Add restart policy to compose files (#1448)
klucsik Mar 13, 2024
5a5eb25
Reset quantity in frontend when product changes (#1447)
austinlparker Mar 13, 2024
def3a4c
Emit load generator logs via OTLP (#1446)
austinlparker Mar 13, 2024
b25c807
refactor(checkoutservice): refactor checkoutservice dockerfile (#1450)
tranngoclam Mar 14, 2024
95f8f29
refactor(productcatalogservice): refactor productcatalogservice docke…
tranngoclam Mar 14, 2024
8605f61
remove axoflow link (#1457)
austinlparker Mar 14, 2024
4862828
[chore] jsonlint (#1454)
julianocosta89 Mar 14, 2024
8de7041
[paymentservice] [checkoutservice] introduce new featureflags (#1449)
EislM0203 Mar 14, 2024
45feab5
Adjust FeatureFlags (#1458)
julianocosta89 Mar 14, 2024
dfa2858
[cartservice] update .NET to .NET 8.0.3 (#1460)
Kielek Mar 15, 2024
5a0f85f
remove reference of featureflag endpoint (#1461)
julianocosta89 Mar 15, 2024
b50be5d
[chore] Add depends_on flagd to all services using it (#1464)
julianocosta89 Mar 15, 2024
c50245e
restrict workflows to otel repo (#1466)
puckpuck Mar 19, 2024
1f538a1
build(deps): upgrade google.golang.org/protobuf v1.33.0 (#1452)
tranngoclam Mar 19, 2024
4b093f7
fix failed_spans typo in grafana dashboards (#1465)
edhjer Mar 19, 2024
f4eee80
remove deprecated start_child_span option (#1469)
puckpuck Mar 21, 2024
298c930
[frontend] - disable fs instrumentation library (#1473)
puckpuck Mar 21, 2024
7560436
[currency] - fix metric name (#1470)
puckpuck Mar 21, 2024
b8ac885
Bump gradle/wrapper-validation-action from 2.1.1 to 2.1.2 (#1474)
dependabot[bot] Mar 22, 2024
73bdd52
[chore] Remove featureflagservice ide-gen-proto.sh (#1476)
puckpuck Mar 24, 2024
5c6b801
[adservice] add adServiceManualGC featureflag (#1463)
EislM0203 Mar 25, 2024
a1baff7
[chore] add labels to pr (#1475)
puckpuck Mar 25, 2024
36d0215
Bump actions/github-script from 3 to 7 (#1483)
dependabot[bot] Mar 25, 2024
9ffee33
Adservice returns error status code when feature flag is enabled (#1484)
jack-berg Mar 26, 2024
e18bb82
Update maintainers list (#1488)
julianocosta89 Mar 27, 2024
8ba9a1d
[shippingservice] fix context propagation (#1433)
julianocosta89 Apr 2, 2024
4185d2d
prep for 1.9 release (#1493)
austinlparker Apr 2, 2024
59cdb0a
chore(deps): upgrade otel collector, grafana, jaeger and prometheus (…
tranngoclam Apr 3, 2024
06023dd
Imageprovider (#1462)
klucsik Apr 4, 2024
5cef0e7
chore(kafka): use apache/kafka official image (#1480)
tranngoclam Apr 6, 2024
888f18c
chore(docker compose): add container name as tag attribute to contain…
harrykimpel Apr 6, 2024
6d29975
[frauddetection] Use span links as Kafka consumer (#1501)
puckpuck Apr 6, 2024
c333b41
update script (#1503)
austinlparker Apr 6, 2024
e7a240f
update permissions (#1504)
austinlparker Apr 6, 2024
282b7f1
Update label-pr.yml
austinlparker Apr 6, 2024
1e992ba
Update label-pr.yml
austinlparker Apr 6, 2024
2596ca0
[frontend] reunite trace from loadgenerator (#1506)
puckpuck Apr 7, 2024
bbb99a1
[loadgenerator] added loadgeneratorFloodHomepage flagd (#1486)
bornav Apr 8, 2024
d885110
[repo] add traceBasedTests image (#1507)
puckpuck Apr 8, 2024
1d3a324
Update frontend test to remove fraud detection span check (#1516)
julianocosta89 Apr 10, 2024
18edfd5
chore(deps): upgrade otel sdk, contrib to latest version (#1512)
tranngoclam Apr 10, 2024
6f89f56
[cartservice] Update OTel .NET SDK to 1.8.0 (#1514)
Kielek Apr 10, 2024
a29c2a7
adservice add highcpu load ff (#1510)
EislM0203 Apr 11, 2024
d1535f9
[quoteservice] manual metrics, logs export (#1519)
brettmc Apr 11, 2024
103738b
[loadgenerator] start locust with host "0.0.0.0" (#1437) (#1509)
MoZhonghua Apr 12, 2024
17f1bd4
[flagd] export flagd traces to otel collector (#1522)
klucsik Apr 12, 2024
fb75872
[frontend + adservice] Pass Session ID through baggage (#1502)
austinlparker Apr 14, 2024
742594f
Add link to feature flags docs (#1523)
curusarn Apr 14, 2024
67d92e4
Update Datadog link in README (#1527)
julianocosta89 Apr 15, 2024
e5c45b9
Bump gradle/wrapper-validation-action from 2.1.2 to 3.3.0 (#1524)
dependabot[bot] Apr 15, 2024
95a3b5c
Append slash to copy destination in adService Dockerfile (#1530)
danielgblanco Apr 15, 2024
4d84a64
[frontend] Pass down image optimization requests to imageprovider in …
klucsik Apr 15, 2024
307f379
chore(deps): upgrade opentelemetry-java-instrumentation to 2.3.0 (#1532)
tranngoclam Apr 16, 2024
8b1e260
Bump gradle/wrapper-validation-action from 3.3.0 to 3.3.1 (#1539)
dependabot[bot] Apr 22, 2024
77fb27c
chore(deps): upgrade opentelemetry-java-instrumentation for kafka to …
tranngoclam Apr 22, 2024
a7aeade
feat(otelcol): add redisreceiver (#1537)
tranngoclam Apr 23, 2024
05982b2
fix(productcatalogservice): handle err returned from openfeature.SetP…
tranngoclam Apr 23, 2024
e0500b2
[kafka][checkoutservice][frauddetectionservice] add kafkaQueueProblem…
EislM0203 Apr 30, 2024
faa5104
Bump gradle/wrapper-validation-action from 3.3.1 to 3.3.2 (#1548)
dependabot[bot] Apr 30, 2024
61d6a5f
improve baggage propagation (#1545)
beeme1mr Apr 30, 2024
475eaa5
[chore] specify default value for tracetest image version (#1551)
puckpuck May 1, 2024
9027cfc
update kubernetes manifest to 1.9.0 (#1555)
puckpuck May 1, 2024
2e6cb5a
[flagd] - upgrade to latest version and memory limits (#1554)
puckpuck May 1, 2024
81536c8
add imageprovider (#1552)
puckpuck May 3, 2024
a65c46f
chore(deps): upgrade otel collector contrib, grafana and prometheus (…
tranngoclam May 3, 2024
ab59acc
remove deprecated version property (#1557)
puckpuck May 5, 2024
5c59ca1
chore(deps): upgrade go dependencies to latest versions (#1561)
tranngoclam May 6, 2024
b3c53f5
feat: configure feature flag tracing for Python services (#1553)
federicobond May 6, 2024
9708127
Revert "remove axoflow link (#1457)" (#1563)
julianocosta89 May 7, 2024
9ea9eda
fix(loadgenerator): use add_hooks openfeature method (#1565)
rogercoll May 7, 2024
1d5126b
chore(deps): upgrade otel collector contrib and opensearch (#1566)
rogercoll May 7, 2024
3c665d3
docs: update sig meeting schedule (#1567)
rogercoll May 8, 2024
f909932
[frontend] Slowloading of images (#1515)
klucsik May 13, 2024
a82287d
[Frontend] Global img provider (#1571)
klucsik May 15, 2024
e91611b
Fix kafka permission in dockerfile (#1574)
zzh8829 Jun 1, 2024
b5983f2
Resolve proto directory dynamically for dotnet cartservice (#1579)
Mpdreamz Jun 1, 2024
925ddee
[cartservice] bump Otel .NET SDK to 1.8.1 (#1580)
rogercoll Jun 1, 2024
3ee280d
add flagd service to minimal docker compose (#1585)
rogercoll Jun 1, 2024
3afe19e
[kafka] increase kafka memory limits (#1592)
puckpuck Jun 3, 2024
b9c5d37
[imageprovider] reduce image size (#1589)
puckpuck Jun 3, 2024
379cf62
chore(ci): reusable container image generation (#1581)
rogercoll Jun 3, 2024
b2f6fbf
chore: introduce .env.override for docker-compose (#1584)
rogercoll Jun 3, 2024
2ca2be6
[chore] release prep: update dependencies for all services (#1591)
puckpuck Jun 5, 2024
d75c9d8
chore: Add service version to OTEL_RESOURCE_ATTRIBUTES (#1594)
julianocosta89 Jun 5, 2024
cc29172
[checkout] fix kafka restart (#1590)
puckpuck Jun 6, 2024
7e4f1f6
Update demo image version (#1597)
julianocosta89 Jun 7, 2024
9dc4a67
updated buildx config (#1596)
puckpuck Jun 7, 2024
6202972
Bump docker/build-push-action from 5.0.0 to 5.4.0 (#1598)
dependabot[bot] Jun 10, 2024
a61ab14
chore: configure renovate to bump image deps (#1599)
rogercoll Jun 13, 2024
6fd371c
fix: start-minimal make target (#1604)
rogercoll Jun 14, 2024
2a651e4
update to 1.10.0 release (#1602)
puckpuck Jun 18, 2024
616f7c7
build(deps): bump docker/build-push-action from 5.4.0 to 6.0.0 (#1607)
dependabot[bot] Jun 18, 2024
f7c3b24
build(deps): bump gradle/wrapper-validation-action from 3.3.2 to 3.4.…
dependabot[bot] Jun 18, 2024
f89d3af
update to 1.10.0 release (#1612)
puckpuck Jun 18, 2024
ee92851
Use native runners (#1613)
austinlparker Jun 18, 2024
b063b3c
add secrets inheritance (#1614)
austinlparker Jun 18, 2024
e8c03dc
[cartservice] Bump OTel .NET SDK to 1.9.0 (#1610)
Kielek Jun 18, 2024
d658220
Revert "add secrets inheritance (#1614)" (#1615)
austinlparker Jun 18, 2024
c0fa17f
Revert "Use native runners (#1613)" (#1616)
austinlparker Jun 18, 2024
8a211c0
chore: parametrize services Dockerfile path (#1600)
rogercoll Jun 19, 2024
0d092eb
[chore] replace gh action gradle/wrapper-validation-action by gradle/…
Kielek Jun 20, 2024
d335b8d
build(deps): bump docker/build-push-action from 6.0.0 to 6.0.1 (#1618)
dependabot[bot] Jun 20, 2024
11ef3c6
[Valkey] Replace Redis with Valkey (#1619)
julianocosta89 Jun 21, 2024
e5e1a0d
build(deps): bump docker/build-push-action from 6.0.1 to 6.1.0 (#1620)
dependabot[bot] Jun 26, 2024
49992a3
fix: emailservice docker compose image (#1630)
rogercoll Jun 26, 2024
3058ede
add collector configs as environment variable (#1632)
rogercoll Jun 26, 2024
5caa07d
fix(frontend): Use port 443 as default to connect to flagd if https i…
SvenKirschbaum Jun 26, 2024
918e86a
Update recommendation flag to match flagd configuration (#1634)
flands Jun 27, 2024
5400099
Change AccountService from Go to DotNet (auto) (#1538)
RassK Jun 27, 2024
9e31317
build(deps): bump docker/build-push-action from 6.1.0 to 6.2.0 (#1636)
dependabot[bot] Jun 27, 2024
2957ad4
[chore] clarify complete release process (#1638)
puckpuck Jun 28, 2024
0a75389
update to 1.11.0 release (#1639)
puckpuck Jun 28, 2024
60754cb
update to 1.11.0 release (#1640)
puckpuck Jun 28, 2024
b375970
[chore] update demo role memberships (#1649)
puckpuck Jul 1, 2024
ebc32b9
[otel-col] Add docker stats receiver (#1650)
julianocosta89 Jul 2, 2024
25b24fa
add Kafka Dockerfile env variable (#1652)
rogercoll Jul 2, 2024
9dad087
build(deps): bump docker/build-push-action from 6.2.0 to 6.3.0 (#1656)
dependabot[bot] Jul 3, 2024
14e7f8f
Simplify error scenario logic (#1657)
beeme1mr Jul 8, 2024
62d1d9b
[tests] - optimize trace testing (#1659)
puckpuck Jul 8, 2024
c417bdb
[chore] fix build-images workflow (#1661)
puckpuck Jul 9, 2024
a38aa6a
Set OTLP receiver endpoint (#1662)
julianocosta89 Jul 12, 2024
a087dd6
[accountingservice]: fix memory limit on (#1666)
puckpuck Jul 15, 2024
8e0275e
build(deps): bump docker/build-push-action from 6.3.0 to 6.4.0 (#1671)
dependabot[bot] Jul 15, 2024
91c7df4
Remove query params and product ID from span names (#1668)
joshleecreates Jul 16, 2024
a76f337
[frontend] Update nodejs to latest LTS and bump dependencies (#1670)
julianocosta89 Jul 16, 2024
f914642
build(deps): bump docker/build-push-action from 6.4.0 to 6.4.1 (#1674)
dependabot[bot] Jul 18, 2024
9b5478b
build(deps): bump gradle/actions from 3.4.2 to 3.5.0 (#1673)
dependabot[bot] Jul 18, 2024
1dc31d0
[otel-col] Add host metrics receiver (#1675)
rogercoll Jul 23, 2024
070beca
build(deps): bump docker/build-push-action from 6.4.1 to 6.5.0 (#1678)
dependabot[bot] Jul 23, 2024
d7a21a7
Changes interval on grafana dashboards to match scrape interval (#1669)
joshleecreates Jul 23, 2024
dced09e
[adservice] bump dependencies & gradle (#1681)
julianocosta89 Jul 25, 2024
9bc3510
Add Artifact Hub and OpenSSF badges (#1682)
julianocosta89 Jul 26, 2024
86d33a3
update service dependencies (#1683)
puckpuck Jul 29, 2024
75514aa
add google-specific contributing guidelines
dashpole Nov 27, 2023
871d146
update README to show that it is a fork
dashpole Nov 27, 2023
b617907
not officially supported disclaimer
dashpole Nov 29, 2023
4842ac9
Add GCP collector config, readme, samples
damemi Feb 9, 2024
72cd55c
Add GCP collector config, readme, samples
damemi Feb 9, 2024
54435a4
Fix make start after rebase
damemi Feb 15, 2024
3984388
Remove filter/ottl and transform processors for 1.8.0 chart
damemi Mar 12, 2024
a791642
Update helm steps to install 0.29.1
damemi Mar 12, 2024
1b7a282
Update local k8s manifests to match GCP values
damemi Apr 10, 2024
299fc75
Update README
damemi Apr 10, 2024
c1b7048
Use same collector SA name in helm+manifest
damemi Apr 10, 2024
3733ab3
Helm install to same namespace as kubectl (to keep IAM/WI setup steps…
damemi Apr 10, 2024
d70e40f
readme copy-paste
damemi Apr 10, 2024
12eb60d
reflow long lines
damemi Apr 17, 2024
e2ebebb
Add Cloud Build deploy config (#50)
damemi Apr 29, 2024
336f46b
Add PROJECT_ID env var substitution (#69)
damemi Apr 29, 2024
918f3f5
register frontendproxy service with service directory for uptime chec…
dashpole May 17, 2024
0ee5790
Use helmfile to regenerate the k8s YAML
quentinmit May 16, 2024
cb1d16a
Script to deploy k8s resources to an arbitrary namespace.
quentinmit May 13, 2024
2609b26
Pass the namespace to k8sattributes in CI
quentinmit Jun 11, 2024
1f9d1e0
Pull request target updates (#139)
damemi Jul 31, 2024
ed215fd
Double-export traces to Google Cloud and OTLP endpoints (#101)
damemi Aug 6, 2024
9471a5f
Bump helm chart to 0.32 and collector to 0.105.0 (#147)
damemi Aug 12, 2024
fc96a9e
Switch to Workload Identity Federation for GKE
quentinmit Jun 24, 2024
8288e84
make generate-kubernetes-manifests
damemi Aug 26, 2024
ed067fd
Merge branch 'main' into rebase-8262024
damemi Aug 26, 2024
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
69 changes: 49 additions & 20 deletions .env
Original file line number Diff line number Diff line change
@@ -1,74 +1,92 @@


# Demo App version
IMAGE_VERSION=1.7.2
IMAGE_VERSION=1.11.0
IMAGE_NAME=ghcr.io/open-telemetry/demo
DEMO_VERSION=latest

# Dependent images
COLLECTOR_CONTRIB_IMAGE=otel/opentelemetry-collector-contrib:0.93.0
GRAFANA_IMAGE=grafana/grafana:10.3.1
JAEGERTRACING_IMAGE=jaegertracing/all-in-one:1.53
OPENSEARCH_IMAGE=opensearchproject/opensearch:2.11.1
POSTGRES_IMAGE=postgres:16.1
PROMETHEUS_IMAGE=quay.io/prometheus/prometheus:v2.49.1
REDIS_IMAGE=redis:7.2-alpine
TRACETEST_IMAGE_VERSION=v0.14.5
TRACETEST_IMAGE=kubeshop/tracetest:${TRACETEST_IMAGE_VERSION}
COLLECTOR_CONTRIB_IMAGE=otel/opentelemetry-collector-contrib:0.105.0
FLAGD_IMAGE=ghcr.io/open-feature/flagd:v0.11.1
GRAFANA_IMAGE=grafana/grafana:11.1.1
JAEGERTRACING_IMAGE=jaegertracing/all-in-one:1.59
# must also update version field in ./src/grafana/provisioning/datasources/opensearch.yaml
OPENSEARCH_IMAGE=opensearchproject/opensearch:2.15.0
POSTGRES_IMAGE=postgres:16.3
PROMETHEUS_IMAGE=quay.io/prometheus/prometheus:v2.53.1
VALKEY_IMAGE=valkey/valkey:7.2-alpine
# must also update the version arg in ./test/tracetesting/Dockerfile
TRACETEST_IMAGE=kubeshop/tracetest:v1.4.2

# Demo Platform
ENV_PLATFORM=local

# OpenTelemetry Collector
HOST_FILESYSTEM=/
DOCKER_SOCK=/var/run/docker.sock
OTEL_COLLECTOR_HOST=otelcol
OTEL_COLLECTOR_PORT_GRPC=4317
OTEL_COLLECTOR_PORT_HTTP=4318
OTEL_COLLECTOR_CONFIG=./src/otelcollector/otelcol-config.yml
OTEL_COLLECTOR_CONFIG_EXTRAS=./src/otelcollector/otelcol-config-extras.yml
OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC}
PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:8080/otlp-http/v1/traces

# OpenTelemetry Resource Definitions
OTEL_RESOURCE_ATTRIBUTES="service.namespace=opentelemetry-demo"
OTEL_RESOURCE_ATTRIBUTES=service.namespace=opentelemetry-demo,service.version=${IMAGE_VERSION}

# Metrics Temporality
OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=cumulative

# ******************
# Core Demo Services
# ******************
# Accounting Service
ACCOUNTING_SERVICE_DOCKERFILE=./src/accountingservice/Dockerfile

# Ad Service
AD_SERVICE_PORT=9555
AD_SERVICE_ADDR=adservice:${AD_SERVICE_PORT}
AD_SERVICE_DOCKERFILE=./src/adservice/Dockerfile

# Cart Service
CART_SERVICE_PORT=7070
CART_SERVICE_ADDR=cartservice:${CART_SERVICE_PORT}
CART_SERVICE_DOCKERFILE=./src/cartservice/src/Dockerfile

# Checkout Service
CHECKOUT_SERVICE_PORT=5050
CHECKOUT_SERVICE_ADDR=checkoutservice:${CHECKOUT_SERVICE_PORT}
CHECKOUT_SERVICE_DOCKERFILE=./src/checkoutservice/Dockerfile

# Currency Service
CURRENCY_SERVICE_PORT=7001
CURRENCY_SERVICE_ADDR=currencyservice:${CURRENCY_SERVICE_PORT}
CURRENCY_SERVICE_DOCKERFILE=./src/currencyservice/Dockerfile

# Email Service
EMAIL_SERVICE_PORT=6060
EMAIL_SERVICE_ADDR=http://emailservice:${EMAIL_SERVICE_PORT}
EMAIL_SERVICE_DOCKERFILE=./src/emailservice/Dockerfile

# Feature Flag Service
FEATURE_FLAG_SERVICE_PORT=8081
FEATURE_FLAG_SERVICE_ADDR=featureflagservice:${FEATURE_FLAG_SERVICE_PORT}
FEATURE_FLAG_SERVICE_HOST=feature-flag-service
FEATURE_FLAG_GRPC_SERVICE_PORT=50053
FEATURE_FLAG_GRPC_SERVICE_ADDR=featureflagservice:${FEATURE_FLAG_GRPC_SERVICE_PORT}
# Fraud Service
FRAUD_SERVICE_DOCKERFILE=./src/frauddetectionservice/Dockerfile

# Frontend
FRONTEND_PORT=8080
FRONTEND_ADDR=frontend:${FRONTEND_PORT}
FRONTEND_DOCKERFILE=./src/frontend/Dockerfile

# Frontend Proxy (Envoy)
FRONTEND_HOST=frontend
ENVOY_PORT=8080
FRONTEND_PROXY_ADDR=frontend-proxy:${ENVOY_PORT}
FRONTEND_PROXY_DOCKERFILE=./src/frontendproxy/Dockerfile

# Image Provider
IMAGE_PROVIDER_HOST=imageprovider
IMAGE_PROVIDER_PORT=8081
IMAGE_PROVIDER_DOCKERFILE=./src/imageprovider/Dockerfile

# Load Generator
LOCUST_WEB_PORT=8089
Expand All @@ -77,37 +95,48 @@ LOCUST_HOST=http://${FRONTEND_PROXY_ADDR}
LOCUST_WEB_HOST=loadgenerator
LOCUST_AUTOSTART=true
LOCUST_HEADLESS=false
LOAD_GENERATOR_DOCKERFILE=./src/loadgenerator/Dockerfile

# Payment Service
PAYMENT_SERVICE_PORT=50051
PAYMENT_SERVICE_ADDR=paymentservice:${PAYMENT_SERVICE_PORT}
PAYMENT_SERVICE_DOCKERFILE=./src/paymentservice/Dockerfile

# Product Catalog Service
PRODUCT_CATALOG_SERVICE_PORT=3550
PRODUCT_CATALOG_SERVICE_ADDR=productcatalogservice:${PRODUCT_CATALOG_SERVICE_PORT}
PRODUCT_CATALOG_DOCKERFILE=./src/productcatalogservice/Dockerfile

# Quote Service
QUOTE_SERVICE_PORT=8090
QUOTE_SERVICE_ADDR=http://quoteservice:${QUOTE_SERVICE_PORT}
QUOTE_SERVICE_DOCKERFILE=./src/quoteservice/Dockerfile

# Recommendation Service
RECOMMENDATION_SERVICE_PORT=9001
RECOMMENDATION_SERVICE_ADDR=recommendationservice:${RECOMMENDATION_SERVICE_PORT}
RECOMMENDATION_SERVICE_DOCKERFILE=./src/recommendationservice/Dockerfile

# Shipping Service
SHIPPING_SERVICE_PORT=50050
SHIPPING_SERVICE_ADDR=shippingservice:${SHIPPING_SERVICE_PORT}
SHIPPING_SERVICE_DOCKERFILE=./src/shippingservice/Dockerfile

# ******************
# Dependent Services
# ******************
# flagd
FLAGD_HOST=flagd
FLAGD_PORT=8013

# Kafka
KAFKA_SERVICE_PORT=9092
KAFKA_SERVICE_ADDR=kafka:${KAFKA_SERVICE_PORT}
KAFKA_SERVICE_DOCKERFILE=./src/kafka/Dockerfile

# Redis
REDIS_PORT=6379
REDIS_ADDR=redis-cart:${REDIS_PORT}
# Valkey
VALKEY_PORT=6379
VALKEY_ADDR=valkey-cart:${VALKEY_PORT}

# ********************
# Telemetry Components
Expand Down
2 changes: 2 additions & 0 deletions .env.override
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DO NOT PUSH CHANGES OF THIS FILE TO opentelemetry/opentelemetry-demo
# PLACE YOUR .env ENVIRONMENT VARIABLES OVERRIDES IN THIS FILE
173 changes: 4 additions & 169 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
@@ -1,179 +1,14 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
name: Test image generation

on:
push:
paths:
- 'src/**'
- 'test/**'
workflow_call:
inputs:
push:
description: Should the images be pushed
default: false
required: false
type: boolean
version:
description: The version used when tagging the image
default: 'dev'
required: false
type: string

jobs:
build_and_push_images:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

env:
RELEASE_VERSION: "${{ github.event.release.tag_name }}"
DOCKERHUB_REPO: "otel/demo"
GHCR_REPO: "ghcr.io/open-telemetry/demo"

strategy:
fail-fast: false
matrix:
file_tag:
- file: ./src/adservice/Dockerfile
tag_suffix: adservice
context: ./
setup-qemu: true
- file: ./src/cartservice/src/Dockerfile
tag_suffix: cartservice
context: ./
setup-qemu: false
- file: ./src/checkoutservice/Dockerfile
tag_suffix: checkoutservice
context: ./
setup-qemu: true
- file: ./src/currencyservice/Dockerfile
tag_suffix: currencyservice
context: ./src/currencyservice
setup-qemu: true
- file: ./src/emailservice/Dockerfile
tag_suffix: emailservice
context: ./src/emailservice
setup-qemu: true
- file: ./src/ffspostgres/Dockerfile
tag_suffix: ffspostgres
context: ./
setup-qemu: true
# NOTE:
# https://github.com/open-telemetry/opentelemetry-demo/issues/956
# Until dedicated ARM runners are available for GHA we cannot upgrade
# OTP/Elixir versions. Please do not change the OTP/Elixir versions.
- file: ./src/featureflagservice/Dockerfile
tag_suffix: featureflagservice
context: ./
setup-qemu: true
- file: ./src/frontend/Dockerfile
tag_suffix: frontend
context: ./
setup-qemu: true
- file: ./src/frontendproxy/Dockerfile
tag_suffix: frontendproxy
context: ./
setup-qemu: true
- file: ./src/loadgenerator/Dockerfile
tag_suffix: loadgenerator
context: ./
setup-qemu: true
- file: ./src/paymentservice/Dockerfile
tag_suffix: paymentservice
context: ./
setup-qemu: true
- file: ./src/productcatalogservice/Dockerfile
tag_suffix: productcatalogservice
context: ./
setup-qemu: true
- file: ./src/quoteservice/Dockerfile
tag_suffix: quoteservice
context: ./
setup-qemu: true
- file: ./src/shippingservice/Dockerfile
tag_suffix: shippingservice
context: ./
setup-qemu: true
- file: ./src/recommendationservice/Dockerfile
tag_suffix: recommendationservice
context: ./
setup-qemu: true
- file: ./src/kafka/Dockerfile
tag_suffix: kafka
context: ./
setup-qemu: true
- file: ./src/accountingservice/Dockerfile
tag_suffix: accountingservice
context: ./
setup-qemu: true
- file: ./src/frauddetectionservice/Dockerfile
tag_suffix: frauddetectionservice
context: ./
setup-qemu: true
- file: ./src/frontend/Dockerfile.cypress
tag_suffix: frontend-tests
context: ./
setup-qemu: true
- file: ./test/Dockerfile
tag_suffix: integrationTests
context: ./
setup-qemu: true

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check for changes and set push options
id: check_changes
run: |
DOCKERFILE_DIR=$(dirname ${{ matrix.file_tag.file }})
FILES_CHANGED=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} -- $DOCKERFILE_DIR)
FORCE_PUSH=${{ inputs.push }}
if [ "$FORCE_PUSH" = true ]; then
echo "Force push is enabled, proceeding with build."
echo "skip=false" >> "$GITHUB_OUTPUT"
elif [ -z "$FILES_CHANGED" ]; then
echo "No changes in ${{ matrix.file_tag.context }}, skipping build."
echo "skip=true" >> "$GITHUB_OUTPUT"
else
echo "Changes detected in ${{ matrix.file_tag.context }}, proceeding with build."
echo "skip=false" >> "$GITHUB_OUTPUT"
fi
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
if: ${{ inputs.push }}
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: ${{ inputs.push }}
- name: Set up QEMU
if: ${{ matrix.file_tag.setup-qemu }}
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:master
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
config-inline: |
[worker.oci]
max-parallelism = 2
- name: Matrix Build and push demo images
if: steps.check_changes.outputs.skip == 'false'
uses: docker/build-push-action@v5.0.0
with:
context: ${{ matrix.file_tag.context }}
file: ${{ matrix.file_tag.file }}
platforms: linux/amd64,linux/arm64
push: ${{ inputs.push }}
tags: |
${{ env.DOCKERHUB_REPO }}:${{ inputs.version }}-${{matrix.file_tag.tag_suffix }}
${{ env.GHCR_REPO }}:${{ inputs.version }}-${{ matrix.file_tag.tag_suffix }}
cache-from: type=gha
cache-to: type=gha
build_images:
if: github.repository == 'open-telemetry/opentelemetry-demo'
uses: ./.github/workflows/component-build-images.yml
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
build_images:
uses: ./.github/workflows/build-images.yml
uses: ./.github/workflows/component-build-images.yml
with:
push: false
version: 'dev'
Expand Down
Loading
Loading