-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use squid instead of mitmproxy on ci
- Loading branch information
1 parent
2feade5
commit 453a990
Showing
41 changed files
with
216 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
#!/bin/bash | ||
set -Eeuo pipefail | ||
|
||
# Install packages | ||
echo "----- install prerequisite packages -----" | ||
pacman -Syy --noconfirm | ||
pacman -Sy --noconfirm bash python3 python-pip icu base-devel libxml2 glibc openbsd-netcat | ||
pacman -Sy --noconfirm bash sudo python3 python-pip icu base-devel libxml2 glibc openbsd-netcat squid | ||
python3 -m pip install --upgrade pip --quiet | ||
sudo squid -k shutdown || true | ||
sudo rm -v /dev/shm/squid*.shm >/dev/null 2>&1 || true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#!/bin/bash | ||
set -Eeuo pipefail | ||
|
||
# Install packages | ||
yum install -y python38 procps gcc libxml2-devel openssl-devel libcurl-devel nc | ||
echo "----- install prerequisite packages -----" | ||
yum install -y sudo python38 procps gcc libxml2-devel openssl-devel libcurl-devel nc squid | ||
curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py | ||
USER="$(whoami)" | ||
export USER | ||
python3 /tmp/get-pip.py | ||
|
||
sudo squid -k shutdown || true | ||
sudo rm -v /dev/shm/squid*.shm >/dev/null 2>&1 || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
#!/bin/bash | ||
set -Eeuo pipefail | ||
|
||
# Install packages | ||
apt update | ||
apt -y install bash curl sudo libcurl4-openssl-dev libxml2-utils libxml2-dev libssl-dev python3 python3-pip netcat | ||
echo "----- install prerequisite packages -----" | ||
apt-get update | ||
apt-get -y install bash sudo curl libcurl4-openssl-dev libxml2-utils libxml2-dev libssl-dev python3 python3-pip netcat squid | ||
python3 -m pip install --upgrade pip --quiet | ||
sudo service squid stop | ||
sudo squid -k shutdown || true | ||
sudo rm -v /dev/shm/squid*.shm >/dev/null 2>&1 || true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
set -Eeuo pipefail | ||
|
||
echo "----- install prerequisite packages -----" | ||
brew install curl pkg-config squid | ||
python3 -m pip install --upgrade pip --quiet | ||
sudo squid -k shutdown || true | ||
sudo rm -v /dev/shm/squid*.shm >/dev/null 2>&1 || true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
#!/bin/bash | ||
set -Eeuo pipefail | ||
|
||
sudo apt update | ||
# Install libcurl dev so that hurl can be built dynamically with libcurl | ||
sudo apt install bash libcurl4-openssl-dev libxml2-utils netcat | ||
echo "----- install prerequisite packages -----" | ||
sudo apt-get update | ||
sudo apt-get -y install bash libcurl4-openssl-dev libxml2-utils netcat python3 python3-pip net-tools squid | ||
python3 -m pip install --upgrade pip --quiet | ||
sudo service squid stop || true | ||
sudo squid -k shutdown || true | ||
sudo rm -v /dev/shm/squid*.shm >/dev/null 2>&1 || true | ||
|
Oops, something went wrong.