From a63a06df3ab0d3f9aede2b24f22a300840bd3127 Mon Sep 17 00:00:00 2001 From: kumail-r <46721070+kumail-r@users.noreply.github.com> Date: Sat, 10 May 2025 13:57:51 -0400 Subject: [PATCH 1/6] Updated version of server pack downloaded from curseforge to be Create: Astral Server Pack v2.1.3 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 318426a..384ea6c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN mkdir /tmp/rcon RUN tar -xf /tmp/rcon.tar.gz -C /tmp/rcon --strip-components=1 WORKDIR /data -RUN curl -fsSL -o "/tmp/pack.zip" "https://www.curseforge.com/api/v1/mods/681792/files/5864156/download" +RUN curl -fsSL -o "/tmp/pack.zip" "https://www.curseforge.com/api/v1/mods/681792/files/6057416/download" RUN curl -fsSL -o "/tmp/old.zip" "https://www.curseforge.com/api/v1/mods/681792/files/4496671/download" RUN unzip -q /tmp/pack.zip -d /data RUN unzip -q /tmp/old.zip -d /tmp/old/ From 16d00b8d60fe4d03166b2b5ab3e92071c77eb6a7 Mon Sep 17 00:00:00 2001 From: kumail-r <46721070+kumail-r@users.noreply.github.com> Date: Sat, 10 May 2025 13:59:49 -0400 Subject: [PATCH 2/6] updated name of github container registry, the current one didn't exist (also bumped to 2.1.3 from 2.1.2) --- compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose.yml b/compose.yml index 48d2d71..faa6fff 100644 --- a/compose.yml +++ b/compose.yml @@ -1,6 +1,6 @@ services: create-astral: - image: ghcr.io/maxi0604/create-astral:v2.1.2 + image: ghcr.io/claraphyll/create-astral:v2.1.3 environment: EULA: "FALSE" RCON_PASSWORD: "hunter2" From af3f7ceacf711c7303f8543af71b6de78cc2a116 Mon Sep 17 00:00:00 2001 From: kumail-r <46721070+kumail-r@users.noreply.github.com> Date: Sat, 10 May 2025 14:04:09 -0400 Subject: [PATCH 3/6] Update README.md to match the version changes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c78caaa..08f62d4 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ podman run -d -e EULA=TRUE \ -v ./banned-ips.json:/data/banned-ips.json:z \ -v astral-world:/data/world:z \ -v astral-backup:/data/backup:z \ - ghcr.io/maxi0604/create-astral:v2.1.2 + ghcr.io/claraphyll/create-astral:v2.1.3 ``` to get started. This will run a Create: Astral server on port 25565 (the default) which stores the game world in a named volume. From a1cd67549c9ac774d89af29ed5f06d11f1b21532 Mon Sep 17 00:00:00 2001 From: kumail-r <46721070+kumail-r@users.noreply.github.com> Date: Sat, 10 May 2025 14:05:41 -0400 Subject: [PATCH 4/6] Update docker-publish.yml with new repo name --- .github/workflows/docker-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index ff84412..904d6e2 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -19,7 +19,7 @@ env: # Use docker.io for Docker Hub if empty REGISTRY: ghcr.io # github.repository as / - IMAGE_NAME: maxi0604/create-astral + IMAGE_NAME: claraphyll/create-astral jobs: From ae1bb122938c19358c949c0045d3515ecaf16a1b Mon Sep 17 00:00:00 2001 From: kumail-r <46721070+kumail-r@users.noreply.github.com> Date: Sat, 10 May 2025 14:15:26 -0400 Subject: [PATCH 5/6] Update README.md with instructions on how to specify the dockerfile inside of the compose.yaml directly & how to modify memory usage --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 08f62d4..17e6b03 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,10 @@ you run your compose command. The required templates for these files are include If you want to modify other files like those in the `config` folder, consider adding the `/data/config` folder as a volume similar to how the files above are set up. +## JVM Arguments (memory usage) + +If you are building the image yourself, you can customize the JVM arguments used by the server in [`entrypoint.sh`](entrypoint.sh). + # Manual Setup The server can be set up without using a program like `podman-compose` or `docker-compose`. @@ -57,6 +61,15 @@ podman run -d -e EULA=TRUE \ ``` to get started. This will run a Create: Astral server on port 25565 (the default) which stores the game world in a named volume. +## Building your own image + +If you use compose, you can have the best of both worlds with very little modification. Replace the `image: ghcr.io/claraphyll/create-astral:v2.1.3` line in the [`compose.yaml`](compose.yaml) file with the following: +```yaml +build: . +``` + +Now, when you run the command `podman-compose build` or `docker compose build` you will be able to build the image using the provided Dockerfile. This can allow you to modify your [`entrypoint.sh`](entrypoint.sh) or perform any other customizations, such as updating to an as of yet unsupported version of Create: Astral. Once it is built, you can run the container like normal using `docker compose up -d` or `podman-compose up -d`. + # Maintenance See the documentation for your preferred container engine for comprehensive guidance. Some hints: - You can set up automatic restart using `restart: always` in `compose.yml` or the `--restart=always` flag when not using compose. From d56331462115020d4e3de5723223bca2c6c0e50a Mon Sep 17 00:00:00 2001 From: kumail-r <46721070+kumail-r@users.noreply.github.com> Date: Sat, 10 May 2025 14:16:04 -0400 Subject: [PATCH 6/6] Update README.md to fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 17e6b03..d1bcf2d 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ to get started. This will run a Create: Astral server on port 25565 (the default ## Building your own image -If you use compose, you can have the best of both worlds with very little modification. Replace the `image: ghcr.io/claraphyll/create-astral:v2.1.3` line in the [`compose.yaml`](compose.yaml) file with the following: +If you use compose, you can have the best of both worlds with very little modification. Replace the line `image: ghcr.io/claraphyll/create-astral:v2.1.3` in the [`compose.yaml`](compose.yaml) file with the following: ```yaml build: . ```