fix: isolate provider docker config during deploy
This commit is contained in:
@@ -828,6 +828,9 @@ function sourceProxyPrelude(service: UniDeskMicroserviceConfig): string {
|
||||
if (targetIsMain(service)) return "";
|
||||
const strictHostKeyChecking = isUnideskRepo(service.repository.url) ? "yes" : "accept-new";
|
||||
return [
|
||||
"export DOCKER_CONFIG=/tmp/unidesk-docker-config-clean",
|
||||
"mkdir -p \"$DOCKER_CONFIG\"",
|
||||
"[ -f \"$DOCKER_CONFIG/config.json\" ] || printf '{}' > \"$DOCKER_CONFIG/config.json\"",
|
||||
`build_proxy=${shellQuote(providerGatewayWsEgressProxyUrl)}`,
|
||||
"export HTTP_PROXY=\"$build_proxy\" HTTPS_PROXY=\"$build_proxy\" ALL_PROXY=\"$build_proxy\"",
|
||||
"export NO_PROXY=\"localhost,127.0.0.1,::1,host.docker.internal\"",
|
||||
|
||||
Reference in New Issue
Block a user