Giter Club home page Giter Club logo

docker-janky's Introduction

Dockerized janky

Example configuration

We need mysql or postgresql as a persistence layer, active jenkins & hubot instances

# expose socket at /run/mysqld/mysql.sock
# create users
docker run \
  --name mysql \
  -v /path/to/mysql/data:/var/lib/mysql \
  -v /run/mysqld:/run/mysqld \
  --hostname mysqlhost \
  -e 'DB_USER=janky' \
  -e 'DB_PASS=janky_pass' \
  -e 'DB_NAME=janky_production' \
  sameersbn/mysql

docker run \
  --link db:db \
  --name janky \
  -v /path/to/config:/opt/config \
  -v /run/mysqld:/run/mysqld \
  -e 'RACK_ENV=production' \
  -e 'DATABASE_URL=mysql2://janky:janky_pass@mysqlhost/janky_production' \
  -e 'JANKY_BASE_URL=http://janky.example.com/' \
  -e 'JANKY_BUILDER_DEFAULT=http://jenkins.example.com/' \
  -e 'JANKY_CONFIG_DIR=/opt/config' \
  -e 'JANKY_HUBOT_USER=janky' \
  -e 'JANKY_HUBOT_PASSWORD=janky_password' \
  -e 'JANKY_GITHUB_USER=github' \
  -e 'JANKY_GITHUB_PASSWORD=github_token' \
  -e 'JANKY_GITHUB_HOOK_SECRET=supersecret' \
  -e 'JANKY_CHAT_DEFAULT_ROOM=control-room' \
  -e 'JANKY_DATABASE_SOCKET=/run/mysql.sock' \
  -e 'JANKY_GITHUB_STATUS_TOKEN=....' \
  -e 'JANKY_CHAT=hubot' \
  -e 'JANKY_CHAT_HUBOT_URL=https://hubot.example.com/' \
  -e 'JANKY_CHAT_HUBOT_ROOMS=control-room' \
  -e 'JANKY_SESSION_SECRET=$(pwgen)' \
  -e 'JANKY_AUTH_CLIENT_ID=...' \
  -e 'JANKY_AUTH_CLIENT_SECRET=...' \
  -e 'JANKY_AUTH_ORGANIZATION=...' \
  -e 'JANKY_AUTH_TEAM_ID=git' \
  makeomatic/janky

docker-janky's People

Contributors

avvs avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.