These are chat archives for azukiapp/azk

10th
Feb 2016
Bartek Kus
@Bartekus
Feb 10 2016 23:55

Hey guys, I’m trying to deploy the stack for a first test, here is my Azkfile.js:

systems({
deploy: {
    image: {"docker": "azukiapp/deploy"},
    mounts: {
      "/azk/deploy/src":     path("."),
      "/azk/deploy/.ssh":    path("#{env.HOME}/.ssh"),
      "/azk/deploy/.config": persistent("deploy-config"),
    },
    scalable: {"default": 0, "limit": 0},
    envs: {
      REMOTE_HOST:        "76.10.221.33",
      // REMOTE_ROOT_PASS:   "`SERVER_ROOT_PASS`",
    },
  },
  r3stack: {
      docker_extra: {
      User: 'root',
        HostConfig: {
          "PortBindings": {
            "3000/tcp": [{ "HostPort": "3000" }]
          },
        },
     },
    depends: ["rethinkdb"],
    // More images:  http://images.azk.io
    image: {"docker": "azukiapp/node"},
    // Steps to execute before running instances
    provision: [
      "npm install",
    ],
    workdir: "/azk/#{manifest.dir}",
    shell: "/bin/bash",
    command: ["npm", "start"],
    wait: {"retry": 2, "timeout": 20000},
    mounts: {
      '/azk/#{manifest.dir}': sync("."),
      '/azk/#{manifest.dir}/node_modules': persistent("./node_modules"),
    },
    scalable: {"default": 1},
    http: {
      domains: [
      "#{system.name}.#{azk.default_domain}",
      "#{env.HOST_DOMAIN}",
      "#{env.HOST_IP}",
      ]
    },
    ports: {
      // exports global variables
      http: "3000/tcp",
    },
    envs: {
      // Make sure that the PORT value is the same as the one
      // in ports/http below, and that it's also the same
      // if you're setting it in a .env file
      NODE_ENV: "production",
      PORT: "3000",
    },
  },
  rethinkdb: {
    docker_extra: {
      HostConfig: {
        "PortBindings": {
          "8080/tcp": [{ "HostPort": "8080" }],
          "28015/tcp": [{ "HostPort": "28015" }],
          "29015/tcp": [{ "HostPort": "29015" }]
        },
      },
    },
    image: { docker: "rethinkdb" },
    shell: '/bin/bash',
    scalable: false,
    command: "rethinkdb --bind all --direct-io --cache-size auto --server-name rethinkdb --directory ./rethinkdb --canonical-address rethinkdb.dev.azk.io",
    wait: {"retry": 2, "timeout": 5000},
    mounts: {
      '/rethinkdb': persistent('rethinkdb-#{manifest.dir}'),
    },
    ports: {
      http: "8080",
      data: "28015",
      cluster: "29015",
    },
    http: {
      domains: [ '#{system.name}.#{azk.default_domain}' ],
    },
    export_envs: {
      "DATABASE_HOST": '#{net.host}',
      "DATABASE_PORT": '#{net.port.data}',
      "DATABASE_URL": 'rethinkdb://#{net.host}:#{net.port.data}',
    }
}
});

I’m getting this error:

PLAY ***************************************************************************

TASK [setup] *******************************************************************
Enter passphrase for key '/root/.ssh/id_rsa':
fatal: [default]: FAILED! => {"failed": true, "msg": "ERROR! failed to resolve remote temporary directory from ansible-tmp-1455147079.01-254427875609483: `mkdir -p \"$( echo $HOME/.ansible/tmp/ansible-tmp-1455147079.01-254427875609483 )\" && echo \"$( echo $HOME/.ansible/tmp/ansible-tmp-1455147079.01-254427875609483 )\"` returned empty string"}

NO MORE HOSTS LEFT *************************************************************

PLAY RECAP *********************************************************************
default                    : ok=0    changed=0    unreachable=0    failed=1

Any ideas as to where I’m going wrong?