-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🙌 IPFS Weekly Call + Contributor Office Hours 📡 💫 2019-05-06 #408
Comments
It's happening! Right now! Background: #407 |
That's a wrap. Thanks for your time! We talked about:
we also shared some links:
|
On running IPFS on a laptop and moving between networks "Addresses": {
"Swarm": [
"/ip4/0.0.0.0/tcp/4001",
"/ip4/0.0.0.0/tcp/4042/ws",
"/ip4/0.0.0.0/udp/4001/quic"
], Right now go-ipfs is oblivious to network changes. IIUC setting We have most of the necessary pieces already in place (e.g. ambient NAT autodiscovery check) to detect IP changes, so it will happen automatically at some point. Relevant issues to follow are at libp2p/go-libp2p#1541 and ipfs/kubo#4993 Daemon restart is a quick workaround until libp2p learns to automagically deal with changing networks. Prior Art: TorThe Tor daemon automatically detects network changes. When I move my laptop between networks it detects connections to tor network were lost, and re-connects itself to the swarm from the new IP. Running go-ipfs in DockerI often need to switch between go-ipfs versions or start an emphemeral node with empty cache, so running it in Docker is quite handy and saved me a lot of time. Below are some notes if someone wants to start playing with it. Container with persistent storageCreateBelow command creates and starts a named (
$ docker run -d --name ipfs-node --user ipfs --group-add ipfs --restart unless-stopped --net=host -v /home/ipfs/staging:/export -v /home/ipfs/data:/data/ipfs ipfs/go-ipfs:v0.4.20 Start / StopOnce created, container can be started stopped using its name ( $ docker stop ipfs-node
$ docker start ipfs-node Execute arbitrary command in running container$ docker exec ipfs-node ipfs version --all
go-ipfs version: 0.4.20-
Repo version: 7
System version: amd64/linux
Golang version: go1.12.4 Set up your host to use API from container$ echo -n "/ip4/127.0.0.1/tcp/5001" > ~/.ipfs/api Having this, Ephemeral containerIf you want to run go-ipfs without persisting its configuration and data (e.g for testing): $ docker run --rm -it --net=host ipfs/go-ipfs:v0.4.19 It will run in interactive mode ( Running ipfs-cluster in DockerIPFS Cluster runs in docker too: https://hub.docker.com/r/ipfs/ipfs-cluster/tags/ $ docker run -it --rm --net=host ipfs/ipfs-cluster:v0.10.1 |
Next up on the IPFS weekly call:
Piotr Dyraga - Libp2p in Keep
Monday, 06 May 2019 17:00 UTC
Are you keen to contribute to IPFS but don't know where to start? Come and ask! We're hosting a weekly office hours session for 1 hour before the IPFS weekly call, Monday, 29 Apr 2019 - 16:00-17:00 UTC, via Zoom https://protocol.zoom.us/j/443621844
Add a +1 on this issue if you are going to attend, and feel free to add questions on this issue as you think of them.
If you just want to lurk on the call and learn, thats fine. It's a safe space to ask questions about IPFS and how best to contribute. If you'd like to come help answer questions that's good too.
🧪This is an experiement 🧪 Please do join in if you're interested, and give feedback along the way.
The text was updated successfully, but these errors were encountered: