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: 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/ diff --git a/README.md b/README.md index c78caaa..d1bcf2d 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`. @@ -53,10 +57,19 @@ 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. +## Building your own image + +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: . +``` + +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. 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"