@@ -11,7 +11,7 @@ init:
bash init_container
build:
- docker build -t $(NAME) .
+ docker build $(BUILD_OPTIONS) -t $(NAME) .
shell:
docker exec -it $(ID) /bin/bash
@@ -14,7 +14,7 @@ data_dir="$base/ipfsdata"
staging_dir="$base/staging"
mkdir -p "$data_dir" "$staging_dir"
-chown 1000:1000 "$data_dir" "$staging_dir"
+chown 1000:1000 "$data_dir" "$staging_dir" || true
cat <<EOF >"$base/.env"
LOCAL_DIR = $data_dir
@@ -1,6 +1,7 @@
[program:ipfs]
user=ipfs
command=/usr/local/bin/start_ipfs
+environment=HOME="/home/ipfs",USER="ipfs"
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr