0 - Ensure that you have installed (docker, git, wget). Check that ports 3000, 1633, 1634, 1635 are available.
1 - One-liner for installing FairDrive and FairStack
wget https://gist.github.com/IgorShadurin/ed828b21e5904b3ad65b69e22e117e17/raw/36ac2396c7ea371559202df35108ec4b74a3e9d4/docker-compose.yml && docker-compose up
2 - Open http://localhost:3000
in your browser
Wait message about funding like that "bee-1_1 | time="2021-07-10T18:51:54Z" level=warning msg="get your Goerli ETH and Goerli BZZ now via the bzzaar at https://bzz.ethswarm.org/?transaction=buy&amount=10&slippage=30&receiver=0xab0a2e21e53889481b2af53950baa0f530d58c55". Wallet in this example is 0xab0a2e21e53889481b2af53950baa0f530d58c55.
Copy wallet from YOUR logs.
Open official SWARM faucet https://discord.com/channels/799027393297514537/841664915218628619 and fund your wallet with 10 gBzz + 0.5 gEth from https://faucet.goerli.mudit.blog/
If Docker with bee + fairos closed before you fund, please run "docker compose up" again.
Wait until bee will deploy cheqbook and this message appears "fairos_1 | time="2021-07-10T19:30:11Z" level=info msg="fairOS-dfs API server listening on port: 9090""
Open http://localhost:9090 in your browser and you can see few lines with information about fairOS. These lines will appear only after chequbook deployment.
Dockerfile-fairdrive is used for deployment fairdrive to Docker Hub.
Before deployment, clone fairdrive repo, install deps with yarn, do some actions to prepare for build (create .env for example), build it.
Put Dockerfile-fairdrive
as Dockerfile
to /app
folder
To deploy project for multiplatforms run it:
docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag fairdatasociety/fairdrive .