Introduce new container registry

This commit is contained in:
Marc Baloup 2023-04-07 11:42:09 +02:00
parent a6795c71c7
commit 1cb8d65615
3 changed files with 10 additions and 7 deletions

View File

@ -4,7 +4,7 @@ Docker Compose Example
version: "3"
services:
paper:
image: "pandacubefr/paper:(version)"
image: "cr.pandacube.fr/paper:(version)"
container_name: (server name)
stdin_open: true # docker run -i
tty: true # docker run -t

View File

@ -48,13 +48,16 @@ curl -o $RUNNABLE_SERVER_JAR $DOWNLOAD_REOBF
#find bundle/versions/ bundle/libraries/ -type f -name '*.jar' > jars.txt
DOCKER_TAG="pandacubefr/paper:"$MC_VERSION"-"$PAPER_BUILD
DOCKER_TAG="cr.pandacube.fr/paper:"$MC_VERSION"-"$PAPER_BUILD
echo "Building docker image with pre-downloaded and pre-patched files, with tag "$DOCKER_TAG
docker build --build-arg RUNNABLE_SERVER_JAR=$RUNNABLE_SERVER_JAR -t $DOCKER_TAG -f Dockerfile.paper .
docker build --build-arg RUNNABLE_SERVER_JAR=$RUNNABLE_SERVER_JAR -t $DOCKER_TAG .
DOCKER_IMAGE_FILE="Paper-docker-"$MC_VERSION"-"$PAPER_BUILD".tar.gz"
echo "Saving docker image to "$DOCKER_IMAGE_FILE
docker save $DOCKER_TAG | gzip > $DOCKER_IMAGE_FILE
#DOCKER_IMAGE_FILE="Paper-docker-"$MC_VERSION"-"$PAPER_BUILD".tar.gz"
#echo "Saving docker image to "$DOCKER_IMAGE_FILE
#docker save $DOCKER_TAG | gzip > $DOCKER_IMAGE_FILE
echo "Pushing image to Pandacubes container registry"
docker push $DOCKER_TAG
#mkdir uberjar
#for jar in `cat jars.txt`; do

2
run.sh
View File

@ -1,6 +1,6 @@
#!/bin/sh
java -Xmx$MAXMEM -XX:+UseG1GC -XX:+ParallelRefProcEnabled \
exec java -Xmx$MAXMEM -XX:+UseG1GC -XX:+ParallelRefProcEnabled \
-XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions \
-XX:G1ReservePercent=15 -XX:G1NewSizePercent=20 -XX:G1MaxNewSizePercent=30 \
-XX:G1HeapRegionSize=8M -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 \