add rsync, fix perms

This commit is contained in:
Jeffrey Paul 2018-10-01 14:20:50 -07:00
parent cb9ec87ffc
commit 43719766d5
3 changed files with 9 additions and 1 deletions

View File

@ -7,7 +7,7 @@ RUN apt update
# upgrading packages against advice of phusion
RUN apt upgrade -y
RUN apt install -y golang git build-essential
RUN apt install -y golang git build-essential rsync
RUN go get -u github.com/ipfs/ipfs-update
RUN /root/go/bin/ipfs-update install latest

View File

@ -3,6 +3,12 @@
export IPFS="/usr/local/bin/ipfs"
export HOME="/home/ipfs"
chown ipfs:ipfs $HOME
cd $HOME
if [[ ! -d $HOME/.ipfs ]]; then
chpst -u ipfs $IPFS init
fi
exec chpst -u ipfs $IPFS daemon

View File

@ -17,6 +17,8 @@
# Make a full sync of an Ubuntu mirror.
# This currently requires more than 1TB of storage space and takes a long time.
chown ipfs:ipfs /mirror
chpst -u ipfs /bin/bash << '__EOF__'
export IPFS=/usr/local/bin/ipfs