Adds some docker files

This commit is contained in:
zontreck 2024-05-24 16:13:27 -07:00
parent 68130285bc
commit a393aadada
5 changed files with 45 additions and 2 deletions

View file

@ -7,4 +7,19 @@ fi
flutter build linux
dart compile exe -o out/server bin/server.dart
rsync -a --progress -h --delete build/linux/x64/release/bundle/ out/client/
rsync -a --progress -h --delete build/linux/x64/release/bundle/ out/client/
if [ -f RELEASE ]
then
docker login git.zontreck.com
docker build -t git.zontreck.com/zontreck/conanservermanager:stable $(pwd)
docker push git.zontreck.com/zontreck/conanservermanager:stable
docker build -t git.zontreck.com/zontreck/conanservermanager:installer docker_images/installer
docker push git.zontreck.com/zontreck/conanservermanager:installer
docker build -t git.zontreck.com/zontreck/conanservermanager:latest docker_images/latest
docker push git.zontreck.com/zontreck/conanservermanager:latest
fi

View file

@ -0,0 +1,3 @@
FROM git.zontreck.com/zontreck/conanservermanager:latest
RUN echo "Welcome to the Server Installer"

View file

@ -0,0 +1,10 @@
FROM debian:latest
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y gnupg2 numactl tzdata software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 libsdl2-2.0-0 libsdl2-2.0-0:i386
FROM git.zontreck.com/zontreck/conanservermanager:stable
COPY ./entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]

View file

@ -0,0 +1,15 @@
#!/bin/bash
# Copied the entrypoint and slightly altered, from parkervcp's dart yolk.
cd /home/container
# Print Dart version
dart --version
# Replace startup variables
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
echo ":/home/container$ ${MODIFIED_STARTUP}"
# Run the server
eval ${MODIFIED_STARTUP}

View file

@ -40,7 +40,7 @@ dependencies:
crypto:
libac_dart:
hosted: https://git.zontreck.com/api/packages/AriasCreations/pub/
version: 1.0.21
version: 1.0.22
dev_dependencies:
flutter_test: