Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion docs/docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,41 @@

- Go 1.14+ (installation instructions available [here](https://golang.org/dl/]))

### Ubuntu

```bash
# Run the following command if using Ubuntu
sudo apt-get install libgmp-dev swig libboost-all-dev

# Download and install the MCL libraries
cd ~
wget https://github.com/herumi/mcl/archive/v1.05.tar.gz
tar xvf v1.05.tar.gz
cd mcl-1.05
sudo make install
sudo ldconfig
```

### MacOS

```bash
# Run the following command if using OS X
brew install swig boost gmp

# Download and install the MCL libraries
cd ~
wget https://github.com/herumi/mcl/archive/v1.05.tar.gz
tar xvf v1.05.tar.gz
cd mcl-1.05
sudo make install
sudo ldconfig
```

## Building the code

Download the latest released version from github and build the project using the following commands:

git clone https://github.com/fetchai/fetchd.git -b release/v0.2.x && cd fetchd
git clone https://github.com/fetchai/fetchd.git && cd fetchd

Then build the code with the command:

Expand Down
41 changes: 41 additions & 0 deletions docs/docs/docker-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,44 @@
For every Fetchd release a corresponding docker images is released. The full list of images and tags can be found at:

[https://hub.docker.com/r/fetchai/fetchd](https://hub.docker.com/r/fetchai/fetchd)

# Supported Tags & Dockerfiles

Current Versions:

* [0.5.2, 0.5](https://github.com/fetchai/fetchd/blob/v0.5.2/Dockerfile) (used for beaconworld test networks)
* [0.2.7, 0.2](https://github.com/fetchai/fetchd/blob/v0.2.7/Dockerfile) (used for agentworld test networks)

# Quick Reference

* Support documentation available at the [Fetch.ai Documenation](https://docs.fetch.ai/)

* Where to file issues: [https://github.com/fetchai/fetchd/issues](https://github.com/fetchai/fetchd/issues)

* Maintained by: [The Fetch.ai Ledger Team](https://github.com/fetchai/fetchd)

* Supported architectures: amd64

# How to use this image

## Connecting to a test network

Connecting a node to the test network is easy. In its simpliest configuration the docker container can be run with just a couple of environment variables as shown below:

docker run -e MONIKER=<insert node name here> -e NETWORK=<network name> fetchai/fetchd:0.5

However, users will almost certainly want to mount a storage volume into the container so that the node does not need to resync from genesis everytime. This can be done by adding the following volume path:

docker run -e MONIKER=<insert node name here> -e NETWORK=<network name> -v /path/for/data:/root/.fetchd fetchai/fetchd:0.5

For example connecting a node to the beaconworld testnet can be done with the following command:

docker run -e MONIKER=my-first-fetch-node -e NETWORK=beaconworld -v $(pwd)/my-first-fetch-node-data:/root/.fetchd fetchai/fetchd:0.5

# License

View [license information](https://github.com/fetchai/fetchd/blob/master/LICENSE) for the software contained in this image.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.