13 Commits

Author SHA1 Message Date
effb12fac9 no woodpecker freebsd support, stay with github actions for now 2025-12-16 19:59:32 +01:00
10dfc19053 nope 2025-12-15 22:35:32 +01:00
4cbf81010e try 14.3 manually 2025-12-15 22:32:33 +01:00
72ce05e8c2 +df 2025-12-15 22:22:15 +01:00
b61aec1b12 try with installer 2025-12-15 22:21:02 +01:00
d410dc1a57 try 14.2 2025-12-15 22:20:05 +01:00
233960a908 qemu 2025-12-15 22:17:03 +01:00
3efa9e4b65 huh 2025-12-15 22:07:04 +01:00
1a8ba3cdc7 fix bsd version 2025-12-15 22:05:29 +01:00
27de253072 use docker.io 2025-12-15 22:01:18 +01:00
e6fa8e9314 try 2025-12-15 21:59:19 +01:00
4b6f3be04b test 2025-12-15 21:58:18 +01:00
64fdecbcf4 move to codeberg 2025-12-15 21:57:22 +01:00
3 changed files with 68 additions and 7 deletions

16
.github/assets/jail.conf vendored Normal file
View File

@@ -0,0 +1,16 @@
* {
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
allow.raw_sockets = "false";
sysvmsg = "new";
sysvsem = "new";
sysvshm = "new";
host.hostname = $name;
path = "/jail/run/$name";
exec.prestart = "/jail/bin/jaildk install $name start";
exec.clean = "true";
}
test {
ip4.addr = "172.16.0.1";
}

52
.github/workflows/ci.yaml vendored Normal file
View File

@@ -0,0 +1,52 @@
name: Test-Jaildk
on: [push]
jobs:
test:
runs-on: ubuntu-latest
name: Test jaildk on FreeBSD
steps:
- name: checkout
uses: actions/checkout@v4
- name: Test in FreeBSD
uses: vmactions/freebsd-vm@v1
id: testjaildk
with:
release: "14.1"
usesh: true
prepare: |
pkg install -y curl cpdup
run: |
freebsd-version
sysctl hw.model
sysctl hw.ncpu
sysctl hw.physmem
sysctl hw.usermem
ls -la
ifconfig em0 172.16.0.1/32 alias
ifconfig -a
set -x -e
sysrc jail_enable="YES"
cp .github/assets/jail.conf /etc/
cp src/jaildk.sh jaildk
sh jaildk setup /jail
fetch https://download.freebsd.org/ftp/releases/amd64/amd64/14.1-RELEASE/base.txz -o /jail/base/14.1-RELEASE-base.txz
mkdir -p /jail/base/14.1-RELEASE
tar -xf /jail/base/14.1-RELEASE-base.txz -C /jail/base/14.1-RELEASE --unlink
/jail/bin/jaildk create test
ls -l /jail/etc/test
/jail/bin/jaildk build test -m start
df -h /jail/build/test/etc
echo 'sshd_enable="Yes"' > /jail/build/test/usr/local/etc/rc.conf
chroot /jail/build/test /etc/rc.d/sshd keygen
/jail/bin/jaildk start test
/jail/bin/jaildk status | grep -E "test|Jail"

View File

@@ -1,10 +1,3 @@
> [!CAUTION]
> This software is now being maintained on [Codeberg](https://codeberg.org/scip/leo/).
>
> However, due to limitations with woodpecker FreeBSD support, CI test workflows are still being executed here.
>
> Devs: no need to push to codeberg and github, there's a mirror script running somewhere else.
## jaildk - a FreeBSD jail development kit v2.0.4 ## jaildk - a FreeBSD jail development kit v2.0.4
## Breaking Changes ## Breaking Changes