Skip to content

Commit

Permalink
Fix the Docker image build (#8160)
Browse files Browse the repository at this point in the history
The smokescreen clone was being done with `--depth=1`, which broke as
soon as the tip of the master branch advanced past the commit we wanted.
Use `--filter=blob:none` instead, which still avoids fetching the full
history, but allows us to check out any commit we want.
  • Loading branch information
SpecLad committed Jul 12, 2024
1 parent 54e857d commit 9565cff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ RUN --mount=type=cache,target=/root/.cache/pip/http-v2 \

FROM golang:1.22.4 AS build-smokescreen

RUN git clone --depth=1 https://github.com/stripe/smokescreen.git
RUN git clone --filter=blob:none --no-checkout https://github.com/stripe/smokescreen.git
RUN cd smokescreen && git checkout eb1ac09 && go build -o /tmp/smokescreen

FROM ${BASE_IMAGE}
Expand Down
4 changes: 4 additions & 0 deletions changelog.d/20240712_155156_roman.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Fixed

- Fixed broken server Docker image build
(<https://github.com/cvat-ai/cvat/pull/8160>)

0 comments on commit 9565cff

Please sign in to comment.