Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #375 from fetchai/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
DavidMinarsch authored Sep 5, 2019
2 parents 1d5036c + c0b358a commit 90a2894
Show file tree
Hide file tree
Showing 116 changed files with 4,456 additions and 6,273 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ tac/gui/.visdom_env/

sandbox/TAC
sandbox/data
simulation/v1/data/

*.pem
!tests/data/priv.pem`
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ Release History
- Improved documentation by adding detailed guides
- Added more tools/features to support the developer (e.g. the launcher app)

0.1.4 (2019-09-05)
-------------------

- Updated to OEF SDK version 0.6.7
- Transition to AEA architecture and extraction of AEA framework.
- Updated to AEA version 0.1.1
17 changes: 10 additions & 7 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,25 @@ tox-pipenv = "*"
pytest-cov = "*"
docker = "*"
flake8-docstrings = "*"
pygments = "*"

[packages]
fetchai-ledger-api = {git = "https://github.com/fetchai/ledger-api-py.git"}
base58 = "*"
cryptography = "*"
flask-restful = "*"
nbsphinx = "*"
numpy = "*"
matplotlib = "*"
oef = {index = "test-pypi",version = "==0.6.7"}
python-dateutil = "*"
visdom = "*"
cryptography = "*"
base58 = "*"
fetchai-ledger-api = {git = "https://github.com/fetchai/ledger-api-py.git",
oef = {version="*", index="test-pypi"}
sphinxcontrib-mermaid = "*"
sphinxcontrib-apidoc = "*"
sphinx = "*"
nbsphinx = "*"
flask-restful = "*"
wtforms = "*"
visdom = "*"
aea = {index = "test-pypi",version = "==0.1.1"}
colorlog = "*"

[requires]
python_version = "3.7"
361 changes: 182 additions & 179 deletions Pipfile.lock

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions docker-agent-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM python:3.7-alpine

RUN apk add --no-cache make git bash
RUN apk add --no-cache gcc musl-dev python3-dev libffi-dev openssl-dev # cryptography: https://cryptography.io/en/latest/installation/#alpine
RUN apk add --update --no-cache py3-numpy py3-scipy py3-pillow py3-zmq

# # https://stackoverflow.com/a/57485724
ENV PYTHONPATH "$PYTHONPATH:/usr/lib/python3.7/site-packages"

RUN pip install --upgrade pip
RUN pip install protobuf colorlog graphviz # other oef dependences
RUN pip install --index-url https://test.pypi.org/simple/ oef==0.6.4 --no-deps
RUN pip install --index-url https://test.pypi.org/simple/ aea==0.1.1 --no-deps

ENTRYPOINT []
45 changes: 45 additions & 0 deletions docker-agent-image/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Docker agent image

Lightweight Docker image for agent execution, based on [`python:3.7-alpine`](https://hub.docker.com/r/jfloff/alpine-python/).

## Build

From the root of the repository:

./docker-agent-image/scripts/docker-build.sh

## Run

./docker-agent-image/scripts/docker-run.sh -- sh

## Example

- run an OEF Node:
```
curl https://raw.githubusercontent.com/fetchai/oef-search-pluto/master/scripts/node_config.json > node_config.json
docker run -it -v $(pwd):/config -v $(pwd):/app/fetch-logs \
-p 20000:20000 -p 10000:10000 \
-p 40000:40000 -p 7500 \
fetchai/oef-search:latest /config/node_config.json
```
- Run a Visdom server:
```
pipenv shell
python -m visdom.server
```
- Run the controller:
```
./docker-agent-image/scripts/docker-run.sh --network host -- sh
python tac/agents/controller/agent.py --nb-agents 2 --dashboard
```
- Run Agent 1:
```
./docker-agent-image/scripts/docker-run.sh --network host -- sh
python templates/v1/basic.py --name agent1
```
- Run Agent 2:
```
./docker-agent-image/scripts/docker-run.sh --network host -- sh
python templates/v1/basic.py --name agent2
```
6 changes: 6 additions & 0 deletions docker-agent-image/docker-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

DOCKER_IMAGE_TAG=docker-agent-image/dev:v0.0.1
DOCKER_BUILD_CONTEXT_DIR=..
DOCKERFILE=./Dockerfile
WORKDIR=/build
1 change: 1 addition & 0 deletions docker-agent-image/scripts
7 changes: 0 additions & 7 deletions docs/reference/api/modules.rst

This file was deleted.

17 changes: 0 additions & 17 deletions docs/reference/api/tac.agents.rst

This file was deleted.

110 changes: 0 additions & 110 deletions docs/reference/api/tac.agents.v1.base.rst

This file was deleted.

30 changes: 0 additions & 30 deletions docs/reference/api/tac.agents.v1.examples.rst

This file was deleted.

38 changes: 0 additions & 38 deletions docs/reference/api/tac.agents.v1.rst

This file was deleted.

46 changes: 0 additions & 46 deletions docs/reference/api/tac.gui.dashboards.rst

This file was deleted.

Loading

0 comments on commit 90a2894

Please sign in to comment.