🐋 Dockerfiles by nacyot
CoffeeScript Nginx ApacheConf Shell JavaScript Python
Permalink
Failed to load latest commit information.
carbon-base
carbon-cache
carbon-relay
grafana
graphite-api-korean-hack
graphite-api
graphite-web
huboard
slack
whisper
.gitignore
Dockerfile
README.md

README.md

hubot-simple-logger Dockerfile

Dockerfile for hubot-simple-logger.

The image based on this Dockerfile has hubot and hubot-simple-logger.

Running Image with slack adapter

Setup Slack Hubot Integration

Slack

First, you need to activate hubot integraiton on slack, and set the address of your hubot server.

Run Image

# Run redis image
$ sudo docker run -d --name redis -p 172.17.42.1:6379:6379 dockerfile/redis

# Run volume container for data prsistence
$ sudo docker run --name logger-storage -v /data busybox

# Run main image
$ sudo docker run -d \
    -p 8080:8080 \
    -p 8086:8086 \
    -e HUBOT_SLACK_TOKEN=<SLACK_TOKEN> \
    -e HUBOT_SLACK_TEAM=<SLACK_TEAM_NAME> \
    -e HUBOT_SLACK_BOTNAME=<BOTNAME_ON_SLACK> \
    --volumes-from logger-storage \
    --name hubot-simple-logger \
    nacyot/hubot-simple-logger

You can get these values from Slack integration page(like https://<TEAM_NAME>.slack.com/services/new).

Environment Variables

You can overwrite below environment variables. Right side is default value.

REDISTOGO_URL=redis://172.17.42.1:6379/hubot # Redis Server URL
PORT=8080                                    # Hubot Port
HUBOT_LOGS_PORT=8086                         # Logger web server Port
HUBOT_LOGS_FOLDER=/data/logs                 # Directory for Log Data
TZ=Asia/Seoul                                # Timezone

Backup

$ sudo docker run --volumes-from logger-storage:ro \
    -v $(pwd):/backup \
    ubuntu:14.04 \
    tar cvf /backup/data.tar /data
$ ls
data.tar

Screenshot

Slack room.

Slack chat room

This is logger web page(default port 8086).

hubot simple logger web page