-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: install Kubo on CRNs (#385)
* Feature: install Kubo on CRNs Problem: we wish to upload large snapshot files to the aleph.im network. The aleph.im API requires large files to be available on IPFS. Solution: install Kubo (IPFS daemon) on CRNs. * fix init cmds * systemd * more fixes * fix * dep mgmt
- Loading branch information
1 parent
dca79dd
commit f1c0427
Showing
4 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packaging/aleph-vm/etc/systemd/system/aleph-vm-supervisor.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# This file will be overwritten on package upgrades, avoid customizations here. | ||
# | ||
# To make persistent changes, create file in | ||
# "/etc/systemd/system/ipfs.service.d/overwrite.conf" with | ||
# `systemctl edit ipfs.service`. This file will be parsed after this | ||
# file has been parsed. | ||
# | ||
# To overwrite a variable, like ExecStart you have to specify it once | ||
# blank and a second time with a new value, like: | ||
# ExecStart= | ||
# ExecStart=/usr/bin/ipfs daemon --flag1 --flag2 | ||
# | ||
# For more info about custom unit files see systemd.unit(5). | ||
|
||
[Unit] | ||
Description=InterPlanetary File System (IPFS) daemon | ||
Documentation=https://docs.ipfs.tech/ | ||
After=network.target | ||
|
||
[Service] | ||
|
||
# enable for 1-1024 port listening | ||
#AmbientCapabilities=CAP_NET_BIND_SERVICE | ||
# enable to specify a custom path see docs/environment-variables.md for further documentations | ||
#Environment=IPFS_PATH=/custom/ipfs/path | ||
# enable to specify a higher limit for open files/connections | ||
#LimitNOFILE=1000000 | ||
|
||
#don't use swap | ||
MemorySwapMax=0 | ||
|
||
# Don't timeout on startup. Opening the IPFS repo can take a long time in some cases (e.g., when | ||
# badger is recovering) and migrations can delay startup. | ||
# | ||
# Ideally, we'd be a bit smarter about this but there's no good way to do that without hooking | ||
# systemd dependencies deeper into go-ipfs. | ||
TimeoutStartSec=infinity | ||
|
||
Type=notify | ||
StateDirectory=ipfs | ||
Environment=IPFS_PATH="${HOME}" | ||
ExecStart=/opt/kubo/ipfs daemon --init --migrate | ||
Restart=on-failure | ||
KillSignal=SIGINT | ||
|
||
[Install] | ||
WantedBy=default.target |