dockerimg: set http.postBuffer for git inside container
We sometimes see failures with git push from the innie to the outie.
It appears to be when there is a big binary in the commit
(which is usually because of a different bug).
The internet suggests the HTTP POST limit in the git client
may be an issue (1MB in the git version in debian bookworm),
so let's bump it up.
diff --git a/dockerimg/createdockerfile.go b/dockerimg/createdockerfile.go
index 75ece83..a7f641c 100644
--- a/dockerimg/createdockerfile.go
+++ b/dockerimg/createdockerfile.go
@@ -91,7 +91,8 @@
ARG GIT_USER_NAME
RUN git config --global user.email "$GIT_USER_EMAIL" && \
- git config --global user.name "$GIT_USER_NAME"
+ git config --global user.name "$GIT_USER_NAME" && \
+ git config --global http.postBuffer 524288000
LABEL sketch_context="{{.InitFilesHash}}"
COPY . /app