This repository has been archived by the owner on Jul 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #375 from fetchai/develop
Develop
- Loading branch information
Showing
116 changed files
with
4,456 additions
and
6,273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,6 +129,7 @@ tac/gui/.visdom_env/ | |
|
||
sandbox/TAC | ||
sandbox/data | ||
simulation/v1/data/ | ||
|
||
*.pem | ||
!tests/data/priv.pem` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../docker-images/scripts |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.