hico-horiuchi / gcp-nomad-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gcp-nomad-demo

References

How to use

Install terraform and nomad

$ brew install terraform nomad

Apply terraform

$ cp variables.tf.sample variables.tf
$ vi variables.tf
$ terraform init
$ terraform apply

Apply ansible

$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ rehash
$ ansible-playbook -i hosts site.yml

Submit nomad jobs

$ nomad run traefik.nomad
$ nomad run webapp.nomad
$ nomad run ruby.nomad
$ nomad job dispatch -meta "slack_incoming_webhook_url=https://hooks.slack.com/services/ABCDEFGHI/JKLMNOPQR/abcdefghijklmnopqrstuvwx" ruby script.rb

About


Languages

Language:HCL 83.7%Language:Smarty 9.6%Language:Ruby 6.7%