-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Thomas von Dein
committed
Oct 15, 2024
1 parent
aee2320
commit 54fb06f
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Test-Jaildk | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
name: A job to run test in FreeBSD | ||
env: | ||
PATH: "$PATH:/jail/bin | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Test in FreeBSD | ||
id: testjaildk | ||
uses: vmactions/freebsd-vm@v1 | ||
with: | ||
release: "14.1" | ||
envs: 'PATH' | ||
usesh: true | ||
prepare: | | ||
pkg install -y curl | ||
run: | | ||
freebsd-version | ||
sysctl hw.model | ||
sysctl hw.ncpu | ||
sysctl hw.physmem | ||
sysctl hw.usermem | ||
ifconfig em0 172.16.0.1/32 alias | ||
make | ||
yes | make install | ||
cp .github/assets/jail.conf /etc/ | ||
jaildk create test | ||
ls -ld /jail/etc/test | ||
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 | ||
jaildk start test | ||
jaildk status | grep -E "test|Jail" | ||