From 226c1648be41cf7ac65b9abba828bfb6e1594ed6 Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Wed, 10 Feb 2021 10:22:59 +0000 Subject: [PATCH] Add MCSManager related projects --- mcsm-base/Dockerfile | 7 +++++++ mcsm-factorio-base/.gitignore | 2 ++ mcsm-factorio-base/Dockerfile | 2 ++ mcsm-factorio-base/Readme.md | 4 ++++ mcsm-factorio-base/bootstrap.sh | 6 ++++++ mcsm-mc-base/Dockerfile | 5 +++++ mcsm-mc-base/Readme.md | 3 +++ 7 files changed, 29 insertions(+) create mode 100644 mcsm-base/Dockerfile create mode 100644 mcsm-factorio-base/.gitignore create mode 100644 mcsm-factorio-base/Dockerfile create mode 100644 mcsm-factorio-base/Readme.md create mode 100755 mcsm-factorio-base/bootstrap.sh create mode 100644 mcsm-mc-base/Dockerfile create mode 100644 mcsm-mc-base/Readme.md diff --git a/mcsm-base/Dockerfile b/mcsm-base/Dockerfile new file mode 100644 index 0000000..dd3f072 --- /dev/null +++ b/mcsm-base/Dockerfile @@ -0,0 +1,7 @@ +FROM ubuntu-cn-systemd:latest +RUN apt update \ + && apt install -y wget git \ + && rm -rf /var/lib/apt/lists/* \ + && wget -qO- https://gitee.com/Suwingser/MCSManager-installer/raw/master/install.sh | bash \ + && systemctl enable mcsm + diff --git a/mcsm-factorio-base/.gitignore b/mcsm-factorio-base/.gitignore new file mode 100644 index 0000000..0e9e561 --- /dev/null +++ b/mcsm-factorio-base/.gitignore @@ -0,0 +1,2 @@ +temp/ + diff --git a/mcsm-factorio-base/Dockerfile b/mcsm-factorio-base/Dockerfile new file mode 100644 index 0000000..8cd06a1 --- /dev/null +++ b/mcsm-factorio-base/Dockerfile @@ -0,0 +1,2 @@ +FROM mcsm-base:latest +COPY ./temp/factorio /opt/factorio diff --git a/mcsm-factorio-base/Readme.md b/mcsm-factorio-base/Readme.md new file mode 100644 index 0000000..5865b82 --- /dev/null +++ b/mcsm-factorio-base/Readme.md @@ -0,0 +1,4 @@ +# mcsm-factorio-base + +`bootstrap.sh` will download latest factorio headless server. Run it first. + diff --git a/mcsm-factorio-base/bootstrap.sh b/mcsm-factorio-base/bootstrap.sh new file mode 100755 index 0000000..577d30e --- /dev/null +++ b/mcsm-factorio-base/bootstrap.sh @@ -0,0 +1,6 @@ +mkdir -p temp +cd temp +wget https://factorio.com/get-download/stable/headless/linux64 -O factorio_headless_x64_latest_stable.tar.xz +mkdir -p factorio +tar --strip-components=1 -xJvf factorio_headless_x64_latest_stable.tar.xz -C factorio + diff --git a/mcsm-mc-base/Dockerfile b/mcsm-mc-base/Dockerfile new file mode 100644 index 0000000..800040a --- /dev/null +++ b/mcsm-mc-base/Dockerfile @@ -0,0 +1,5 @@ +FROM mcsm-base:latest +ADD jre-8u271-linux-x64.tar.gz /opt/jre/ +ENV JAVA_HOME=/opt/jre/jre1.8.0_271 +ENV PATH=${JAVA_HOME}/bin:${PATH} + diff --git a/mcsm-mc-base/Readme.md b/mcsm-mc-base/Readme.md new file mode 100644 index 0000000..e075953 --- /dev/null +++ b/mcsm-mc-base/Readme.md @@ -0,0 +1,3 @@ +# mcsm-mc-base + +Download `jre-8u271-linux-x64.tar.gz` by yourself.