Sign inSign up

tomohiro/atig

By tomohiro

•Updated over 8 years ago
Archived

atig.rb : Another Twitter Irc Gateway for Docker

Image
0

4.6K

tomohiro/atig repository overview

⁠CoreOS cluster

⁠Requirements

  • Ruby 2.2
  • Direnv
  • Terraform
⁠Provider tokens
  • Atlas
  • Digital Ocean

⁠Getting Started

⁠Create the .envrc to export environment variables
$ cp .envrc.example .envirc
$ vi .envrc
$ direnv allow
⁠Install dependency tools

Install the Digtal Ocean command-line tool:

$ bundle install --path vendor/bundle
⁠Configuration

Create a user-data.yml:

$ cp user-data.yml.example user-data.yml
⁠Development

Launch development machine:

$ vagrant up

⁠Deploy CoreOS cluster to Digital Ocean

Create cluster:

$ terraform plan   # Check your plan
$ terraform apply

Login to a CoreOS server:

$ bundle exec tugboat core-X -u core -p 2222  # SSH port is 2222 in this example

⁠Configuration CoreOS

⁠Configure user-data.yml or cluster.tf

Edit the user-data.yml:

$ vi user-data.yml

Edit the cluster.tf:

$ vi cluster.tf
⁠Apply to the development

Upload user-data.yml to instances:

$ vagrant provision

Apply changes:

$ vagrant ssh
core@core-X ~$ sudo coreos-cloudinit --from-file /var/lib/coreos-vagrant/vagrantfile-user-data
⁠Apply to the production
$ terraform remote config -backend-config "name=tomohiro/cluster"
$ terraform remote pull
$ terraform plan
$ terraform apply
$ terraform remote push

Tag summary

Content type

Image

Digest

Size

102.5 MB

Last updated

over 8 years ago

docker pull tomohiro/atig