output logs to /dev/console
This commit is contained in:
22
README.md
22
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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user