mirror of
https://codeberg.org/scip/jaildk.git
synced 2025-12-19 13:41:02 +01:00
add docs and pipeline
This commit is contained in:
@@ -1,14 +1,47 @@
|
||||
matrix:
|
||||
platform:
|
||||
- freebsd/amd64
|
||||
#
|
||||
# CAUTION: this pipeline needs a FreeBSD VM, refer for the README.md
|
||||
# in this directory for details!
|
||||
|
||||
variables:
|
||||
# will be mapped to *release
|
||||
&release 14.3-RELEASE
|
||||
|
||||
labels:
|
||||
platform: ${platform}
|
||||
platform: freebsd/amd64
|
||||
|
||||
steps:
|
||||
test:
|
||||
image: bash
|
||||
when:
|
||||
event: [push]
|
||||
commands:
|
||||
- freebsd-version
|
||||
commands: |
|
||||
freebsd-version
|
||||
uname -a
|
||||
sysctl hw.model
|
||||
sysctl hw.ncpu
|
||||
sysctl hw.physmem
|
||||
sysctl hw.usermem
|
||||
|
||||
ifconfig vtnet0 172.16.0.1/32 alias
|
||||
ifconfig vtnet0
|
||||
|
||||
sysrc jail_enable="YES"
|
||||
cp .woodpecker/assets/jail.conf /etc/
|
||||
|
||||
cp src/jaildk.sh jaildk
|
||||
sh jaildk setup /jail
|
||||
|
||||
fetch https://download.freebsd.org/ftp/releases/amd64/amd64/*release/base.txz -o /jail/base/*release-base.txz
|
||||
mkdir -p /jail/base/*release
|
||||
tar -xf /jail/base/*release-base.txz -C /jail/base/*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"
|
||||
|
||||
Reference in New Issue
Block a user