fixes
This commit is contained in:
parent
f4205a288d
commit
736bbfcbe7
@ -6,7 +6,7 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|||||||
RUN \
|
RUN \
|
||||||
apt update && \
|
apt update && \
|
||||||
apt upgrade -y && \
|
apt upgrade -y && \
|
||||||
apt install -y golang git build-essential rsync debmirror && \
|
apt install -y golang git build-essential rsync debmirror ubuntu-archive-keyring && \
|
||||||
go get -u github.com/ipfs/ipfs-update && \
|
go get -u github.com/ipfs/ipfs-update && \
|
||||||
/root/go/bin/ipfs-update install latest && \
|
/root/go/bin/ipfs-update install latest && \
|
||||||
rm -rf /root/go && \
|
rm -rf /root/go && \
|
||||||
|
21
sync.run
21
sync.run
@ -17,7 +17,7 @@
|
|||||||
# Make a full sync of an Ubuntu mirror.
|
# Make a full sync of an Ubuntu mirror.
|
||||||
# This currently requires more than 1TB of storage space and takes a long time.
|
# This currently requires more than 1TB of storage space and takes a long time.
|
||||||
|
|
||||||
sleep 1 # prevent cpu spike on looping
|
sleep 60 # prevent cpu spike on looping
|
||||||
|
|
||||||
export MIRROR_DIR=/var/lib/ubuntumirror
|
export MIRROR_DIR=/var/lib/ubuntumirror
|
||||||
export IPFS_PATH=/var/lib/ipfs
|
export IPFS_PATH=/var/lib/ipfs
|
||||||
@ -27,9 +27,11 @@ if [[ ! -d $MIRROR_DIR ]]; then
|
|||||||
chown ipfs:ipfs $MIRROR_DIR
|
chown ipfs:ipfs $MIRROR_DIR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -d /etc/debmirror/gnupg ]]; then
|
export GNUPGHOME=/etc/debmirror/gnupg
|
||||||
mkdir -p /etc/debmirror/gnupg
|
|
||||||
chown ipfs:ipfs /etc/debmirror/gnupg
|
if [[ ! -d $GNUPGHOME ]]; then
|
||||||
|
mkdir -p $GNUPGHOME
|
||||||
|
chown ipfs:ipfs $GNUPGHOME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chpst -u ipfs /bin/bash << '__EOF__'
|
chpst -u ipfs /bin/bash << '__EOF__'
|
||||||
@ -38,15 +40,8 @@ export IPFS=/usr/local/bin/ipfs
|
|||||||
export HOME=/home/ipfs
|
export HOME=/home/ipfs
|
||||||
export IPFS_FD_MAX=4096
|
export IPFS_FD_MAX=4096
|
||||||
|
|
||||||
export GNUPGHOME=/etc/debmirror/gnupg
|
gpg --no-default-keyring --keyring $GNUPGHOME/trustedkeys.kbx --import \
|
||||||
|
/usr/share/keyrings/ubuntu*.gpg
|
||||||
gpg \
|
|
||||||
--keyring $GNUPGHOME/trustedkeys.kbx --no-default-keyring \
|
|
||||||
--import /usr/share/keyrings/ubuntu-archive-keyring.gpg \
|
|
||||||
|
|
||||||
gpg \
|
|
||||||
--keyring $GNUPGHOME/trustedkeys.kbx --no-default-keyring \
|
|
||||||
--recv-key 40976EAF437D05B5
|
|
||||||
|
|
||||||
$IPFS config --json Experimental.FilestoreEnabled true
|
$IPFS config --json Experimental.FilestoreEnabled true
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user