Compare commits

...

17 Commits

Author SHA1 Message Date
Doc
669947858c gameversion bump to 1.21.1
All checks were successful
Image Build / docker (push) Successful in 7m2s
2025-10-05 00:07:12 +02:00
Doc
4c22591352 corrected second push name
All checks were successful
Image Build / docker (push) Successful in 45s
2025-08-25 22:07:45 +02:00
Doc
164c7c3a70 changed node to nodejs
Some checks failed
Image Build / docker (push) Failing after 4m55s
2025-08-25 22:02:10 +02:00
Doc
797b0b40d9 added prep step
Some checks failed
Image Build / docker (push) Failing after 4s
2025-08-25 21:59:00 +02:00
Doc
e632e31dc4 renamed workflow to workflows
Some checks failed
Image Build / docker (push) Failing after 9s
2025-08-25 21:57:28 +02:00
Doc
cef45c0433 changed branch to master 2025-08-25 21:56:20 +02:00
Doc
62cdb5cba4 added image build workflow 2025-08-25 21:55:08 +02:00
Doc
f2f5db39e3 changed the file extension to .log from .txt 2025-04-17 23:10:23 +02:00
Doc
2a92c92323 Added image build script for multi arch 2025-04-17 22:24:35 +02:00
Doc
71aeb3a91a Gameversion bump to 1.20.7 2025-04-17 22:23:14 +02:00
Doc
ba2ea7908e Version bump and adjusted docker compose file 2025-01-18 23:38:28 +01:00
Doc
637e66ce80 Cant bind the server directory anymore and refectored the directory stukture 2024-08-08 07:57:47 +02:00
Doc
108d01d631 Dot missing 2024-08-07 13:22:52 +02:00
Doc
9775ef5888 Dot was missing 2024-08-07 13:22:16 +02:00
Doc
5c5f3e9b27 Added info to README 2024-08-07 13:21:45 +02:00
Doc
3cd2a5ffd2 Added real instructions to README file 2024-08-07 13:19:00 +02:00
Doc
ce10a3ba1a removed the server directory 2024-08-07 13:18:40 +02:00
6 changed files with 97 additions and 19 deletions

View File

@@ -0,0 +1,41 @@
name: Image Build
on:
push:
branches: [ master ]
workflow_dispatch:
defaults:
run:
shell: sh
jobs:
docker:
runs-on: docker-latest
steps:
- name: Prep
run: |
apk update
apk add nodejs
- name: Checkout code
uses: actions/checkout@v3
- name: Docker login
run: |
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login git.protron.dev \
-u "${{ secrets.REGISTRY_USER }}" --password-stdin
- name: Docker build
run: |
docker build \
-t git.protron.dev/doc/vintagecontainer:latest \
-t git.protron.dev/doc/vintagecontainer:${GITHUB_SHA} \
.
- name: Docker push
run: |
docker push git.protron.dev/doc/vintagecontainer:latest
docker push git.protron.dev/doc/vintagecontainer:${GITHUB_SHA}

View File

@@ -1,6 +1,6 @@
FROM rockylinux:9
ARG VERSION="1.19.8"
ARG VERSION="1.21.1"
RUN dnf install epel-release -y
@@ -12,11 +12,11 @@ RUN mkdir -p /var/vintagestory
RUN chown -R vintagestory:vintagestory /var/vintagestory
RUN mkdir -p /home/vintagestory/server /home/vintagestory/install
RUN mkdir -p /home/vintagestory/server
COPY ./startup.sh /home/vintagestory/.
COPY ./startup.sh /home/vintagestory/server/.
RUN chmod +x /home/vintagestory/startup.sh
RUN chmod +x /home/vintagestory/server/startup.sh
RUN chown -R vintagestory /home/vintagestory
@@ -34,9 +34,7 @@ RUN ./dotnet-install.sh --channel 7.0 --runtime dotnet
RUN rm dotnet-install.sh
RUN chmod -R 700 /home/vintagestory/server /home/vintagestory/install
WORKDIR /home/vintagestory/install
WORKDIR /home/vintagestory/server
RUN wget "https://cdn.vintagestory.at/gamefiles/stable/vs_server_linux-x64_${VERSION}.tar.gz"
@@ -46,8 +44,6 @@ RUN rm "vs_server_linux-x64_${VERSION}.tar.gz"
RUN chmod +x server.sh
WORKDIR /home/vintagestory/
ENV HOME=/home/vintagestory
ENV DOTNET_ROOT=$HOME/.dotnet
@@ -56,4 +52,4 @@ ENV PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
EXPOSE 42420
ENTRYPOINT [ "./startup.sh" ]
ENTRYPOINT [ "./startup.sh" ]

View File

@@ -1,3 +1,47 @@
# VintageStory Docker Container
this is a simple Docker Container for running a VintageStory server on amd64
this is a simple container for running a VintageStory server on amd64/linux system.
# Usage
```
# clone the repo
git clone https://git.protron.dev/Doc/vintagecontainer.git
# cd into the directory
cd vintavintagecontainer
# start the container
sudo docker compose up -d
```
You can adjust and add stuff by editing the docker-compose.yml file.
The data directory inside the vintagecontainer folder is were all your server/game data is located.
# Build yourself or different Version
If you want to build the image yourself or you need a different server version, you can do this by:
```
# cloning the repo
git clone https://git.protron.dev/Doc/vintagecontainer.git
# cd into the directory
cd vintagecontainer
# edting the Dockefile
vim Dockerfile
```
To change the server version, edit the VERSION ARG:
Example:
```
ARG VERSION="1.19.8" ==> VERSION="1.18.8"
```
And than build the image with
```
sudo docker build -t {USERNAME}/{IMAGENAME} .
```

View File

@@ -1,10 +1,8 @@
services:
vintageserver:
container_name: vintageserver
image: 'git.protron.dev/doc/vintagecontainer:1.2'
user: "${UID}:${GID}"
image: 'git.protron.dev/doc/vintagecontainer:latest'
ports:
- '42420:42420'
volumes:
- ./server:/home/vintagestory/server
- ./data:/var/vintagestory/data
- ./data:/var/vintagestory/data

1
image-build.sh Executable file
View File

@@ -0,0 +1 @@
sudo docker buildx build --platform linux/amd64,linux/arm64 -t git.protron.dev/doc/vintagecontainer:1.5 -t git.protron.dev/doc/vintagecontainer:latest --push .

View File

@@ -1,7 +1,5 @@
#!/usr/bin/env bash
mv /home/vintagestory/install/* /home/vintagestory/server/.
./server.sh start
./server/server.sh start
tail -f /var/vintagestory/data/Logs/server-main.txt
tail -f /var/vintagestory/data/Logs/server-main.log