aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2023-09-17 19:17:03 +0800
committerKunoiSayami <[email protected]>2023-09-17 19:17:03 +0800
commit35b38c50f9a8f0edc786265b6c21d7cf1da18666 (patch)
tree723c03144fc5c1ba81df686e1c903179bb61bf2c /docker
parenta124e7d9b4528571819b87de99d47e274b66d3e2 (diff)
feat(script): Support proxy for upload
* fix(pkg): Fix liboping build Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/dockerbuild.sh7
-rw-r--r--docker/dockerfile2
2 files changed, 7 insertions, 2 deletions
diff --git a/docker/dockerbuild.sh b/docker/dockerbuild.sh
index 650c1db..ffdc875 100755
--- a/docker/dockerbuild.sh
+++ b/docker/dockerbuild.sh
@@ -4,7 +4,12 @@ set -Eeuo pipefail
sudo pacman -Sy
cd /home/build
-if [ ! -d repos ] || [ "$(ls -A repos)" ]; then
+
+if [ -f ./hook-run.sh ]; then
+ . ./hook-run.sh
+fi
+
+if [ ! -d repos ]; then
git clone --depth=3 https://github.com/kunoisayami/repos
diff --git a/docker/dockerfile b/docker/dockerfile
index dcef1bb..5c3e635 100644
--- a/docker/dockerfile
+++ b/docker/dockerfile
@@ -28,7 +28,7 @@ RUN pacman --noconfirm --needed -Sy archlinux-keyring
RUN pacman --noconfirm --needed -Su base-devel gnupg git yay
-RUN pacman --noconfirm --needed -S python python-aiohttp python-aiofiles moreutils
+RUN pacman --noconfirm --needed -S python python-aiohttp python-aiofiles python-aiohttp-socks moreutils
RUN echo 'build ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers