Skip to content

Commit

Permalink
fix(graph-proxy): use custom telemetry library
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvigneshwars committed Feb 3, 2025
1 parent 5f6a9a2 commit 47a513b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/_graph_proxy_container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ jobs:
uses: docker/[email protected]
with:
build-args: ARGO_SERVER_SCHEMA_URL=https://raw.githubusercontent.com/argoproj/argo-workflows/main/api/jsonschema/schema.json
context: ./graph-proxy
context: .
file: ./graph-proxy/Dockerfile
target: deploy
push: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
load: ${{ !(github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) }}
Expand Down
11 changes: 5 additions & 6 deletions graph-proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,18 @@ WORKDIR /app

RUN rustup component add rustfmt

COPY argo-workflows-openapi/Cargo.toml argo-workflows-openapi/Cargo.toml
COPY argo-workflows-openapi/build.rs argo-workflows-openapi/build.rs
COPY argo-workflows-openapi/src/lib.rs argo-workflows-openapi/src/lib.rs
COPY Cargo.toml Cargo.lock ./
COPY ../telemetry telemetry
COPY graph-proxy/argo-workflows-openapi/Cargo.toml argo-workflows-openapi/Cargo.toml
COPY graph-proxy/argo-workflows-openapi/build.rs argo-workflows-openapi/build.rs
COPY graph-proxy/argo-workflows-openapi/src/lib.rs argo-workflows-openapi/src/lib.rs
COPY graph-proxy/Cargo.toml graph-proxy/Cargo.lock ./
COPY telemetry /telemetry

RUN mkdir src \
&& echo "fn main() {}" > src/main.rs \
&& touch --date @0 src/main.rs \
&& cargo build --release

COPY . .
RUN ln -s /telemetry /app/telemetry

RUN touch src/main.rs \
&& cargo build --release
Expand Down

0 comments on commit 47a513b

Please sign in to comment.