Docker Compose is required. If building the Docker Image from source, be sure to also clone the sub-module in this repository, as Docker will copy its contents into the Image when building.
- Create a Twitter App
- Create a file
BannoDemo/ops/.env
. Docker Compose will read this file for its environmental variables - Copy this template and the corresponding credentials from your Twitter App into the file
.env
:
TWITTER_CONSUMER_TOKEN_KEY=
TWITTER_CONSUMER_TOKEN_SECRET=
TWITTER_ACCESS_TOKEN_KEY=
TWITTER_ACCESS_TOKEN_SECRET=
- Proceed with either a pre-built Docker Image, or build the image from source
-
Pull the Docker image from Docker Hub: peterbecich/bannodemo or peterbecich/bannodemo-arm64
-
Proceed to start the Compose application
SBT is required.
- Start SBT in
BannoDemo/
- Run
test
in SBT - Run
docker
in SBT to produce the Docker imagepeterbecich/bannodemo:latest
- Exit SBT
- Proceed to start the Compose application
- Change directory to
BannoDemo/ops/
- Run
docker-compose up
to start the demonstration and log to the terminal, ordocker-compose up -d
to start the demonstration and detach - Visit http://localhost/stats
- If detached, run
docker-compose down
to stop the Compose application