From 88258a263eb3ba76903f821d86c87b2d3f5265cf Mon Sep 17 00:00:00 2001 From: David Andersen Date: Tue, 25 Oct 2016 18:31:07 +0000 Subject: [PATCH] utility script --- build.sh | 1 + run.sh | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100755 build.sh create mode 100755 run.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..a9e8f77 --- /dev/null +++ b/build.sh @@ -0,0 +1 @@ +sudo docker build -t factorio . diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..e0805ac --- /dev/null +++ b/run.sh @@ -0,0 +1,6 @@ +sudo docker run --rm -it \ + -v /home/vagrant/docker_factorio_server/server-settings.json:/opt/factorio/data/server-settings.json \ + -v /data/mods:/opt/factorio/mods \ + -v /data/saves:/opt/factorio/saves \ + --name factorio \ + factorio