2 Commits

Author SHA1 Message Date
Doc
cdb94fbb88 Version bump to 1.4 2024-08-08 08:13:27 +02:00
Doc
531c011746 Switched to the Rocky Minimal image 2024-08-08 08:13:02 +02:00
5 changed files with 9 additions and 50 deletions

View File

@@ -1,41 +0,0 @@
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,10 +1,10 @@
FROM rockylinux:9
FROM rockylinux:9-minimal
ARG VERSION="1.21.1"
ARG VERSION="1.19.8"
RUN dnf install epel-release -y
RUN microdnf install epel-release -y
RUN dnf install procps-ng screen wget libicu -y
RUN microdnf install procps-ng screen wget libicu tar findutils -y
RUN useradd -d /home/vintagestory vintagestory
@@ -52,4 +52,4 @@ ENV PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
EXPOSE 42420
ENTRYPOINT [ "./startup.sh" ]
ENTRYPOINT [ "./startup.sh" ]

View File

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

View File

@@ -1 +0,0 @@
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

@@ -2,4 +2,4 @@
./server.sh start
tail -f /var/vintagestory/data/Logs/server-main.log
tail -f /var/vintagestory/data/Logs/server-main.txt