diff options
author | terminaldweller <thabogre@gmail.com> | 2022-07-07 06:30:23 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-07-07 06:30:23 +0000 |
commit | ed09c5f82ed5ef4932f67af72551807e13a4412d (patch) | |
tree | 6ad4a8bcbd08a9cf8b6b3e6a2871d200b478d9eb /docker | |
parent | updated haproxy (diff) | |
download | scripts-ed09c5f82ed5ef4932f67af72551807e13a4412d.tar.gz scripts-ed09c5f82ed5ef4932f67af72551807e13a4412d.zip |
a lot of updates
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/docker_builders.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docker/docker_builders.sh b/docker/docker_builders.sh new file mode 100755 index 0000000..f791e6a --- /dev/null +++ b/docker/docker_builders.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +SOCKS_4_PROXY="socks5://127.0.0.1:9995" +SOCKS_6_PROXY="socks5://[::1]:9993" +NO_PROXY="localhost,127.0.0.0/8,192.168.0.0/16,::1" +# create the builders +# --driver-opt env.no_proxy=${NO_PROXY} \ +docker buildx create \ + --driver-opt env.http_proxy=${SOCKS_6_PROXY} \ + --driver-opt env.https_proxy=${SOCKS_6_PROXY} \ + --name proxy_builder_6 + +# --driver-opt env.no_proxy=${NO_PROXY} \ +docker buildx create \ + --driver-opt env.http_proxy=${SOCKS_4_PROXY} \ + --driver-opt env.https_proxy=${SOCKS_4_PROXY} \ + --name proxy_builder_4 + +docker buildx create --name armbuilder + +# choose one as default +docker buildx use proxy_builder_6 |