Skip to content

Commit f1903fb

Browse files
committed
Increased retry count and added delay between each
#155
1 parent 52d8bed commit f1903fb

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ RUN easy-add --var version=0.2.1 --var app=entrypoint-demoter --file {{.app}} --
2929

3030
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
3131

32-
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
32+
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
3333

3434
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
3535

bedrock-entry.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ case ${VERSION^^} in
4040
VERSION=1.16.20.03
4141
;;
4242
LATEST)
43-
for a in data-platform data-bi-prtid; do
44-
for i in {1..3}; do
43+
echo "Looking up latest version..."
44+
for a in data-platform ; do
45+
for i in {1..5}; do
4546
DOWNLOAD_URL=$(restify --user-agent=itzg/minecraft-bedrock-server --attribute=${a}=serverBedrockLinux ${downloadPage} 2> restify.err | jq -r '.[0].href' || echo '')
4647
if [[ ${DOWNLOAD_URL} ]]; then
4748
break 2
4849
fi
50+
sleep 1
4951
done
5052
done
5153
if [[ ${DOWNLOAD_URL} =~ http.*/.*-(.*)\.zip ]]; then

examples/docker-compose.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ services:
99
DIFFICULTY: normal
1010
ports:
1111
- 19132:19132/udp
12+
# - 39132:39132
13+
# - 39132:39132/udp
14+
# - 39133:39133
15+
# - 39133:39133/udp
1216
volumes:
1317
- bds:/data
1418
stdin_open: true
1519
tty: true
20+
sysctls:
21+
net.ipv4.ip_local_port_range: 39132 39133
1622

1723
volumes:
18-
bds: {}
24+
bds: {}

0 commit comments

Comments
 (0)