Increased retry count and added delay between each

#155
This commit is contained in:
Geoff Bourne committed 2021-07-14 20:55:30 -05:00
1 parent 52d8bed770
commit f1903fb686
3 files changed
+11 -3

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ RUN easy-add --var version=0.2.1 --var app=entrypoint-demoter --file {{.app}} --
RUN easy-add --var version=0.1.1 --var app=set-property --file {{.app}} --from https://github.com/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_linux_${ARCH}.tar.gz
RUN easy-add --var version=1.3.0 --var app=restify --file {{.app}} --from https://github.com/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_linux_${ARCH}.tar.gz
RUN easy-add --var version=1.4.1 --var app=restify --file {{.app}} --from https://github.com/itzg/{{.app}}/releases/download/v{{.version}}/{{.app}}_{{.version}}_linux_${ARCH}.tar.gz
RUN easy-add --var version=0.5.0 --var app=mc-monitor --file {{.app}} --from https://github.com/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_linux_${ARCH}.tar.gz
+4 -2
View File
@@ -40,12 +40,14 @@ case ${VERSION^^} in
VERSION=1.16.20.03
;;
LATEST)
for a in data-platform data-bi-prtid; do
for i in {1..3}; do
echo "Looking up latest version..."
for a in data-platform ; do
for i in {1..5}; do
DOWNLOAD_URL=$(restify --user-agent=itzg/minecraft-bedrock-server --attribute=${a}=serverBedrockLinux ${downloadPage} 2> restify.err | jq -r '.[0].href' || echo '')
if [[ ${DOWNLOAD_URL} ]]; then
break 2
fi
sleep 1
done
done
if [[ ${DOWNLOAD_URL} =~ http.*/.*-(.*)\.zip ]]; then
+6
View File
@@ -9,10 +9,16 @@ services:
DIFFICULTY: normal
ports:
- 19132:19132/udp
# - 39132:39132
# - 39132:39132/udp
# - 39133:39133
# - 39133:39133/udp
volumes:
- bds:/data
stdin_open: true
tty: true
sysctls:
net.ipv4.ip_local_port_range: 39132 39133
volumes:
bds: {}