diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..e4806483 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +**/*/logs/* +**/*/.cache/* +**/*/world/**/*.json +**/*/world/**/*.dat* +**/*/usercache.json \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..c8a10a0e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "[terraform]": { + "editor.defaultFormatter": "hashicorp.terraform", + "editor.formatOnSave": true, + "editor.tabSize": 2, + "editor.insertSpaces": true + } +} \ No newline at end of file diff --git a/README.md b/README.md index 0ff91fd2..3e213a99 100644 --- a/README.md +++ b/README.md @@ -77,3 +77,11 @@ chmod +x load-memory.sh ./load-memory.sh ``` +### Restart ECS Cluster +```bash +cl=$(aws ecs list-clusters | jq -r '.clusterArns[0]' ) +svc=$(aws ecs list-services --cluster ${cl} | jq -r '.serviceArns[0]' | sed -E 's/.+cluster\///g') + +aws ecs update-service --force-new-deployment --cluster ${cl} --service ${svc} + +``` \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 1e34bd55..4b5e3fdf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,9 @@ version: "3.8" services: mc: container_name: minecraft - image: itzg/minecraft-server + build: + context: ./docker/minecraft + dockerfile: Dockerfile tty: true stdin_open: true ports: @@ -11,8 +13,10 @@ services: environment: EULA: "TRUE" volumes: + - ~/.aws/credentials:/root/.aws/credentials:ro + - ~/.aws/config:/root/.aws/config:ro # attach the relative directory 'data' to the container's /data path - - ./app:/data + - ./docker/minecraft:/data fluent-bit: container_name: fluentbit depends_on: diff --git a/docker/minecraft/.rcon-cli.env b/docker/minecraft/.rcon-cli.env new file mode 100644 index 00000000..cfdbec9f --- /dev/null +++ b/docker/minecraft/.rcon-cli.env @@ -0,0 +1 @@ +password=a20114382cbc7ac18cd6fdcf diff --git a/docker/minecraft/Dockerfile b/docker/minecraft/Dockerfile new file mode 100644 index 00000000..cd03ed82 --- /dev/null +++ b/docker/minecraft/Dockerfile @@ -0,0 +1,24 @@ +FROM itzg/minecraft-server + +ENV S3_BUCKET_NAME="minecraft-backend" +ENV S3_PREFIX_NAME="backups" + +# install aws cli +RUN apt-get update && apt-get install -y \ + ca-certificates \ + curl \ + unzip \ + tini \ + && curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \ + && unzip awscliv2.zip \ + && ./aws/install -i /usr/local/aws-cli -b /usr/bin + + +RUN aws --version + +WORKDIR /data + +COPY scripts/entrypoint.sh scripts/ +RUN chmod +x scripts/entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "--"] +CMD ["./scripts/entrypoint.sh"] \ No newline at end of file diff --git a/docker/minecraft/banned-ips.json b/docker/minecraft/banned-ips.json new file mode 100644 index 00000000..0637a088 --- /dev/null +++ b/docker/minecraft/banned-ips.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/docker/minecraft/banned-players.json b/docker/minecraft/banned-players.json new file mode 100644 index 00000000..0637a088 --- /dev/null +++ b/docker/minecraft/banned-players.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/docker/minecraft/eula.txt b/docker/minecraft/eula.txt new file mode 100644 index 00000000..ef3d9c7e --- /dev/null +++ b/docker/minecraft/eula.txt @@ -0,0 +1,4 @@ +# Generated via Docker +# Sat 30 Sep 2023 11:15:10 AM UTC +eula=true + diff --git a/docker/minecraft/libraries/com/github/oshi/oshi-core/6.4.5/oshi-core-6.4.5.jar b/docker/minecraft/libraries/com/github/oshi/oshi-core/6.4.5/oshi-core-6.4.5.jar new file mode 100644 index 00000000..ed5992e8 Binary files /dev/null and b/docker/minecraft/libraries/com/github/oshi/oshi-core/6.4.5/oshi-core-6.4.5.jar differ diff --git a/docker/minecraft/libraries/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar b/docker/minecraft/libraries/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar new file mode 100644 index 00000000..a88c5bd9 Binary files /dev/null and b/docker/minecraft/libraries/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar differ diff --git a/docker/minecraft/libraries/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar b/docker/minecraft/libraries/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar new file mode 100644 index 00000000..9b56dc75 Binary files /dev/null and b/docker/minecraft/libraries/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar differ diff --git a/docker/minecraft/libraries/com/google/guava/guava/32.1.2-jre/guava-32.1.2-jre.jar b/docker/minecraft/libraries/com/google/guava/guava/32.1.2-jre/guava-32.1.2-jre.jar new file mode 100644 index 00000000..e71fd46c Binary files /dev/null and b/docker/minecraft/libraries/com/google/guava/guava/32.1.2-jre/guava-32.1.2-jre.jar differ diff --git a/docker/minecraft/libraries/com/mojang/authlib/5.0.47/authlib-5.0.47.jar b/docker/minecraft/libraries/com/mojang/authlib/5.0.47/authlib-5.0.47.jar new file mode 100644 index 00000000..6e3b7256 Binary files /dev/null and b/docker/minecraft/libraries/com/mojang/authlib/5.0.47/authlib-5.0.47.jar differ diff --git a/docker/minecraft/libraries/com/mojang/brigadier/1.1.8/brigadier-1.1.8.jar b/docker/minecraft/libraries/com/mojang/brigadier/1.1.8/brigadier-1.1.8.jar new file mode 100644 index 00000000..95d9903a Binary files /dev/null and b/docker/minecraft/libraries/com/mojang/brigadier/1.1.8/brigadier-1.1.8.jar differ diff --git a/docker/minecraft/libraries/com/mojang/datafixerupper/6.0.8/datafixerupper-6.0.8.jar b/docker/minecraft/libraries/com/mojang/datafixerupper/6.0.8/datafixerupper-6.0.8.jar new file mode 100644 index 00000000..2570a94c Binary files /dev/null and b/docker/minecraft/libraries/com/mojang/datafixerupper/6.0.8/datafixerupper-6.0.8.jar differ diff --git a/docker/minecraft/libraries/com/mojang/logging/1.1.1/logging-1.1.1.jar b/docker/minecraft/libraries/com/mojang/logging/1.1.1/logging-1.1.1.jar new file mode 100644 index 00000000..cf33dc56 Binary files /dev/null and b/docker/minecraft/libraries/com/mojang/logging/1.1.1/logging-1.1.1.jar differ diff --git a/docker/minecraft/libraries/commons-io/commons-io/2.13.0/commons-io-2.13.0.jar b/docker/minecraft/libraries/commons-io/commons-io/2.13.0/commons-io-2.13.0.jar new file mode 100644 index 00000000..eb316f40 Binary files /dev/null and b/docker/minecraft/libraries/commons-io/commons-io/2.13.0/commons-io-2.13.0.jar differ diff --git a/docker/minecraft/libraries/io/netty/netty-buffer/4.1.97.Final/netty-buffer-4.1.97.Final.jar b/docker/minecraft/libraries/io/netty/netty-buffer/4.1.97.Final/netty-buffer-4.1.97.Final.jar new file mode 100644 index 00000000..47a6651b Binary files /dev/null and b/docker/minecraft/libraries/io/netty/netty-buffer/4.1.97.Final/netty-buffer-4.1.97.Final.jar differ diff --git a/docker/minecraft/libraries/io/netty/netty-codec/4.1.97.Final/netty-codec-4.1.97.Final.jar b/docker/minecraft/libraries/io/netty/netty-codec/4.1.97.Final/netty-codec-4.1.97.Final.jar new file mode 100644 index 00000000..b0988adf Binary files /dev/null and b/docker/minecraft/libraries/io/netty/netty-codec/4.1.97.Final/netty-codec-4.1.97.Final.jar differ diff --git a/docker/minecraft/libraries/io/netty/netty-common/4.1.97.Final/netty-common-4.1.97.Final.jar b/docker/minecraft/libraries/io/netty/netty-common/4.1.97.Final/netty-common-4.1.97.Final.jar new file mode 100644 index 00000000..b35e108b Binary files /dev/null and b/docker/minecraft/libraries/io/netty/netty-common/4.1.97.Final/netty-common-4.1.97.Final.jar differ diff --git a/docker/minecraft/libraries/io/netty/netty-handler/4.1.97.Final/netty-handler-4.1.97.Final.jar b/docker/minecraft/libraries/io/netty/netty-handler/4.1.97.Final/netty-handler-4.1.97.Final.jar new file mode 100644 index 00000000..222edb11 Binary files /dev/null and b/docker/minecraft/libraries/io/netty/netty-handler/4.1.97.Final/netty-handler-4.1.97.Final.jar differ diff --git a/docker/minecraft/libraries/io/netty/netty-resolver/4.1.97.Final/netty-resolver-4.1.97.Final.jar b/docker/minecraft/libraries/io/netty/netty-resolver/4.1.97.Final/netty-resolver-4.1.97.Final.jar new file mode 100644 index 00000000..301c04e6 Binary files /dev/null and b/docker/minecraft/libraries/io/netty/netty-resolver/4.1.97.Final/netty-resolver-4.1.97.Final.jar differ diff --git a/docker/minecraft/libraries/io/netty/netty-transport-classes-epoll/4.1.97.Final/netty-transport-classes-epoll-4.1.97.Final.jar b/docker/minecraft/libraries/io/netty/netty-transport-classes-epoll/4.1.97.Final/netty-transport-classes-epoll-4.1.97.Final.jar new file mode 100644 index 00000000..46a18cb6 Binary files /dev/null and b/docker/minecraft/libraries/io/netty/netty-transport-classes-epoll/4.1.97.Final/netty-transport-classes-epoll-4.1.97.Final.jar differ diff --git a/docker/minecraft/libraries/io/netty/netty-transport-native-epoll/4.1.97.Final/netty-transport-native-epoll-4.1.97.Final-linux-aarch_64.jar b/docker/minecraft/libraries/io/netty/netty-transport-native-epoll/4.1.97.Final/netty-transport-native-epoll-4.1.97.Final-linux-aarch_64.jar new file mode 100644 index 00000000..af13a778 Binary files /dev/null and b/docker/minecraft/libraries/io/netty/netty-transport-native-epoll/4.1.97.Final/netty-transport-native-epoll-4.1.97.Final-linux-aarch_64.jar differ diff --git a/docker/minecraft/libraries/io/netty/netty-transport-native-epoll/4.1.97.Final/netty-transport-native-epoll-4.1.97.Final-linux-x86_64.jar b/docker/minecraft/libraries/io/netty/netty-transport-native-epoll/4.1.97.Final/netty-transport-native-epoll-4.1.97.Final-linux-x86_64.jar new file mode 100644 index 00000000..0a600b60 Binary files /dev/null and b/docker/minecraft/libraries/io/netty/netty-transport-native-epoll/4.1.97.Final/netty-transport-native-epoll-4.1.97.Final-linux-x86_64.jar differ diff --git a/docker/minecraft/libraries/io/netty/netty-transport-native-unix-common/4.1.97.Final/netty-transport-native-unix-common-4.1.97.Final.jar b/docker/minecraft/libraries/io/netty/netty-transport-native-unix-common/4.1.97.Final/netty-transport-native-unix-common-4.1.97.Final.jar new file mode 100644 index 00000000..7347eb1e Binary files /dev/null and b/docker/minecraft/libraries/io/netty/netty-transport-native-unix-common/4.1.97.Final/netty-transport-native-unix-common-4.1.97.Final.jar differ diff --git a/docker/minecraft/libraries/io/netty/netty-transport/4.1.97.Final/netty-transport-4.1.97.Final.jar b/docker/minecraft/libraries/io/netty/netty-transport/4.1.97.Final/netty-transport-4.1.97.Final.jar new file mode 100644 index 00000000..bf0a5a7c Binary files /dev/null and b/docker/minecraft/libraries/io/netty/netty-transport/4.1.97.Final/netty-transport-4.1.97.Final.jar differ diff --git a/docker/minecraft/libraries/it/unimi/dsi/fastutil/8.5.12/fastutil-8.5.12.jar b/docker/minecraft/libraries/it/unimi/dsi/fastutil/8.5.12/fastutil-8.5.12.jar new file mode 100644 index 00000000..293bae7c Binary files /dev/null and b/docker/minecraft/libraries/it/unimi/dsi/fastutil/8.5.12/fastutil-8.5.12.jar differ diff --git a/docker/minecraft/libraries/net/java/dev/jna/jna-platform/5.13.0/jna-platform-5.13.0.jar b/docker/minecraft/libraries/net/java/dev/jna/jna-platform/5.13.0/jna-platform-5.13.0.jar new file mode 100644 index 00000000..816a567c Binary files /dev/null and b/docker/minecraft/libraries/net/java/dev/jna/jna-platform/5.13.0/jna-platform-5.13.0.jar differ diff --git a/docker/minecraft/libraries/net/java/dev/jna/jna/5.13.0/jna-5.13.0.jar b/docker/minecraft/libraries/net/java/dev/jna/jna/5.13.0/jna-5.13.0.jar new file mode 100644 index 00000000..3d49c818 Binary files /dev/null and b/docker/minecraft/libraries/net/java/dev/jna/jna/5.13.0/jna-5.13.0.jar differ diff --git a/docker/minecraft/libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar b/docker/minecraft/libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar new file mode 100644 index 00000000..317b2b06 Binary files /dev/null and b/docker/minecraft/libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar differ diff --git a/docker/minecraft/libraries/org/apache/commons/commons-lang3/3.13.0/commons-lang3-3.13.0.jar b/docker/minecraft/libraries/org/apache/commons/commons-lang3/3.13.0/commons-lang3-3.13.0.jar new file mode 100644 index 00000000..891540f4 Binary files /dev/null and b/docker/minecraft/libraries/org/apache/commons/commons-lang3/3.13.0/commons-lang3-3.13.0.jar differ diff --git a/docker/minecraft/libraries/org/apache/logging/log4j/log4j-api/2.19.0/log4j-api-2.19.0.jar b/docker/minecraft/libraries/org/apache/logging/log4j/log4j-api/2.19.0/log4j-api-2.19.0.jar new file mode 100644 index 00000000..e55547df Binary files /dev/null and b/docker/minecraft/libraries/org/apache/logging/log4j/log4j-api/2.19.0/log4j-api-2.19.0.jar differ diff --git a/docker/minecraft/libraries/org/apache/logging/log4j/log4j-core/2.19.0/log4j-core-2.19.0.jar b/docker/minecraft/libraries/org/apache/logging/log4j/log4j-core/2.19.0/log4j-core-2.19.0.jar new file mode 100644 index 00000000..cdc6fe72 Binary files /dev/null and b/docker/minecraft/libraries/org/apache/logging/log4j/log4j-core/2.19.0/log4j-core-2.19.0.jar differ diff --git a/docker/minecraft/libraries/org/apache/logging/log4j/log4j-slf4j2-impl/2.19.0/log4j-slf4j2-impl-2.19.0.jar b/docker/minecraft/libraries/org/apache/logging/log4j/log4j-slf4j2-impl/2.19.0/log4j-slf4j2-impl-2.19.0.jar new file mode 100644 index 00000000..12e226f4 Binary files /dev/null and b/docker/minecraft/libraries/org/apache/logging/log4j/log4j-slf4j2-impl/2.19.0/log4j-slf4j2-impl-2.19.0.jar differ diff --git a/docker/minecraft/libraries/org/joml/joml/1.10.5/joml-1.10.5.jar b/docker/minecraft/libraries/org/joml/joml/1.10.5/joml-1.10.5.jar new file mode 100644 index 00000000..c5fc5b9b Binary files /dev/null and b/docker/minecraft/libraries/org/joml/joml/1.10.5/joml-1.10.5.jar differ diff --git a/docker/minecraft/libraries/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar b/docker/minecraft/libraries/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar new file mode 100644 index 00000000..be5447c4 Binary files /dev/null and b/docker/minecraft/libraries/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar differ diff --git a/docker/minecraft/minecraft_server.1.20.2.jar b/docker/minecraft/minecraft_server.1.20.2.jar new file mode 100644 index 00000000..14560fd3 Binary files /dev/null and b/docker/minecraft/minecraft_server.1.20.2.jar differ diff --git a/docker/minecraft/ops.json b/docker/minecraft/ops.json new file mode 100644 index 00000000..0637a088 --- /dev/null +++ b/docker/minecraft/ops.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/docker/minecraft/scripts/entrypoint.sh b/docker/minecraft/scripts/entrypoint.sh new file mode 100755 index 00000000..6f66ac89 --- /dev/null +++ b/docker/minecraft/scripts/entrypoint.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +set -ex + +export S3_BUCKET=$S3_BUCKET_NAME # minecraft-backend +S3_PREFIX=$S3_PREFIX_NAME # backups + +BACKUP_DATE_TIME=$(date +"%Y%m%d%H%M%S") +PARTITION_DATE=$(date +"%Y")-$(date +"%m")-$(date +"%d") + +# function executed when container is shutdown +cleanup() { + echo "Container is terminating. Uploading data from EFS to S3..." + if [ ! -d backup/${PARTITION_DATE} ]; then + mkdir -p backup/${PARTITION_DATE} + fi + aws s3 rm s3://${S3_BUCKET}/${S3_PREFIX}/${PARTITION_DATE} --recursive + FILE_NAME='minecraft-'${BACKUP_DATE_TIME}'.tar.gz' + tar -zcvf backup/${PARTITION_DATE}/${FILE_NAME} -C /data/ world/ + aws s3 cp backup/${PARTITION_DATE}/${FILE_NAME} s3://${S3_BUCKET}/${S3_PREFIX}/${PARTITION_DATE}/ + + kill -TERM "$child" 2>/dev/null +} + +# function executed when container is started +start() { + echo "Container is starting. Downloading data from S3..." + LATEST_BACKUP=$(aws s3 ls --recursive s3://${S3_BUCKET}/${S3_PREFIX}/ | sort | tail -n 1 | awk '{print $4}' ) + # donwload s3 and unzip it to /data/world/ + aws s3 cp s3://${S3_BUCKET}/${LATEST_BACKUP} /data/world/ + find /data/world/ -name "*.tar.gz" -exec tar -xvf {} \; + rm -rf /data/world/*.tar.gz +} + +# trap SIGTERM signal and call cleanup +trap cleanup TERM + +# execute default command in container definition +/start "$@" & +child=$! + +wait "$child" diff --git a/docker/minecraft/server.properties b/docker/minecraft/server.properties new file mode 100644 index 00000000..064ee9b4 --- /dev/null +++ b/docker/minecraft/server.properties @@ -0,0 +1,59 @@ +#Minecraft server properties +#Sat Sep 30 11:30:39 UTC 2023 +enable-jmx-monitoring=false +rcon.port=25575 +level-seed= +gamemode=survival +enable-command-block=false +enable-query=false +generator-settings={} +enforce-secure-profile=true +level-name=world +motd=A Vanilla Minecraft Server powered by Docker +query.port=25565 +pvp=true +generate-structures=true +max-chained-neighbor-updates=1000000 +difficulty=easy +network-compression-threshold=256 +max-tick-time=60000 +require-resource-pack=false +use-native-transport=true +max-players=20 +online-mode=true +enable-status=true +allow-flight=false +initial-disabled-packs= +broadcast-rcon-to-ops=true +view-distance=10 +server-ip= +resource-pack-prompt= +allow-nether=true +server-port=25565 +enable-rcon=true +sync-chunk-writes=true +op-permission-level=4 +prevent-proxy-connections=false +hide-online-players=false +resource-pack= +entity-broadcast-range-percentage=100 +simulation-distance=10 +rcon.password=a20114382cbc7ac18cd6fdcf +player-idle-timeout=0 +force-gamemode=false +rate-limit=0 +hardcore=false +white-list=false +broadcast-console-to-ops=true +spawn-npcs=true +spawn-animals=true +log-ips=true +function-permission-level=2 +initial-enabled-packs=vanilla +level-type=minecraft\:normal +text-filtering-config= +spawn-monsters=true +enforce-whitelist=false +spawn-protection=16 +resource-pack-sha1= +max-world-size=29999984 diff --git a/docker/minecraft/versions/1.20.2/server-1.20.2.jar b/docker/minecraft/versions/1.20.2/server-1.20.2.jar new file mode 100644 index 00000000..6b3ec009 Binary files /dev/null and b/docker/minecraft/versions/1.20.2/server-1.20.2.jar differ diff --git a/docker/minecraft/whitelist.json b/docker/minecraft/whitelist.json new file mode 100644 index 00000000..0637a088 --- /dev/null +++ b/docker/minecraft/whitelist.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/docker/minecraft/world/entities/r.-1.-1.mca b/docker/minecraft/world/entities/r.-1.-1.mca new file mode 100644 index 00000000..92cebd3a Binary files /dev/null and b/docker/minecraft/world/entities/r.-1.-1.mca differ diff --git a/docker/minecraft/world/entities/r.-1.0.mca b/docker/minecraft/world/entities/r.-1.0.mca new file mode 100644 index 00000000..42bcaeba Binary files /dev/null and b/docker/minecraft/world/entities/r.-1.0.mca differ diff --git a/docker/minecraft/world/entities/r.0.-1.mca b/docker/minecraft/world/entities/r.0.-1.mca new file mode 100644 index 00000000..3ad32396 Binary files /dev/null and b/docker/minecraft/world/entities/r.0.-1.mca differ diff --git a/docker/minecraft/world/entities/r.0.0.mca b/docker/minecraft/world/entities/r.0.0.mca new file mode 100644 index 00000000..40a035a6 Binary files /dev/null and b/docker/minecraft/world/entities/r.0.0.mca differ diff --git a/docker/minecraft/world/poi/r.-1.-1.mca b/docker/minecraft/world/poi/r.-1.-1.mca new file mode 100644 index 00000000..e69de29b diff --git a/docker/minecraft/world/poi/r.-1.0.mca b/docker/minecraft/world/poi/r.-1.0.mca new file mode 100644 index 00000000..2187f013 Binary files /dev/null and b/docker/minecraft/world/poi/r.-1.0.mca differ diff --git a/docker/minecraft/world/poi/r.-1.1.mca b/docker/minecraft/world/poi/r.-1.1.mca new file mode 100644 index 00000000..e69de29b diff --git a/docker/minecraft/world/poi/r.0.-1.mca b/docker/minecraft/world/poi/r.0.-1.mca new file mode 100644 index 00000000..e69de29b diff --git a/docker/minecraft/world/poi/r.0.0.mca b/docker/minecraft/world/poi/r.0.0.mca new file mode 100644 index 00000000..343d1838 Binary files /dev/null and b/docker/minecraft/world/poi/r.0.0.mca differ diff --git a/docker/minecraft/world/poi/r.0.1.mca b/docker/minecraft/world/poi/r.0.1.mca new file mode 100644 index 00000000..e69de29b diff --git a/docker/minecraft/world/region/r.-1.-1.mca b/docker/minecraft/world/region/r.-1.-1.mca new file mode 100644 index 00000000..600c3bd2 Binary files /dev/null and b/docker/minecraft/world/region/r.-1.-1.mca differ diff --git a/docker/minecraft/world/region/r.-1.0.mca b/docker/minecraft/world/region/r.-1.0.mca new file mode 100644 index 00000000..6e7a804e Binary files /dev/null and b/docker/minecraft/world/region/r.-1.0.mca differ diff --git a/docker/minecraft/world/region/r.-1.1.mca b/docker/minecraft/world/region/r.-1.1.mca new file mode 100644 index 00000000..24c56471 Binary files /dev/null and b/docker/minecraft/world/region/r.-1.1.mca differ diff --git a/docker/minecraft/world/region/r.0.-1.mca b/docker/minecraft/world/region/r.0.-1.mca new file mode 100644 index 00000000..9dc549f9 Binary files /dev/null and b/docker/minecraft/world/region/r.0.-1.mca differ diff --git a/docker/minecraft/world/region/r.0.0.mca b/docker/minecraft/world/region/r.0.0.mca new file mode 100644 index 00000000..4415b3c9 Binary files /dev/null and b/docker/minecraft/world/region/r.0.0.mca differ diff --git a/docker/minecraft/world/region/r.0.1.mca b/docker/minecraft/world/region/r.0.1.mca new file mode 100644 index 00000000..ddde57ca Binary files /dev/null and b/docker/minecraft/world/region/r.0.1.mca differ diff --git a/docker/minecraft/world/session.lock b/docker/minecraft/world/session.lock new file mode 100644 index 00000000..0d7e5f85 --- /dev/null +++ b/docker/minecraft/world/session.lock @@ -0,0 +1 @@ +☃ \ No newline at end of file diff --git a/terraform/scheduling/main.tf b/terraform/scheduling/main.tf index a7902bcb..adb47ea4 100644 --- a/terraform/scheduling/main.tf +++ b/terraform/scheduling/main.tf @@ -58,7 +58,7 @@ module "custom_ecs" { } fargate_cpu = 1024 fargate_memory = 2048 - mc_image_uri = "itzg/minecraft-server" + mc_image_uri = "${var.aws_account_id}.dkr.ecr.${var.aws_region}.amazonaws.com/minecraft/server" fluentbit_image_uri = "${var.aws_account_id}.dkr.ecr.${var.aws_region}.amazonaws.com/minecraft/fluentbit" mc_container_name = "minecraft" mc_container_port = 25565