2018-03-06 03:06:42 +01:00
|
|
|
|
2018-03-14 00:48:56 +01:00
|
|
|
ECO_VERSION ?= 0.7.2.4-beta
|
2018-03-06 03:06:42 +01:00
|
|
|
|
|
|
|
DOCKER_IMAGE = t3hk0d3/eco-server
|
|
|
|
DOCKER_TARGET = ${DOCKER_IMAGE}:${ECO_VERSION}
|
|
|
|
|
|
|
|
all: build push clean
|
|
|
|
|
2018-03-12 23:58:16 +01:00
|
|
|
build:
|
2018-03-06 03:06:42 +01:00
|
|
|
docker build --rm \
|
2018-03-12 23:58:16 +01:00
|
|
|
--label "eco.version=${ECO_VERSION}" \
|
|
|
|
--build-arg ECO_VERSION="${ECO_VERSION}" \
|
|
|
|
-t ${DOCKER_TARGET} \
|
|
|
|
-t ${DOCKER_IMAGE} \
|
|
|
|
.
|
2018-03-06 03:06:42 +01:00
|
|
|
|
|
|
|
push:
|
2018-03-12 23:58:16 +01:00
|
|
|
docker push ${DOCKER_IMAGE}
|
2018-03-06 03:06:42 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf "${ECO_FILENAME}"
|
2018-03-13 00:22:10 +01:00
|
|
|
|
|
|
|
run:
|
|
|
|
mkdir -p ~/eco-server/Storage ~/eco-server/Configs && \
|
|
|
|
docker run -d --name "eco-server" \
|
|
|
|
-v ~/eco-server/Storage:/srv/eco-server/Storage \
|
|
|
|
-v ~/eco-server/Configs:/srv/eco-server/Configs \
|
|
|
|
--network=host \
|
|
|
|
${DOCKER_TARGET}
|
2018-03-06 03:06:42 +01:00
|
|
|
|