zhaohansprt / echo-bot

Echo bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wire™

Wire logo

Echo Bot

Build Status

This is demo project that uses: lithium. It creates a Bot that will echo everything you send it.

Documentation

Bot API

Build the project

Run:

mvn -Plinux package

linux, windows and darwin are supported.

Run Bot Service

Run:

java -jar /path/to/echo.jar server /path/to/echo.yaml

Build Docker images

docker build --tag wire/bots.runtime -f Dockerfile.runtime .

docker build --tag wire/echo -f Dockerfile .

Tag images (assuming you have created wire-bot proj with gcloud already)

docker tag wire/bots.runtime:latest eu.gcr.io/wire-bot/bots.runtime

docker tag wire/echo:latest eu.gcr.io/wire-bot/echo

Push images

gcloud docker -- push eu.gcr.io/wire-bot/bots.runtime

gcloud docker -- push eu.gcr.io/wire-bot/echo

Create ConfigMap from files in conf folder

$ kubectl create configmap echo-config --from-file=conf

Create GCE secrets

$ kubectl create secret generic echo-knows --from-literal=token=$AUTH_TOKEN

Create GCE Persistent Disk

$ gcloud compute disks create echo-disk \
>  --zone europe-west1-c \
>  --size 1GB \
>  --type pd-ssd

Deploy to GCE

$ kubectl create -f kubernetes/deployment.yaml

About

Echo bot

License:GNU General Public License v3.0


Languages

Language:Java 63.2%Language:Shell 35.3%Language:Makefile 1.6%