Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce size of images #339

Draft
wants to merge 4 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions sources/install/package_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function install_rust_cargo() {
curl https://sh.rustup.rs -sSf -o /tmp/rustup.sh
sh /tmp/rustup.sh -y
source "$HOME/.cargo/env"
rm /tmp/rustup.sh
add-test-command "cargo --version"
}

Expand Down Expand Up @@ -114,6 +115,7 @@ function install_pyenv() {
fapt git curl build-essential
curl -o /tmp/pyenv.run https://pyenv.run
bash /tmp/pyenv.run
rm /tmp/pyenv.run
local v
# add pyenv to PATH
export PATH="/root/.pyenv/bin:$PATH"
Expand Down Expand Up @@ -180,6 +182,7 @@ function install_rvm() {
rvm install ruby-3.1.2
rvm get head
gem update
rm /tmp/rvm.sh
add-test-command "rvm --version"
}

Expand Down Expand Up @@ -210,6 +213,7 @@ function install_ohmyzsh() {
git -C ~/.oh-my-zsh/custom/plugins/ clone --depth 1 https://github.com/agkozak/zsh-z
git -C ~/.oh-my-zsh/custom/plugins/ clone --depth 1 https://github.com/lukechilds/zsh-nvm
zsh -c "source ~/.oh-my-zsh/custom/plugins/zsh-nvm/zsh-nvm.plugin.zsh" # this is needed to start an instance of zsh to have the plugin set up
rm /tmp/ohmyzsh.sh
}

function install_pipx() {
Expand All @@ -230,6 +234,7 @@ function install_yarn() {
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
apt-get update
fapt yarn
rm /tmp/yarn.gpg.armored
add-test-command "yarn --help"
}

Expand Down Expand Up @@ -326,6 +331,7 @@ function install_java11() {
tar -xzf /tmp/openjdk11-jdk.tar.gz --directory /tmp
mkdir -p "/usr/lib/jvm"
mv /tmp/jdk-11* /usr/lib/jvm/java-11-openjdk
rm /tmp/openjdk11-jdk.tar.gz
add-test-command "/usr/lib/jvm/java-11-openjdk/bin/java --version"
}

Expand All @@ -345,6 +351,7 @@ function install_java21() {
tar -xzf /tmp/openjdk21-jdk.tar.gz --directory /tmp
mkdir -p "/usr/lib/jvm"
mv /tmp/jdk-21* /usr/lib/jvm/java-21-openjdk
rm /tmp/openjdk21-jdk.tar.gz
add-test-command "/usr/lib/jvm/java-21-openjdk/bin/java --version"
}

Expand Down Expand Up @@ -416,6 +423,7 @@ function package_base() {
# splitting curl | bash to avoid having additional logs put in curl output being executed because of catch_and_retry
curl -sL https://git.io/vokNn -o /tmp/apt-fast-install.sh
bash /tmp/apt-fast-install.sh
rm /tmp/apt-fast-install.sh
deploy_exegol
install_exegol-history
fapt software-properties-common
Expand Down
1 change: 1 addition & 0 deletions sources/install/package_misc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ function install_ngrok() {
criticalecho-noexit "This installation function doesn't support architecture $(uname -m)" && return
fi
tar xvzf /tmp/ngrok.tgz -C /opt/tools/bin
rm /tmp/ngrok.tgz
add-history ngrok
add-test-command "ngrok version"
add-to-list "ngrok,https://github.com/inconshreveable/ngrok,Expose a local server behind a NAT or firewall to the internet"
Expand Down
1 change: 1 addition & 0 deletions sources/install/package_osint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ function install_maltego() {
colorecho "Installing Maltego"
wget https://maltego-downloads.s3.us-east-2.amazonaws.com/linux/Maltego.v4.3.0.deb -O /tmp/maltegov4.3_package.deb
dpkg -i /tmp/maltegov4.3_package.deb
rm /tmp/maltegov4.3_package.deb
add-history maltego
add-test-command "file /usr/share/maltego/bin/maltego"
add-to-list "maltego,https://www.paterva.com/web7/downloads.php,A tool used for open-source intelligence and forensics"
Expand Down
2 changes: 2 additions & 0 deletions sources/install/package_web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ function install_feroxbuster() {
bash /tmp/install-feroxbuster.sh
# Adding a symbolic link in order for autorecon to be able to find the Feroxbuster binary
ln -v -s /opt/tools/feroxbuster/feroxbuster /opt/tools/bin/feroxbuster
rm /tmp/install-feroxbuster.sh
add-aliases feroxbuster
add-history feroxbuster
add-test-command "feroxbuster --help"
Expand Down Expand Up @@ -818,6 +819,7 @@ function install_soapui() {
mkdir -p /opt/tools/SoapUI/
wget https://dl.eviware.com/soapuios/5.7.0/SoapUI-5.7.0-linux-bin.tar.gz -O /tmp/SoapUI.tar.gz
tar xvf /tmp/SoapUI.tar.gz -C /opt/tools/SoapUI/ --strip=1
rm /tmp/SoapUI.tar.gz
add-aliases soapui
add-history soapui
add-test-command "/opt/tools/SoapUI/bin/testrunner.sh"
Expand Down
Loading