This commit is contained in:
2023-11-06 05:05:29 -08:00
parent 4b157cb1a1
commit 240b29a0ee
3 changed files with 16 additions and 56 deletions

16
alpine/pipeline.yml Normal file
View File

@@ -0,0 +1,16 @@
image: docker:stable
variables:
IMAGE_NAME: "foundry_vtt:alpine"
DOCKER_HOST: tcp://gitlab.fithwum.tech/
DOCKER_TLS_CERTDIR: "/certs"
services:
- docker:19-dind
build image:
script:
- cd "$CI_PROJECT_DIR/alpine/"
- docker build -t $CI_REGISTRY/fithwum/foundry_vtt/alpine/$IMAGE_NAME .
- docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
- docker push $CI_REGISTRY/fithwum/foundry_vtt/$IMAGE_NAME

31
debian/Dockerfile vendored
View File

@@ -1,31 +0,0 @@
FROM fithwum/debian-base:bullseye
LABEL maintainer "fithwum"
ARG INSTALL_SCRIPT=https://raw.githubusercontent.com/fithwum/foundryvtt/master/debian/files/Install_Script.sh
ENV PUID=99
ENV GUID=100
ENV GAME_PORT=30000
RUN addgroup foundry && adduser -q --disabled-password --ingroup foundry foundry
# Install dependencies and folder creation
RUN apt update && apt install ca-certificates libstdc++6 bash-completion tar nodejs npm \
&& mkdir -p /foundry /ftemp \
&& chmod 777 -R /foundry \
&& chown 99:100 -R /foundry
ADD "${INSTALL_SCRIPT}" /ftemp
RUN chmod +x /ftemp/Install_Script.sh \
&& chown 99:100 -R /ftemp/Install_Script.sh
# USER foundry
# directory where data is stored
VOLUME /foundry
# TCP Port
EXPOSE ${GAME_PORT}
# Run command
CMD [ "/bin/sh", "/ftemp/Install_Script.sh" ]

View File

@@ -1,25 +0,0 @@
#!/bin/bash
# Copyright (c) 2018 fithwum
# All rights reserved
# Variables.
FVTT_VERSION=11
echo " "
echo "Current FoundryVTT Release version is ${FVTT_VERSION}."
sleep 1
# Set permissions.
mkdir -p /foundry/fvtt /foundry/data
chown 99:100 -R /foundry
chmod 776 -R /foundry
chmod +x /foundry/
# Run.
echo "INFO ! Starting FoundryVTT Server"
echo " "
# exec node /foundry/fvtt/resources/app/main.js --dataPath=/foundry/data
foundry -c 'node /foundry/fvtt/resources/app/main.js --dataPath=/foundry/data --ignore-gpu-blacklist'
exit