A automation script to run a main estuary node, frontend and estuary shuttles.
Work in Progress
- docker
- docker hub desktop (optional)
- Create a local dns mapping in
/etc/hosts
127.0.0.1 estuary-main
For users using linux shell, you can also run the following script to add the host (you'll be prompt with your machine/local password).
sudo -- sh -c -e "echo '\n127.0.0.1 estuary-main' >> /etc/hosts";
- Start up the stack with
docker-compose
docker-compose up
- Capture the AuthToken (Estuary Token) from the output:
...
estuary-shuttle_1 | Hostname: estuary-main:3004
estuary-shuttle_1 | Shuttle Token: SECRETf5487ef1-0393-42df-a3bb-516416af8a0bSECRET
estuary-shuttle_1 | Shuttle Handle: SHUTTLEf80a12ca-502d-4cdc-a282-830dbe0c6acbHANDLE
estuary-shuttle_1 | Estuary Token: ESTf469c66f-9e15-4a67-bba9-a97bedfa0352ARY
...
- Navigate to
http://estuary-main:4444
and login with the AuthToken captured in the previous step.
cd estuary-main
./run-main.sh
Running the command above will launch a docker image with the estuary node and return an Auth Token
cd estuary-shuttle
./run-shuttles.sh --num-of-shuttles 3 --estuary-api-key <Auth Token from run-main.sh> --estuary-host estuary-main:3004
# sample: ./run-shuttles.sh --num-of-shuttles 3 --estuary-api-key ESTe2813e65-f177-4192-b601-1e55ca4e930bARY --estuary-host estuary-main:3004
The command above will launch three containers with different handles and tokens, which will all connect to the estuary-main via --estuary-host
flag
cd estuary-www
./run-www.sh --estuary-api-key <Auth Token from run-main.sh> --estuary-host estuary-main:3004
# sample: ./run-www.sh --estuary-api-key EST6de30581-92bf-4e2d-a218-5233a456baa5ARY --estuary-host estuary-main:3004
The frontend will be connected to the estuary-main.
## estuary-main:3004 or localhost:3004
curl -X POST http://localhost:3004/pinning/pins -d '{ "name": "1882818-2021-nature-videos.zip", "cid": "bafybeidj7c2e3daplalccukbps4eze7473gyshspev76xi4sjfmfkuaofe" }' -H "Content-Type: application/json" -H "Authorization: Bearer <Auth Token>"
## estuary-main:3004 or localhost:3004
curl -X GET http://localhost:3004/pinning/pins -H "Content-Type: application/json" -H "Authorization: Bearer <Auth Token>"
Go to localhost:4444 and login with your API key.