Compare commits

...

3 Commits

Author SHA1 Message Date
Jimmy 767122e8c0 Add script to download Minecraft server 2021-01-04 21:40:40 +13:00
Jimmy c16ce977f8 Remove entry.sh 2021-01-04 21:39:06 +13:00
Jimmy 3508e16c64 Remove binaries 2021-01-04 21:38:36 +13:00
6 changed files with 12 additions and 24 deletions

20
.gitignore vendored
View File

@ -1,18 +1,2 @@
# ---> Go
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Dependency directories (remove the comment below to include it)
# vendor/
server/*
server/*
bin/*

View File

@ -1,15 +1,13 @@
ARG JAVA_VERSION=14.0.2
FROM java:${JAVA_VERSION}
ARG JAVA_VERSION=11
FROM openjdk:${JAVA_VERSION}
ENV MIN_MEM=512M
ENV MAX_MEM=1G
ENV STOP="stop"
ENV JAR=server.jar
COPY ./bin/main /main
COPY ./bin/cmd /usr/local/bin/cmd
COPY ./entry.sh /entry.sh
EXPOSE 25565

BIN
bin/cmd

Binary file not shown.

BIN
bin/main

Binary file not shown.

View File

@ -1,5 +1,6 @@
#!/bin/sh
go build -o bin/main src/main.go
go build -o bin/cmd src/cmd.go
mkdir bin && \
go build -o bin/main src/main.go && \
go build -o bin/cmd src/cmd.go && \
sudo docker build -t magmise/minecraft .

5
get_minecraft.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
mkdir server
wget https://launcher.mojang.com/v1/objects/35139deedbd5182953cf1caa23835da59ca3d7cd/server.jar -O server/server.jar
echo eula=true > server/eula.txt