Adds some docker files
This commit is contained in:
parent
68130285bc
commit
a393aadada
5 changed files with 45 additions and 2 deletions
17
compile.sh
17
compile.sh
|
@ -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
|
3
docker_images/installer/Dockerfile
Normal file
3
docker_images/installer/Dockerfile
Normal file
|
@ -0,0 +1,3 @@
|
|||
FROM git.zontreck.com/zontreck/conanservermanager:latest
|
||||
|
||||
RUN echo "Welcome to the Server Installer"
|
10
docker_images/latest/Dockerfile
Normal file
10
docker_images/latest/Dockerfile
Normal 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"]
|
15
docker_images/latest/entrypoint.sh
Normal file
15
docker_images/latest/entrypoint.sh
Normal 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}
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue