In this lab, you will explore essential DevOps tools and set up a project on the Fleek service. Follow the tasks below to complete the lab assignment.
Objective: Understand and implement an IPFS gateway using Docker, upload a file, and verify it via an IPFS cluster.
-
Set Up IPFS Gateway:
-
Install Docker on your machine if it's not already installed.
-
Pull the IPFS Docker image and run an IPFS container:
docker pull ipfs/go-ipfs docker run -d --name ipfs_host -v /path/to/folder/with/file:/export -v ipfs_data:/data/ipfs -p 8080:8080 -p 4001:4001 -p 5001:5001 ipfs/go-ipfs
-
Verify the IPFS container is running:
docker ps
-
-
Upload a File to IPFS:
-
Open a browser and access the IPFS web UI:
http://127.0.0.1:5001/webui/
-
Explore the web UI and wait for 5 minutes to sync up with the network.
-
Upload any file via the web UI.
-
Use the obtained hash to access the file via any public IPFS gateway. Here are a few options:
-
Append your file hash to any of the gateway URLs to verify your file is accessible. Note that it may fail due to network overload, so don't worry if you can't reach it.
-
-
Documentation:
- Create a
submission2.md
file. - Share information about connected peers and bandwidth in your report.
- Provide the hash and the URLs used to verify the file on the IPFS gateways.
- Create a
Objective: Set up a project on the Fleek service and share the IPFS link.
-
Research:
- Understand what IPFS is and its purpose.
- Explore Fleek's features.
-
Set Up:
- Sign up for a Fleek account if you haven't already.
- Use your fork of the Labs repository as your project source. Optionally, set up your own website (notify us in advance).
- Configure the project settings on Fleek.
- Deploy the Labs repository to Fleek, ensuring it is uploaded to IPFS.
-
Documentation:
- Share the IPFS link and domain of the deployed project in the
submission2.md
file.
- Share the IPFS link and domain of the deployed project in the
- Use proper Markdown formatting for documentation files.
- Organize files with appropriate naming conventions.
- Create a Pull Request to the main branch of the repository with your completed lab assignment.
Note: Actively explore and document your findings to gain hands-on experience with IPFS and Fleek.