Skip to content

Commit 0e51508

Browse files
gregvirginjyn514
authored andcommitted
Adjustment to support private crate registries in dockerfiles/entrypoint.sh
1 parent de197f9 commit 0e51508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dockerfiles/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ done
2828
set -e
2929

3030
if ! [ -d "${DOCSRS_PREFIX}/crates.io-index/.git" ]; then
31-
git clone https://github.com/rust-lang/crates.io-index "${DOCSRS_PREFIX}/crates.io-index"
31+
git clone ${REGISTRY_URL:-https://github.com/rust-lang/crates.io-index} "${DOCSRS_PREFIX}/crates.io-index"
3232
# Prevent new crates built before the container creation to be built
3333
git --git-dir="$DOCSRS_PREFIX/crates.io-index/.git" branch crates-index-diff_last-seen
3434
fi

0 commit comments

Comments
 (0)