-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Abraham Dauhajre
committed
Sep 14, 2019
1 parent
044803c
commit 9304774
Showing
103 changed files
with
13,249 additions
and
10,421 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
## Content | ||
|
||
This directory contains usage examples for the Formant Agent with Docker. | ||
|
||
## Setup | ||
|
||
1. Make sure you have [Docker](https://docs.docker.com/install/) and [Docker Compose](https://docs.docker.com/compose/install/) installed. | ||
|
||
## Usage | ||
|
||
1. Go to the [Create Agent](https://app.formant.io/create-agent) page and enter a agent name and tags. | ||
2. On the Installer page, copy and paste your `FORMANT_PROVISIONING_TOKEN` from the install step into the [formant.env](formant.env) file. | ||
3. Run `docker-compose up` to start the Formant Agent container. | ||
|
||
## Notes | ||
|
||
### Image Repository | ||
|
||
The full list of available images can be found on [Docker Hub](https://hub.docker.com/r/formant/agent/tags). | ||
|
||
Our container images have support for AMD64, ARM64, and ARM. We provide both ROS Melodic and ROS Kinetic variants as well. | ||
|
||
### ROS | ||
|
||
We have included a ROS-based [docker-compose](ros/docker-compose.yaml) as well. This will start up two containers, one running a ROS Master and our Agent. You should note the [formant.env](ros/formant.env) file contains the `ROS_MASTER_URI` pointed to the container over the `formant` docker network. | ||
|
||
### Container State | ||
|
||
The agent uses a docker volume to store state and persistent data. If the volume is deleted you will need to reprovision the agent. | ||
|
||
The provisioning token you use to initialize the agent is a one-time use token. You can remove it from the [formant.env](formant.env) file after the credentialing process is done. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
FORMANT_EMAIL=<replace with your admin credentials> | ||
FORMANT_PASSWORD=<replace with your admin credentials> | ||
FORMANT_TAGS=name:formant001,location:sfo,group:production | ||
FORMANT_PROVISIONING_TOKEN=<replace with your provisioning token> |
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,29 @@ | ||
version: "2.2" | ||
|
||
networks: | ||
formant: | ||
driver: bridge | ||
|
||
volumes: | ||
formant: | ||
|
||
services: | ||
ros-master: | ||
image: ros:melodic-ros-core | ||
command: stdbuf -o L roscore | ||
networks: | ||
- formant | ||
restart: always | ||
formant-agent: | ||
container_name: ros-formant-agent | ||
image: formant/agent:ros-melodic | ||
restart: always | ||
env_file: | ||
- formant.env | ||
ports: | ||
- "5501:5501" | ||
- "5502:5502" | ||
volumes: | ||
- "formant:/root/.formant" | ||
networks: | ||
- formant |
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,2 @@ | ||
FORMANT_PROVISIONING_TOKEN=<replace with your provisioning token> | ||
ROS_MASTER_URI=http://ros-master:11311 |
This file was deleted.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.