Skip to content

Commit e292b93

Browse files
fix(installer): download the newly offered service jars
compose.go turns each AllServices entry straight into "java -jar <name>.jar", so a service is only selectable if that exact jar is baked into the game server image. Four of the five additions were not on the Dockerfile download list and would have crash-looped on a missing jarfile. ServiceElections is also renamed to ServiceElection: the module directory is service.elections but the artifact it builds is ServiceElection.jar.
1 parent 8019af1 commit e292b93

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

DockerFiles/Dockerfile.game_server

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ RUN set -eu; \
2020
ServiceOrchestrator.jar \
2121
ServiceFriend.jar \
2222
ServiceStore.jar \
23+
ServiceElection.jar \
24+
ServiceGuild.jar \
25+
ServicePunishment.jar \
26+
ServiceReplay.jar \
2327
net.swofty.packer.HypixelPackServer.jar \
2428
; do \
2529
echo "Downloading $jar"; \
@@ -29,13 +33,13 @@ RUN set -eu; \
2933
# Copy configuration data
3034
COPY ./configuration /app/configuration_files
3135

32-
RUN mkdir -p configuration && \
33-
cp -a configuration_files/. ./configuration/
36+
RUN mkdir -p configuration && \
37+
cp -a configuration_files/. ./configuration/
3438

3539
EXPOSE 25565 65535 8080 20000
3640

37-
RUN cp configuration_files/server.toml ./server.toml && \
38-
cp configuration_files/entrypoint.sh ./entrypoint.sh && \
39-
chmod +x entrypoint.sh
41+
RUN cp configuration_files/server.toml ./server.toml && \
42+
cp configuration_files/entrypoint.sh ./entrypoint.sh && \
43+
chmod +x entrypoint.sh
4044

4145
CMD ["sh", "entrypoint.sh"]

setup/internal/installer/constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ var AllServices = []string{
5555
"ServiceOrchestrator",
5656
"ServiceFriend",
5757
"ServiceStore",
58-
"ServiceElections",
58+
"ServiceElection",
5959
"ServiceGuild",
6060
"ServicePunishment",
6161
"ServiceReplay",

0 commit comments

Comments
 (0)