Skip to content

Commit 01b0dca

Browse files
author
Aeris
committed
Setup running prperly again
1 parent 0337865 commit 01b0dca

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docker-compose.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ services:
1313
- ./config:/root/.config/i3/config
1414
- /data/valley_saves:/root/.config/StardewValley/Saves/
1515
devices:
16-
#- /dev/dsp:/dev/dsp
1716
- /dev/snd:/dev/snd
1817
entrypoint:
1918
- /bin/sh
2019
- /init.sh
21-
cpus: 0.5
22-
cpuset: '2'
20+
#cpus: 2
21+
#cpuset: 0,1
2322

init.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ if [ ! -d /data/Stardew ]; then
44

55
echo "Downloading Game"
66
mkdir -p /data/Stardew
7-
mkdir -p /data/nexus
87
wget https://eris.cc/Stardew_latest.tar -qO /data/latest.tar
98

109
echo "Unpacking"
@@ -16,7 +15,8 @@ if [ ! -f /data/nexus.tar ]; then
1615
wget https://github.com/Pathoschild/SMAPI/releases/download/2.11.1/SMAPI-2.11.1-installer.zip -qO /data/nexus.zip
1716

1817
echo "Unpacking Modloader"
19-
unzip nexus.zip -d /data/nexus/
18+
mkdir -p /data/nexus
19+
unzip /data/nexus.zip -d /data/nexus/
2020

2121
echo "Installing Modloader"
2222
/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
3535
Xvfb :10 -screen 0 1000x1000x24 -ac &
3636
export DISPLAY=:10.0
3737
x11vnc -display :10 -forever -shared -loop &
38+
sleep 10
3839
i3 &
3940

4041
TERM=xterm

terraform/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ resource "hcloud_server" "game_node" {
3636
}
3737

3838
working_dir = "."
39-
command = "ansible-playbook -u root --private-key ./ssh/key ../playbook.yml -i ${self.ipv4_address},"
39+
command = "ANSIBLE_HOST_KEY_CHECKING=false ansible-playbook -u root --private-key ./ssh/key ../playbook.yml -i ${self.ipv4_address},"
4040
}
4141
}

0 commit comments

Comments
 (0)