@@ -18,7 +18,6 @@ COPY cmd ./cmd
1818COPY loadgen ./loadgen
1919COPY scenarios ./scenarios
2020COPY workers ./workers/
21- COPY common ./common
2221COPY go.mod go.sum ./
2322
2423# Install Antithesis SDK and instrumentor
@@ -36,22 +35,20 @@ COPY --from=source /go/pkg/mod /go/pkg/mod
3635WORKDIR /omes_source
3736
3837# Instrument OMES with Antithesis
39- RUN echo "🔧 Instrumenting OMES ..." && \
38+ RUN echo "🔧 Instrumenting..." && \
4039 mkdir /omes_transformed && \
4140 antithesis-go-instrumentor /omes_source /omes_transformed && \
42- cp -r /omes_source/.git /omes_transformed/ 2>/dev/null || true && \
43- mv /omes_transformed /instrumented && \
41+ cp -r /omes_source/.git /omes_transformed/customer/ 2>/dev/null || true && \
42+ cp /omes_source/go.mod /omes_source/go.sum /omes_transformed/customer/ && \
4443 mkdir -p /notifier /symbols && \
45- mv /instrumented /notifier.json /notifier/ 2>/dev/null || true && \
46- mv /instrumented /symbols.json /symbols/ 2>/dev/null || true
44+ cp /omes_transformed /notifier.json /notifier/ 2>/dev/null || true && \
45+ cp /omes_transformed /symbols.json /symbols/ 2>/dev/null || true
4746
4847# Build stage: compile the instrumented code
4948FROM --platform=linux/$TARGETARCH golang:1.25 AS build
5049
5150ARG TARGETARCH
5251
53- WORKDIR /app
54-
5552# Install protobuf compiler and git
5653RUN apt-get update \
5754 && DEBIAN_FRONTEND=noninteractive \
@@ -72,8 +69,11 @@ RUN wget -q -O - https://sh.rustup.rs | sh -s -- -y \
7269 fi
7370ENV PATH="$PATH:/root/.cargo/bin"
7471
75- # Copy instrumented source code
76- COPY --from=instrumented /instrumented /app
72+ # Copy entire instrumented structure (includes customer code + notifier package)
73+ COPY --from=instrumented /omes_transformed /omes_transformed
74+
75+ # Set working directory to the customer code
76+ WORKDIR /omes_transformed/customer
7777
7878# Build the CLI
7979RUN CGO_ENABLED=0 go build -o temporal-omes ./cmd
0 commit comments