initial commit

This commit is contained in:
2025-01-08 00:59:40 -05:00
commit e266f84da7
7 changed files with 161 additions and 0 deletions

21
docker/scripts/entrypoint.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/sh
if [ -n "$DEP" ]
then
if [ "$DEP" = "testing" ]
then
/scripts/testing.sh
fi
fi
if [ -z "$REPO" ]
then
/bin/bash
exit $?;
fi
# Clone the git repo
git clone "$REPO" /home/user/pkg
cd /home/user/pkg
makepkg -smf --noconfirm --noprogressbar --skippgpcheck --noarchive
exit $?;

13
docker/scripts/testing.arch.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# Enable the [core-testing] repository by uncommenting the relevant lines in the configuration file
sudo sed -i 's/^#\[core-testing\]/\[core-testing\]/' /etc/pacman.conf
# Enable the [extra-testing] repository by uncommenting the relevant lines in the configuration file
sudo sed -i 's/^#\[extra-testing\]/\[extra-testing\]/' /etc/pacman.conf
# Uncomment the 'Include = /etc/pacman.d/mirrorlist' line in the configuration file if necessary
sudo sed -i '/testing\]/{n;s/^#//}' /etc/pacman.conf
# Update the package list and upgrade the system
sudo pacman -Syu

View File