RabbitMQ using Exec driver using nomad job

441 views
Skip to first unread message

Parveen Kumar

unread,
Apr 5, 2016, 6:20:07 AM4/5/16
to Nomad
Hi team,

how can i deploy RabbitMQ using exec driver. i can deploy rabbitMQ using docker driver but , how it can be done using raw_exec or exec driver. also, i have enabled raw_exec and exec driver falg in config file.


Please suggest and confirm whether it can be done.

Alex Dadgar

unread,
Apr 7, 2016, 5:12:06 PM4/7/16
to Parveen Kumar, Nomad
Should be very doable, just write a job config that downloads the RabbitMQ binary and set your configuration variables etc.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/nomad/issues
IRC: #nomad-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Nomad" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nomad-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nomad-tool/2ed5d0c6-072e-4acf-8f9c-d541cc2262cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Parveen Kumar

unread,
Apr 7, 2016, 11:04:47 PM4/7/16
to Nomad
Hi Alex,

in the job config, i have following an example on hashicorp page
https://www.nomadproject.io/docs/drivers/exec.html
for this , i am confused what is bin here? since exec task run on linux only and in linux application can be installed using command
sudo apt-get install Rabbitmq-server
so, what to write for command attribute. similarly what is artifact block do. can some one explain how to write exec task with explanation.

task "example" {
    driver = "exec"

    config {
      command = "binary.bin"
    }

    artifact {
      source = "https://dl.dropboxusercontent.com/u/1234/binary.bin"
      options {
        checksum = "sha256:abd123445ds4555555555"

ja...@fpcomplete.com

unread,
Apr 10, 2016, 12:53:41 AM4/10/16
to Nomad


On Thursday, April 7, 2016 at 11:04:47 PM UTC-4, Parveen Kumar wrote:
Hi Alex,

in the job config, i have following an example on hashicorp page
https://www.nomadproject.io/docs/drivers/exec.html
for this , i am confused what is bin here? since exec task run on linux only and in linux application can be installed using command
sudo apt-get install Rabbitmq-server
so, what to write for command attribute. similarly what is artifact block do. can some one explain how to write exec task with explanation.


You can read about artifact on https://www.nomadproject.io/docs/jobspec/index.html, but quoting from that doc: "Nomad allows downloading http, https, and S3 artifacts. If these artifacts are archives (zip, tar.gz, bz2, etc.), these will be unarchived before the task is started."

The "bin" here in the example is just some executable that is being downloaded before it is executed by Nomad. You would want to use the URL noted above if you wanted to use the artifact feature this way. You could also install rabbitmq on the host some other way, and then have Nomad exec that.

 
task "example" {
    driver = "exec"

    config {
      command = "binary.bin"
    }

    artifact {
      source = "https://dl.dropboxusercontent.com/u/1234/binary.bin"
      options {
        checksum = "sha256:abd123445ds4555555555"

      }
    }
  }


Good luck!
Reply all
Reply to author
Forward
0 new messages