Add caddy ports to docker runs

This commit is contained in:
IamTheFij 2020-11-18 10:49:16 -08:00
parent 07f5555695
commit 99ff45d1a7

View File

@ -1,6 +1,6 @@
DOCKER_TAG ?= beets-dev DOCKER_TAG ?= beets-dev
SOURCE_DIR ?= ~/Music/Incoming SOURCE_DIR ?= $(HOME)/Music/Incoming
TARGET_DIR ?= ~/Music/Library TARGET_DIR ?= $(HOME)/Music/Library
BEET_CMD := BEETSDIR=. ./beets_env/bin/beet -d $(TARGET_DIR) BEET_CMD := BEETSDIR=. ./beets_env/bin/beet -d $(TARGET_DIR)
test: test:
@ -39,18 +39,20 @@ docker-build:
docker-import: docker-build docker-import: docker-build
docker run --rm -it \ docker run --rm -it \
-v $(shell pwd):/beets \ -v "$(shell pwd):/beets" \
-v $(SOURCE_DIR):/import \ -v "$(SOURCE_DIR):/import" \
-v $(TARGET_DIR):/library \ -v "$(TARGET_DIR):/library" \
-p "9000:9000" \
$(DOCKER_TAG) \ $(DOCKER_TAG) \
-d /library \ -d /library \
import -i /import import -i /import
docker-duplicates: docker-build docker-duplicates: docker-build
docker run --rm -it \ docker run --rm -it \
-v $(shell pwd):/beets \ -v "$(shell pwd):/beets" \
-v $(SOURCE_DIR):/import \ -v "$(SOURCE_DIR):/import" \
-v $(TARGET_DIR):/library \ -v "$(TARGET_DIR):/library" \
-p "9000:9000" \
$(DOCKER_TAG) \ $(DOCKER_TAG) \
-d /library \ -d /library \
duplicates duplicates