All checks were successful
Minecraft Java Image / build-and-push (push) Successful in 18s
28 lines
513 B
Makefile
28 lines
513 B
Makefile
SHELL := /bin/bash
|
|
|
|
include .gitlab/Makefile
|
|
|
|
.PHONY: build
|
|
build:
|
|
@podman build -f Dockerfile -t localhost/minecraft:latest
|
|
|
|
.PHONY: get-server
|
|
get-server:
|
|
@mkdir -p world
|
|
@echo 'eula=true' > world/eula.txt
|
|
@podman run \
|
|
-it \
|
|
--rm \
|
|
-e SERVER_VERSION=1.21.10 \
|
|
-v $(PWD)/world:/downloads \
|
|
--security-opt label=disable \
|
|
--userns keep-id \
|
|
docker.io/ducoterra/get-minecraft:latest
|
|
|
|
.PHONY: run
|
|
run:
|
|
docker compose -f compose.yaml up minecraft
|
|
|
|
.PHONY: stop
|
|
stop:
|
|
docker compose -f compose.yaml down
|