docker: scope Git trust to mounted build repositories

This commit is contained in:
selsta committed 2026-10-07 18:31:26 +02:00
1 parent 390e744af5
commit 6407930852
5 files changed
+21 -1

No files matched your search

+1
View File
@@ -1 +1,2 @@
*
!docker.gitconfig
+3 -1
View File
@@ -298,8 +298,10 @@ RUN mkdir ${NEW_SDK_ROOT} \
&& rm -rf ${ANDROID_SDK_ROOT} \
&& mv ${NEW_SDK_ROOT} ${ANDROID_SDK_ROOT}
COPY docker.gitconfig /etc/monero-gui.gitconfig
RUN git config --system --add include.path /etc/monero-gui.gitconfig
CMD set -ex \
&& git config --global --add safe.directory '*' \
&& cd /monero-gui \
&& mkdir -p build/Android/release \
&& cd build/Android/release \
+3
View File
@@ -249,3 +249,6 @@ RUN git clone -b libgcrypt-1.10.1 --depth 1 https://github.com/gpg/libgcrypt &&
make -j$THREADS && \
make -j$THREADS install && \
rm -rf $(pwd)
COPY docker.gitconfig /etc/monero-gui.gitconfig
RUN git config --system --add include.path /etc/monero-gui.gitconfig
+3
View File
@@ -193,3 +193,6 @@ RUN git clone -b libgcrypt-1.8.5 --depth 1 https://github.com/gpg/libgcrypt && \
make -j"$THREADS" install && \
cd .. && \
rm -rf libgcrypt
COPY docker.gitconfig /etc/monero-gui.gitconfig
RUN git config --system --add include.path /etc/monero-gui.gitconfig
+11
View File
@@ -0,0 +1,11 @@
# Keep this exact list in sync with the submodules.
[safe]
directory = /monero-gui
directory = /monero-gui/monero
directory = /monero-gui/external/quirc
directory = /monero-gui/monero/external/rapidjson
directory = /monero-gui/monero/external/rapidjson/thirdparty/gtest
directory = /monero-gui/monero/external/trezor-common
directory = /monero-gui/monero/external/trezor-common/defs/ethereum/tokens
directory = /monero-gui/monero/external/randomx
directory = /monero-gui/monero/external/supercop