Skip to content

Commit

Permalink
Merge pull request #1 from nakira974/branches/dev
Browse files Browse the repository at this point in the history
Merge Branches/dev into Trunk
  • Loading branch information
nakira974 authored Aug 12, 2023
2 parents 48a3939 + 3b0e40a commit 0314754
Show file tree
Hide file tree
Showing 14 changed files with 76 additions and 37 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/1.20.1/private/vanilla/.map/world/
/1.20.1/private/vanilla/.map/world_nether/
/1.20.1/private/vanilla/.map/world_the_end/
/1.20.1/private/spigot/.map/world/
/1.20.1/private/spigot/.map/world_nether/
/1.20.1/private/spigot/.map/world_the_end/
/1.20.1/public/anarchy.lavalawsless.com/.map/world/
/1.20.1/public/anarchy.lavalawsless.com/.map/world_nether/
/1.20.1/public/anarchy.lavalawsless.com/.map/world_the_end/
Expand Down
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions 1.20.1/private/spigot/.properties/ops.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"uuid": "2bb0ac70-c45a-4dfd-8f0b-93cac6210ae0",
"name": "nakira0x4D",
"level": 4,
"bypassesPlayerLimit": false
},
{
"uuid": "78347df6-90c7-4233-9922-b4d91af0b4b9",
"name": "Weefle",
"level": 4,
"bypassesPlayerLimit": false
}
]
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
{
"uuid": "2bb0ac70-c45a-4dfd-8f0b-93cac6210ae0",
"name": "nakiradu77"
},
{
"uuid": "78347df6-90c7-4233-9922-b4d91af0b4b9",
"name": "Weefle"
}
]
23 changes: 13 additions & 10 deletions 1.20.1/private/spigot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,35 @@ FROM openjdk:19-jdk-alpine
# Define the working directory
WORKDIR /spigot-server

# Expose the necessary port
EXPOSE 25567

# Download BuildTools.jar to build spigot server
ADD https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar /temp/

# Install git & build spigot server
RUN apk add --no-cache git \
&& java -jar /temp/BuildTools.jar --rev latest \
&& mv ./spigot-*.jar spigot.jar \


# Expose the necessary port
EXPOSE 25566

# Copy over server properties
# Copy over server properties and world data
COPY ./server.properties /spigot-server/
COPY ./whitelist.json /spigot-server/
COPY ops.json /spigot-server/
COPY .properties/blacklist.json /spigot-server/
COPY .properties/ops.json /spigot-server/


# Copy map folders
COPY ./.map/world /spigot-server/world
COPY ./.map/world_nether /spigot-server/world_nether
COPY ./.map/world_the_end /spigot-server/world_the_end


# Copy EULA
COPY .properties/eula.txt /spigot-server/

# Accept Minecraft EULA
RUN echo "eula=true" > eula.txt

RUN apk add screen
RUN cd /spigot-server

# Start the Spigot server
ENTRYPOINT screen -S MinecraftServer -dm java -Xmx1024M -Xms512M -jar /tmp/spigot-1.20.1.jar nogui
ENTRYPOINT ["java", "-Xmx1024M", "-Xms1024M", "-jar", "/tmp/spigot-1.20.1.jar", "nogui"]
6 changes: 3 additions & 3 deletions 1.20.1/private/vanilla/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ WORKDIR /minecraft-server
EXPOSE 25565

# COPY MAP FOLDERS
COPY .map/world /minecraft-server
COPY .map/world_nether /minecraft-server
COPY .map/world_the_end /minecraft-server
COPY ../spigot/.map/world /minecraft-server
COPY ../spigot/.map/world_nether /minecraft-server
COPY ../spigot/.map/world_the_end /minecraft-server

# SERVER PROPERTIES
COPY server.properties /minecraft-server
Expand Down
14 changes: 14 additions & 0 deletions 1.20.1/public/anarchy.lavalawsless.com/.properties/ops.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"uuid": "2bb0ac70-c45a-4dfd-8f0b-93cac6210ae0",
"name": "nakira0x4D",
"level": 4,
"bypassesPlayerLimit": false
},
{
"uuid": "78347df6-90c7-4233-9922-b4d91af0b4b9",
"name": "Weefle",
"level": 4,
"bypassesPlayerLimit": false
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ server-ip=

# Server Port
# The port on which your server will listen for incoming connections.
server-port=25567
server-port=25565

# Maximum number of players
# The maximum number of players allowed on your server at the same time.
Expand Down Expand Up @@ -37,7 +37,7 @@ pvp=true

# Enable Command Blocks
# Set this to true if you want to enable the use of command blocks.
enable-command-block=false
enable-command-block=true

# Enable Whitelist
# Set this to true if you want to restrict access to your server to whitelisted players only.
Expand Down
12 changes: 6 additions & 6 deletions 1.20.1/public/anarchy.lavalawsless.com/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM openjdk:19-jdk-alpine
WORKDIR /spigot-server

# Expose the necessary port
EXPOSE 25565
EXPOSE 25567

# Download BuildTools.jar to build spigot server
ADD https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar /temp/
Expand All @@ -17,8 +17,8 @@ RUN apk add --no-cache git \

# Copy over server properties and world data
COPY ./server.properties /spigot-server/
COPY blacklist.json /spigot-server/
COPY ops.json /spigot-server/
COPY .properties/blacklist.json /spigot-server/
COPY .properties/ops.json /spigot-server/


COPY ./.map/world /spigot-server/world
Expand All @@ -27,12 +27,12 @@ COPY ./.map/world_the_end /spigot-server/world_the_end


# Copy EULA
COPY ./eula.txt /spigot-server/
COPY .properties/eula.txt /spigot-server/

# Accept Minecraft EULA
RUN echo "eula=true" > eula.txt

RUN apk add screen
RUN cd /spigot-server

# Start the Spigot server
ENTRYPOINT screen -S MinecraftServer -dm java -Xmx4096M -Xms512M -jar /tmp/spigot-1.20.1.jar nogui
ENTRYPOINT ["java", "-Xmx1024M", "-Xms1024M", "-jar", "/tmp/spigot-1.20.1.jar", "nogui"]
30 changes: 17 additions & 13 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,31 @@ services:
test_spigot_1_20_1:
build: ./1.20.1/private/spigot
volumes:
- './1.20.1/private/spigot/.map/world:/minecraft-server/world'
- './1.20.1/private/spigot/.map/world_nether:/minecraft-server/world_nether'
- './1.20.1/private/spigot/.map/world_the_end:/minecraft-server/world_the_end'
- './1.20.1/private/spigot/whitelist.json:/minecraft-server/whitelist.json'
- './1.20.1/private/spigot/blacklist.json:/minecraft-server/blacklist.json'
- './1.20.1/private/spigot/ops.json:/minecraft-server/ops.json'
- './1.20.1/private/spigot/.map/world:/spigot-server/world'
- './1.20.1/private/spigot/.map/world_nether:/spigot-server/world_nether'
- './1.20.1/private/spigot/.map/world_the_end:/spigot-server/world_the_end'
- './1.20.1/private/spigot/.properties/whitelist.json:/spigot-server/whitelist.json'
#- './1.20.1/private/spigot/.properties/blacklist.json:/spigot-server/blacklist.json'
#- './1.20.1/private/spigot/.properties/ops.json:/spigot-server/ops.json'
networks:
- private
ports:
- "25566:25566"
- "25567:25566"
stdin_open: true
tty: true

# Public Spigot API server
lavalawless_spigot_1_20_1:
build: 1.20.1/public/anarchy.lavalawsless.com
volumes:
- './1.20.1/public/anarchy.lavalawless.com/.map/world:/minecraft-server/world'
- './1.20.1/public/anarchy.lavalawless.com/.map/world_nether:/minecraft-server/world_nether'
- './1.20.1/public/anarchy.lavalawless.com/.map/world_the_end:/minecraft-server/world_the_end'
- './1.20.1/public/anarchy.lavalawless.com/blacklist.json:/minecraft-server/blacklist.json'
- './1.20.1/public/anarchy.lavalawless.com/ops.json:/minecraft-server/ops.json'
- './1.20.1/public/anarchy.lavalawless.com/.map/world:/spigot-server/world'
- './1.20.1/public/anarchy.lavalawless.com/.map/world_nether:/spigot-server/world_nether'
- './1.20.1/public/anarchy.lavalawless.com/.map/world_the_end:/spigot-server/world_the_end'
#- './1.20.1/public/anarchy.lavalawless.com/.properties/blacklist.json:/spigot-server/blacklist.json'
#- './1.20.1/public/anarchy.lavalawless.com/.properties/ops.json:/spigot-server/ops.json'
networks:
- public_1
ports:
- "25565:25565"
- "25565:25565"
stdin_open: true
tty: true

0 comments on commit 0314754

Please sign in to comment.