Added configureable base image to minecraft containers
parent
cc754571de
commit
6902926bc9
|
@ -1,3 +1,8 @@
|
||||||
|
# This setting overwrites the base image from which the final image is build.
|
||||||
|
# Unless you have a reason to change this (e.g. using an ARM version), you can
|
||||||
|
# just leave this blank.
|
||||||
|
BASE_IMAGE=
|
||||||
|
|
||||||
# Build arguments
|
# Build arguments
|
||||||
MC_VERSION=
|
MC_VERSION=
|
||||||
FABRIC_VERSION=
|
FABRIC_VERSION=
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
FROM openjdk:8-jre-slim
|
ARG BASE_IMAGE
|
||||||
|
|
||||||
|
# We use ${:-} instead of a default value because the argument is always passed
|
||||||
|
# to the build, it'll just be blank most likely
|
||||||
|
FROM ${BASE_IMAGE:-'openjdk:8-jre-slim'}
|
||||||
|
|
||||||
# Build arguments
|
# Build arguments
|
||||||
ARG MC_VERSION
|
ARG MC_VERSION
|
||||||
|
|
|
@ -4,8 +4,9 @@ services:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
args:
|
args:
|
||||||
- 'MC_VERSION'
|
- 'BASE_IMAGE'
|
||||||
- 'FABRIC_VERSION'
|
- 'FABRIC_VERSION'
|
||||||
|
- 'MC_VERSION'
|
||||||
image: 'chewingbever/mc-fabric:${MC_VERSION}-${FABRIC_VERSION}'
|
image: 'chewingbever/mc-fabric:${MC_VERSION}-${FABRIC_VERSION}'
|
||||||
|
|
||||||
restart: 'always'
|
restart: 'always'
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
# This setting overwrites the base image from which the final image is build.
|
||||||
|
# Unless you have a reason to change this (e.g. using an ARM version), you can
|
||||||
|
# just leave this blank.
|
||||||
|
BASE_IMAGE=
|
||||||
|
|
||||||
# Build arguments
|
# Build arguments
|
||||||
MC_VERSION=
|
MC_VERSION=
|
||||||
FORGE_VERSION=
|
FORGE_VERSION=
|
||||||
|
@ -9,8 +14,8 @@ XMX=4
|
||||||
|
|
||||||
# Mount points
|
# Mount points
|
||||||
# The mods should be placed inside the CONFIG_DIR under `mods`
|
# The mods should be placed inside the CONFIG_DIR under `mods`
|
||||||
CONFIG_DIR=
|
CONFIG_DIR=config
|
||||||
WORLDS_DIR=
|
WORLDS_DIR=worlds
|
||||||
|
|
||||||
# Other
|
# Other
|
||||||
PORT=25565
|
PORT=25565
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
FROM openjdk:8-jre-slim
|
ARG BASE_IMAGE
|
||||||
|
|
||||||
|
# We use ${:-} instead of a default value because the argument is always passed
|
||||||
|
# to the build, it'll just be blank most likely
|
||||||
|
FROM ${BASE_IMAGE:-'openjdk:8-jre-slim'}
|
||||||
|
|
||||||
# Build arguments
|
# Build arguments
|
||||||
ARG MC_VERSION
|
ARG MC_VERSION
|
||||||
|
|
|
@ -4,8 +4,9 @@ services:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
args:
|
args:
|
||||||
- 'MC_VERSION'
|
- 'BASE_IMAGE'
|
||||||
- 'FORGE_VERSION'
|
- 'FORGE_VERSION'
|
||||||
|
- 'MC_VERSION'
|
||||||
image: 'chewingbever/mc-forge:${MC_VERSION}-${FORGE_VERSION}'
|
image: 'chewingbever/mc-forge:${MC_VERSION}-${FORGE_VERSION}'
|
||||||
|
|
||||||
restart: 'always'
|
restart: 'always'
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
# This setting overwrites the base image from which the final image is build.
|
||||||
|
# Unless you have a reason to change this (e.g. using an ARM version), you can
|
||||||
|
# just leave this blank.
|
||||||
|
BASE_IMAGE=
|
||||||
|
|
||||||
# Build arguments
|
# Build arguments
|
||||||
MC_VERSION=
|
MC_VERSION=
|
||||||
PAPERMC_VERSION=
|
PAPERMC_VERSION=
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
FROM openjdk:11-jre-slim
|
ARG BASE_IMAGE
|
||||||
|
|
||||||
|
# We use ${:-} instead of a default value because the argument is always passed
|
||||||
|
# to the build, it'll just be blank most likely
|
||||||
|
FROM ${BASE_IMAGE:-'openjdk:11-jre-slim'}
|
||||||
|
|
||||||
# Build arguments
|
# Build arguments
|
||||||
ARG MC_VERSION
|
ARG MC_VERSION
|
||||||
|
|
|
@ -4,6 +4,7 @@ services:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
args:
|
args:
|
||||||
|
- 'BASE_IMAGE'
|
||||||
- 'MC_VERSION'
|
- 'MC_VERSION'
|
||||||
- 'PAPERMC_VERSION'
|
- 'PAPERMC_VERSION'
|
||||||
image: 'chewingbever/mc-papermc:${MC_VERSION}-${PAPERMC_VERSION}'
|
image: 'chewingbever/mc-papermc:${MC_VERSION}-${PAPERMC_VERSION}'
|
||||||
|
|
Reference in New Issue