Overhaul for get-server v. 2.0.0
Since get-server downloads its own jarfile this commit overhauls a lot of the minecraft deploy to match the new strategy. It also updates the README and adds makefile targets for a few new commands.
This commit is contained in:
28
Makefile
28
Makefile
@@ -1,27 +1,13 @@
|
||||
SHELL := /bin/bash
|
||||
|
||||
IMAGE ?= $(shell cat IMAGE):$(shell cat VERSION)
|
||||
IMAGE_LATEST ?= $(shell cat IMAGE):latest
|
||||
PWD ?= $(shell pwd)
|
||||
include .gitlab/Makefile
|
||||
|
||||
.PHONY: buildx-context
|
||||
buildx-context:
|
||||
docker buildx create --name arm64 --use --platform linux/amd64,linux/arm64
|
||||
|
||||
.PHONY: buildx-clear
|
||||
buildx-clear:
|
||||
docker buildx rm arm64
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
docker buildx build --load . -t $(IMAGE)
|
||||
@docker buildx build --load . -t $(IMAGE_LATEST)
|
||||
|
||||
.PHONY: push
|
||||
push:
|
||||
docker buildx build --platform linux/amd64 --push . -t $(IMAGE)
|
||||
@docker buildx build --platform linux/amd64 --push . -t $(IMAGE_LATEST)
|
||||
.PHONY: get-server
|
||||
get-server:
|
||||
@mkdir -p world
|
||||
@echo 'eula=true' > world/eula.txt
|
||||
@docker run -it -e SERVER_VERSION=1.17.1 -v $(PWD)/world:/downloads ducoterra/get-minecraft:latest
|
||||
|
||||
.PHONY: run
|
||||
run:
|
||||
docker run -it -v $(PWD):/mc_data $(IMAGE) bash
|
||||
docker-compose run --service-ports minecraft
|
||||
|
||||
Reference in New Issue
Block a user