diff --git a/README.md b/README.md index 2c7976a..f2481bf 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,25 @@ +# bearnet + +This repository contains necessarities to build a VM image and corresponding hypervisor image using Dockerfiles. + +Edit corresponding files in [image/overlay](./image/overlay) to customize VM behaviour. Privileges are required for building VM images as some scripts are depending on `/dev/nbd`. + +# Build & Running + +```bash +# cp .env.example .env +# vim .env +# VM_OPTS="--no-cache" HY_OPTS="--no-cache" ./BUILD.sh + +# vim docker-compose.yml +# docker compose up +``` + +The given compose file is for reference only. It must be edited according to your situation. + +Once the image is built and udhcpd is ready, VM's IP will be shown in logs. + +By default, a OpenSSH server will be listening on :2222. # FAQ diff --git a/image/overlay/etc/init.d/auth-server b/image/overlay/etc/init.d/auth-server index a40a078..3337289 100755 --- a/image/overlay/etc/init.d/auth-server +++ b/image/overlay/etc/init.d/auth-server @@ -1,7 +1,7 @@ #!/sbin/openrc-run command="/usr/bin/auth-server" command_background=true -command_args="-org _BUBBLE_AUTH_ORG_ -team _BUBBLE_AUTH_TEAM_ -gitea-url _BUBBLE_AUTH_GITEA_URL_" +command_args="-org _BUBBLE_AUTH_ORG_ -team _BUBBLE_AUTH_TEAM_ -gitea-url _BUBBLE_AUTH_GITEA_URL_ >/dev/console 2>&1" pidfile="/run/${RC_SVCNAME}.pid" diff --git a/image/overlay/etc/init.d/bubble b/image/overlay/etc/init.d/bubble index 7bb6d40..0ad605b 100755 --- a/image/overlay/etc/init.d/bubble +++ b/image/overlay/etc/init.d/bubble @@ -5,6 +5,6 @@ depend() { } command="/usr/bin/bubble" -command_args="-config /daemon/config.yaml" +command_args="-config /daemon/config.yaml >/dev/console 2>&1" pidfile="/run/${RC_SVCNAME}.pid" command_background=true