22 lines
568 B
Bash
Executable File
22 lines
568 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
REPO_DIR=/root/y2k
|
|
|
|
$REPO_DIR/host/websocketd \
|
|
--port=80 \
|
|
--binary \
|
|
--header-ws="Sec-WebSocket-Protocol: binary" \
|
|
--origin=y2k.app,www.y2k.app,hardcore-turing-5cd513.netlify.app \
|
|
-- \
|
|
docker run \
|
|
--cpus 1 \
|
|
--memory 128m \
|
|
--network none \
|
|
--log-driver none \
|
|
--rm -i \
|
|
registry.digitalocean.com/jakejarvis/y2k:latest
|
|
|
|
# to spawn QEMU processes natively on the host machine instead of via
|
|
# individual Docker containers:
|
|
# /root/y2k/container/bin/boot.rb /root/y2k/container/hdd /usr/bin/qemu-system-i386
|