Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: maxi0604/create-astral
IMAGE_NAME: claraphyll/create-astral


jobs:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion compose.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down