From 23636fc3fff418d5d821994db6c898a586342f47 Mon Sep 17 00:00:00 2001 From: Xavier Basty Date: Wed, 29 Mar 2023 15:09:52 +0200 Subject: [PATCH] fix: add `protoc` to docker build (#11) --- .github/workflows/release.yml | 3 --- Dockerfile | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3086cd7..dee3ca9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -122,9 +122,6 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - - name: Install Protoc - uses: arduino/setup-protoc@v1 - - name: Build, tag, and push image uses: docker/build-push-action@v3 with: diff --git a/Dockerfile b/Dockerfile index 01d2ffc..b32e28e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,6 +43,12 @@ FROM chef AS build ARG release ENV RELEASE=${release:+--release} +# This is a build requirement of `opentelemetry-otlp`. Once the new version +# is rolled out, which no longer requires the `protoc`, we'll be able to +# get rid of this. +RUN apt-get update \ + && apt-get install -y --no-install-recommends protobuf-compiler + WORKDIR /app # Cache dependancies COPY --from=plan /app/recipe.json recipe.json