Image of Docker Buddy is available on DockerHub
docker run --name dockerbuddy --env-file .env -p 8080:8080 -d kraleppa/dockerbuddy:v1.1.0
- Docker (duh)
You can run application without docker with jar file
java -jar dockerbuddy.jar
- java 11
Since Docker Buddy requires InflxuDB to work properly, we prepared docker-compose with example configuration Link. Docker Buddy will be available on port 8080
docker-compose -f docker-compose-local.yml up
Webapp may throw an exception associated with connection to influxdb - in this case you should run above command again (sometimes it doesn't work properly we are working on it)
We are using some environment variables - mostly for connection with influx
INFLUXDB_URL
- influx URLINFLUXDB_USERNAME
- influx usernameINFLUXDB_PASSWORD
- influx passwordINFLUXDB_ORGANIZATION
- influx organizationINFLUXDB_ADMIN_TOKEN
- influx admin tokenINFLUXDB_BUCKET
- bucket for storing metrics and alerts
You can run Docker Buddy locally using docker-compose
- Docker
- Yarn
- Generate
.env
file usingdev-env-generator.sh
. It creates random password and admin token for influx cd frontned/
yarn install
cd ..
docker-compose up
- Coffee break ☕
InfluxDB should be available on port 8086
Backend should be available on port 8080
Frontend should be available on port 3000
You can login to influx using generated credentials from .env
file
For realeasing we are using bash script build.sh
. You need to provide version as a first argument, for example:
./build.sh 1.0.0
- Apache Maven 3.8.3
- Yarn 1.22.10
- Docker
Bash script is creating a jar file dockerbuddy-verison
which is containing both backend and frontend. It also creates a docker image dockerbuddy
.