Skip to content

Commit

Permalink
[+] Nix Bundle + FlatImage
Browse files Browse the repository at this point in the history
  • Loading branch information
Azathothas committed Oct 16, 2024
1 parent c9b0b11 commit 3f84ce7
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/scripts/aarch64-Linux/init_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,19 @@
#----------------------#
#Dockerc
sudo curl -qfsSL "https://bin.ajam.dev/$(uname -m)/dockerc" -o "/usr/local/bin/dockerc" && sudo chmod +x "/usr/local/bin/dockerc"
##Setup FlatImage
# sudo rm -rvf "/opt/FLATIMAGE" 2>/dev/null ; sudo mkdir -p "/opt/FLATIMAGE"
# sudo chown -R "$(whoami):$(whoami)" "/opt/FLATIMAGE" && sudo chmod -R 755 "/opt/FLATIMAGE"
# curl -qfsSL "https://bin.ajam.dev/$(uname -m)/alpine-flatimage.no_strip" -o "/opt/FLATIMAGE/alpine"
# curl -qfsSL "https://bin.ajam.dev/$(uname -m)/archlinux-flatimage.no_strip" -o "/opt/FLATIMAGE/archlinux"
# curl -qfsSL "https://bin.ajam.dev/$(uname -m)/blueprint-flatimage.no_strip" -o "/opt/FLATIMAGE/blueprint"
# if [ -d "/opt/FLATIMAGE" ] && [ "$(find "/opt/FLATIMAGE" -mindepth 1 -print -quit 2>/dev/null)" ]; then
# find "/opt/FLATIMAGE" -maxdepth 1 -type f -exec chmod +x "{}" \;
# ls "/opt/FLATIMAGE" -lah ; du -sh "/opt/FLATIMAGE"
# else
# echo -e "\n[-] FlatImage Base Images NOT Found: /opt/FLATIMAGE\n"
# export CONTINUE="NO" && exit 1
# fi
#----------------------#
##Install golang
pushd "$($TMPDIRS)" >/dev/null 2>&1
Expand Down Expand Up @@ -319,6 +332,19 @@
fi
fi
fi
##Nix-Auxs
sudo rm -rvf "/opt/nix/nix-bundle" 2>/dev/null ; sudo mkdir -p "/opt/nix"
sudo chown -R "$(whoami):$(whoami)" "/opt/nix" && sudo chmod -R 755 "/opt/nix"
pushd "/opt/nix" >/dev/null 2>&1 && \
git clone --filter="blob:none" --depth="1" --quiet "https://github.com/nix-community/nix-bundle"
find "/opt/nix/nix-bundle" -maxdepth 1 -type f -exec chmod +x "{}" \; 2>/dev/null
popd >/dev/null 2>&1
if [ -d "/opt/nix/nix-bundle" ] && [ "$(find "/opt/nix/nix-bundle" -mindepth 1 -print -quit 2>/dev/null)" ]; then
ls "/opt/nix/nix-bundle" -lah ; du -sh "/opt/nix/nix-bundle"
else
echo -e "\n[-] nix-bundle REPO NOT Found: /opt/nix/nix-bundle\n"
export CONTINUE="NO" && exit 1
fi
#----------------------#
##Install rust & cargo
bash <(curl -qfsSL "https://sh.rustup.rs") -y
Expand Down
27 changes: 27 additions & 0 deletions .github/scripts/x86_64-Linux/init_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,20 @@
#----------------------#
#Dockerc
sudo curl -qfsSL "https://bin.ajam.dev/$(uname -m)/dockerc" -o "/usr/local/bin/dockerc" && sudo chmod +x "/usr/local/bin/dockerc"
#----------------------#
##Setup FlatImage
sudo rm -rvf "/opt/FLATIMAGE" 2>/dev/null ; sudo mkdir -p "/opt/FLATIMAGE"
sudo chown -R "$(whoami):$(whoami)" "/opt/FLATIMAGE" && sudo chmod -R 755 "/opt/FLATIMAGE"
curl -qfsSL "https://bin.ajam.dev/$(uname -m)/alpine-flatimage.no_strip" -o "/opt/FLATIMAGE/alpine"
curl -qfsSL "https://bin.ajam.dev/$(uname -m)/archlinux-flatimage.no_strip" -o "/opt/FLATIMAGE/archlinux"
curl -qfsSL "https://bin.ajam.dev/$(uname -m)/blueprint-flatimage.no_strip" -o "/opt/FLATIMAGE/blueprint"
if [ -d "/opt/FLATIMAGE" ] && [ "$(find "/opt/FLATIMAGE" -mindepth 1 -print -quit 2>/dev/null)" ]; then
find "/opt/FLATIMAGE" -maxdepth 1 -type f -exec chmod +x "{}" \;
ls "/opt/FLATIMAGE" -lah ; du -sh "/opt/FLATIMAGE"
else
echo -e "\n[-] FlatImage Base Images NOT Found: /opt/FLATIMAGE\n"
export CONTINUE="NO" && exit 1
fi
#----------------------#
##Install golang
pushd "$($TMPDIRS)" >/dev/null 2>&1
Expand Down Expand Up @@ -320,6 +334,19 @@
fi
fi
fi
##Nix-Auxs
sudo rm -rvf "/opt/nix/nix-bundle" 2>/dev/null ; sudo mkdir -p "/opt/nix"
sudo chown -R "$(whoami):$(whoami)" "/opt/nix" && sudo chmod -R 755 "/opt/nix"
pushd "/opt/nix" >/dev/null 2>&1 && \
git clone --filter="blob:none" --depth="1" --quiet "https://github.com/nix-community/nix-bundle"
find "/opt/nix/nix-bundle" -maxdepth 1 -type f -exec chmod +x "{}" \; 2>/dev/null
popd >/dev/null 2>&1
if [ -d "/opt/nix/nix-bundle" ] && [ "$(find "/opt/nix/nix-bundle" -mindepth 1 -print -quit 2>/dev/null)" ]; then
ls "/opt/nix/nix-bundle" -lah ; du -sh "/opt/nix/nix-bundle"
else
echo -e "\n[-] nix-bundle REPO NOT Found: /opt/nix/nix-bundle\n"
export CONTINUE="NO" && exit 1
fi
#----------------------#
#rust & cargo
bash <(curl -qfsSL "https://sh.rustup.rs") -y
Expand Down

0 comments on commit 3f84ce7

Please sign in to comment.