From 04d2bec1148d871546b3bbae5bd654c4164f8809 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Sun, 21 Jun 2026 22:29:55 -0700 Subject: [PATCH] fix: add init target to pre-create output dirs before docker Docker creates host-side bind-mount directories as root:root. Pre-creating them with make init (or mise run init) ensures they exist with the user's ownership before docker compose touches them. docker-up now depends on init. --- Makefile | 6 ++++-- mise.toml | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f52619c..683e809 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,5 @@ BIN := fetch IMAGE := akai-fetch -REMOTE := dhg.lol ELECTRON_DIR := electron build: @@ -17,7 +16,10 @@ docker: docker-run: docker run --rm -v "$(PWD)/output:/data" $(IMAGE) $(ARGS) -docker-up: +init: + mkdir -p output/isos output/wavs + +docker-up: init docker compose up --build docker-down: diff --git a/mise.toml b/mise.toml index b794835..5101ae8 100644 --- a/mise.toml +++ b/mise.toml @@ -15,7 +15,8 @@ electron-deps = "cd electron && npm install" electron-dev = { run = "go build -buildvcs=false -o fetch . && cd electron && npx electron ." } electron-build = { run = "go build -buildvcs=false -o fetch . && make -C third_party/akaiutil && cd electron && npx electron-builder --dir" } electron-build-mac = { run = "go build -buildvcs=false -o fetch . && make -C third_party/akaiutil && cd electron && npx electron-builder --mac --dir" } -docker-up = "docker compose up --build" +init = "mkdir -p output/isos output/wavs" +docker-up = "mkdir -p output/isos output/wavs && docker compose up --build" docker-build = "docker build -t akai-fetch ." check-toolchain = "bash scripts/check-toolchain.sh" check-docker-toolchain = "bash scripts/check-docker-toolchain.sh"