user 7 年之前
父節點
當前提交
10e7d73dc2
共有 3 個文件被更改,包括 3 次插入2 次删除
  1. 1 1
      Makefile
  2. 1 1
      init_container
  3. 1 0
      ipfs.supervisor.conf

+ 1 - 1
Makefile

@@ -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

+ 1 - 1
init_container

@@ -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 - 0
ipfs.supervisor.conf

@@ -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