Skip to content

Commit

Permalink
Merge branch 'main' into shippingservice-fix-context-prop
Browse files Browse the repository at this point in the history
  • Loading branch information
julianocosta89 authored Mar 8, 2024
2 parents 32ba75a + 0c80094 commit 8528765
Show file tree
Hide file tree
Showing 19 changed files with 35 additions and 14,205 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
setup-qemu: true
- file: ./src/currencyservice/Dockerfile
tag_suffix: currencyservice
context: ./src/currencyservice
context: ./
setup-qemu: true
- file: ./src/emailservice/Dockerfile
tag_suffix: emailservice
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ test/tracetesting/tracetesting-vars.yaml
/src/paymentservice/demo.proto
/src/recommendationservice/demo_pb2*.py
/src/shippingservice/proto/
/src/productcatalogservice/genproto
/src/currencyservice/proto
/src/checkoutservice/genproto
/src/accountingservice/genproto
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ the release.
([#1406](https://github.com/open-telemetry/opentelemetry-demo/pull/1406))
* [CartService] - Add Host Detector
([#1415](https://github.com/open-telemetry/opentelemetry-demo/pull/1415))
* [chore] - add tests and odd profiles to make stop
([#1427](https://github.com/open-telemetry/opentelemetry-demo/pull/1427))
* [shippingservice] fix context propagation and add OTLP logs
([#1433](https://github.com/open-telemetry/opentelemetry-demo/pull/1433))

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ start-odd:

.PHONY: stop
stop:
docker compose down --remove-orphans --volumes
docker compose --profile tests --profile odd down --remove-orphans --volumes
@echo ""
@echo "OpenTelemetry Demo is stopped."

Expand Down
3 changes: 2 additions & 1 deletion docker-compose.minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ services:
image: ${IMAGE_NAME}:${DEMO_VERSION}-currencyservice
container_name: currency-service
build:
context: ./src/currencyservice
context: ./
dockerfile: ./src/currencyservice/Dockerfile
cache_from:
- ${IMAGE_NAME}:${IMAGE_VERSION}-currencyservice
deploy:
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ services:
image: ${IMAGE_NAME}:${DEMO_VERSION}-currencyservice
container_name: currency-service
build:
context: ./src/currencyservice
context: ./
dockerfile: ./src/currencyservice/Dockerfile
cache_from:
- ${IMAGE_NAME}:${IMAGE_VERSION}-currencyservice
deploy:
Expand Down
7 changes: 7 additions & 0 deletions src/accountingservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@


FROM golang:1.22.0-alpine AS builder
RUN apk update && apk add --no-cache make protobuf-dev
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

WORKDIR /usr/src/app/

COPY ./src/accountingservice/ ./
COPY ./pb/ ./pb

RUN protoc -I ./pb ./pb/demo.proto --go_out=./ --go-grpc_out=./
RUN go build -o /go/bin/accountingservice/

# -----------------------------------------------------------------------------
Expand Down
Loading

0 comments on commit 8528765

Please sign in to comment.