aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-12-21 13:43:25 +0000
committerterminaldweller <thabogre@gmail.com>2022-12-21 13:43:25 +0000
commit9f174dea7865c9b2aa9228fc26f8dc9c4895ac74 (patch)
treede99dc91ff11cb1a243f0dc6cea1734dfa6eaf05 /docker
parentupdate (diff)
downloadscripts-9f174dea7865c9b2aa9228fc26f8dc9c4895ac74.tar.gz
scripts-9f174dea7865c9b2aa9228fc26f8dc9c4895ac74.zip
update
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/docker_builders.sh25
-rwxr-xr-xdocker/mariadb.sh3
2 files changed, 17 insertions, 11 deletions
diff --git a/docker/docker_builders.sh b/docker/docker_builders.sh
index f791e6a..c524ec4 100755
--- a/docker/docker_builders.sh
+++ b/docker/docker_builders.sh
@@ -1,22 +1,25 @@
#!/bin/sh
+ALL_PROXY="socks5://127.0.0.1:9995"
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"
+NO_PROXY="127.0.0.0/8,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12"
# 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} \
+# --driver-opt env.no_proxy=${NO_PROXY} \
+# --name proxy_builder
+
+# --driver-opt env.http_proxy="${SOCKS_4_PROXY}" \
+# --driver-opt env.https_proxy="${SOCKS_4_PROXY}" \
+# --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} \
+ --driver-opt env.ALL_PROXY="${ALL_PROXY}" \
--name proxy_builder_4
-docker buildx create --name armbuilder
+# docker buildx create --name armbuilder_proxy
# choose one as default
-docker buildx use proxy_builder_6
+docker buildx use proxy_builder_4
diff --git a/docker/mariadb.sh b/docker/mariadb.sh
new file mode 100755
index 0000000..314cf0e
--- /dev/null
+++ b/docker/mariadb.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env sh
+
+docker run --detach -p 3306:3306 --env MARIADB_USER=devi --env MARIADB_PASSWORD=password --env MARIADB_ROOT_PASSWORD=password mariadb:10.9.4-jammy