diff --git a/docker-compose.yml b/docker-compose.yml index b3b69e7..a6f9a0c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,11 +13,10 @@ services: - ./config:/root/.config/i3/config - /data/valley_saves:/root/.config/StardewValley/Saves/ devices: - #- /dev/dsp:/dev/dsp - /dev/snd:/dev/snd entrypoint: - /bin/sh - /init.sh - cpus: 0.5 - cpuset: '2' + #cpus: 2 + #cpuset: 0,1 diff --git a/init.sh b/init.sh index fbc82f4..b043666 100755 --- a/init.sh +++ b/init.sh @@ -4,7 +4,6 @@ if [ ! -d /data/Stardew ]; then echo "Downloading Game" mkdir -p /data/Stardew - mkdir -p /data/nexus wget https://eris.cc/Stardew_latest.tar -qO /data/latest.tar echo "Unpacking" @@ -16,7 +15,8 @@ if [ ! -f /data/nexus.tar ]; then wget https://github.com/Pathoschild/SMAPI/releases/download/2.11.1/SMAPI-2.11.1-installer.zip -qO /data/nexus.zip echo "Unpacking Modloader" - unzip nexus.zip -d /data/nexus/ + mkdir -p /data/nexus + unzip /data/nexus.zip -d /data/nexus/ echo "Installing Modloader" /bin/bash -c "echo -e \"2\n/data/Stardew/Stardew\ Valley\n1\n\" | /usr/bin/mono /data/nexus/SMAPI\ 2.11.1\ installer/internal/unix-install.exe" @@ -35,6 +35,7 @@ apt-get install -y xterm i3 Xvfb :10 -screen 0 1000x1000x24 -ac & export DISPLAY=:10.0 x11vnc -display :10 -forever -shared -loop & +sleep 10 i3 & TERM=xterm diff --git a/terraform/main.tf b/terraform/main.tf index d51db88..9c2ece1 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -36,6 +36,6 @@ resource "hcloud_server" "game_node" { } working_dir = "." - command = "ansible-playbook -u root --private-key ./ssh/key ../playbook.yml -i ${self.ipv4_address}," + command = "ANSIBLE_HOST_KEY_CHECKING=false ansible-playbook -u root --private-key ./ssh/key ../playbook.yml -i ${self.ipv4_address}," } }