Skip to content

Commit df045db

Browse files
committed
non ci sto capendo più niente!
1 parent 34390e8 commit df045db

15 files changed

Lines changed: 48 additions & 12 deletions

pods/almalinux.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export CMD_PATH=$(cd `dirname $0`; pwd)
55
export PROJECT_NAME="${CMD_PATH##*/}"
66
cd $CMD_PATH
77

8+
FAMILY_ID="fedora"
89
IMAGE=almalinux
910
source podman.command.sh

pods/archlinux.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export CMD_PATH=$(cd `dirname $0`; pwd)
55
export PROJECT_NAME="${CMD_PATH##*/}"
66
cd $CMD_PATH
77

8+
FAMILY_ID="archlinux"
89
IMAGE="archlinux:latest"
910
source podman.command.sh arch

pods/ci/kernel-overlay-install.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,12 @@ if [[ -f /etc/os-release ]]; then
8080
apt install -y libcap2-bin
8181

8282
else
83-
echo "distro not supported"
84-
exit 1
83+
# DEFAULT Debian
84+
echo "install the package of capsh"
85+
apt update -y
86+
apt install linux-image-amd64 -y
87+
apt install -y kmod
88+
apt install -y libcap2-bin
8589
fi
8690
fi
8791

pods/ci/penguins-eggs-install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,6 @@ if [ -f /etc/os-release ]; then
107107
arch_install
108108
else
109109
tarballs_install
110+
#debs_install
110111
fi
111112
fi

pods/ci/run

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -x
44
export CMD_PATH=$(cd `dirname $0`; pwd)
55
export PROJECT_NAME="${CMD_PATH##*/}"
66
echo $PROJECT_NAME
7+
echo "FAMILY_ID $FAMILY_ID"
78

89
if [ -f /etc/os-release ]; then
910
. /etc/os-release
@@ -26,7 +27,8 @@ if [ -f /etc/os-release ]; then
2627
elif [[ "$ID" == "ubuntu" ]]; then
2728
source /ci/*run-on-ubuntu.sh
2829
else
29-
echo "distro not supported"
30-
exit 1
30+
if [[ "$FAMILY_ID" == "debian" ]]; then
31+
source /ci/*run-on-debian.sh
32+
fi
3133
fi
3234
fi

pods/ci/run-on-debian.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ source ./kernel-overlay-install.sh
4343
source ./penguins-eggs-install.sh
4444

4545
# systemd
46-
systemctl set-default multi-user.target
46+
systemctl set-default graphical.target
47+
#systemctl set-default multi-user.target
4748
systemctl enable getty@tty1.service
4849

4950
# execute eggs

pods/debian.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ if [ -f /etc/os-release ]; then
1717
fi
1818
fi
1919

20+
FAMILY_ID="debian"
2021
IMAGE="debian:12"
2122
source podman.command.sh debian
2223

pods/devuan.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ if [ -f /etc/os-release ]; then
1919
fi
2020
fi
2121

22+
FAMILY_ID="debian"
2223
IMAGE="devuan/devuan:daedalus"
2324
source podman.command.sh devuan
2425

pods/fedora.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ export PROJECT_NAME="${CMD_PATH##*/}"
77
echo $PROJECT_NAME
88
cd $CMD_PATH
99

10+
FAMILY_ID="fedora"
1011
IMAGE="fedora:41"
1112
source podman.command.sh

pods/lmde.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
3+
set -x
4+
export CMD_PATH=$(cd `dirname $0`; pwd)
5+
export PROJECT_NAME="${CMD_PATH##*/}"
6+
cd $CMD_PATH
7+
8+
# define YOLK if host=Debian
9+
if [ -f /etc/os-release ]; then
10+
. /etc/os-release
11+
if [[ "$ID" == "debian" ]]; then
12+
DEST="/var/local/yolk"
13+
if [ ! -d $DEST ]; then
14+
sudo mkdir -p $DEST
15+
fi
16+
YOLK="-v $DEST:$DEST"
17+
fi
18+
fi
19+
20+
FAMILY_ID="debian"
21+
IMAGE="dockerscripts/linuxmint:lmde-minimal"
22+
source podman.command.sh

0 commit comments

Comments
 (0)