These are chat archives for azukiapp/azk

9th
Nov 2015
Patrik Patie Gmitter
@patie
Nov 09 2015 21:39
hi
i have a problem with basic config
systems({

  'app': {

    image: { 'docker': "azukiapp/node" },
    workdir: "/azk/#{manifest.dir}",
    shell: '/bin/bash',
    mounts: {
      '/azk/#{manifest.dir}': path('.'),
    },
    http: {
      domains: [ "#{system.name}.#{azk.default_domain}" ],
    },
    wait: {'retry': 20, 'timeout': 1000},
     ports: {
      http: '8000'
    },
    envs: {
      NODE_ENV: 'dev',
      NODE_PORT: '8000'
    },
  }

});
and response is:
azk: ↑ starting `app` system, 1 new instances...
azk: ✓ checking `azukiapp/node:latest` image...
azk: ◴ waiting for `app` system to start, trying connection to port http/tcp...
azk: Run system `app` return: (0), for command: node:
azk: [timeout] `azk` has timed out on `app` system.
azk: [timeout] Failure to reach port `32776` from `http://app.dev.azk.io` after 20000 milliseconds.
azk: [timeout] Make sure the start command binds `port` to the `0.0.0.0` interface, not only to the `localhost` interface.
azk: [timeout] You might want to edit your `Azkfile.js` in order to increase the maximum timeout.
any idea where can be problem please?
Patrik Patie Gmitter
@patie
Nov 09 2015 21:57
OSX, azk 0.16.1, imho the same problem as azukiapp/azk#292
Felipe Arenales Santos
@fearenales
Nov 09 2015 22:02
hi @patie ! Looks like your Azkfile is missing the command property
Patrik Patie Gmitter
@patie
Nov 09 2015 22:05
yep, but when i add provision: [ 'npm install' ], and command: 'npm start' i have another problem
azk: Run system `app` return: (1), for command: /bin/bash -c npm start:
azk:  .app [log] >  npm ERR! Linux 3.16.0-4-amd64
azk:  .app [log] >  npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
azk:  .app [log] >  npm ERR! node v4.1.2
azk:  .app [log] >  npm ERR! npm  v3.3.6
azk:  .app [log] >  
azk:  .app [log] >  npm ERR! missing script: start
azk:  .app [log] >  npm ERR! 
azk:  .app [log] >  npm ERR! If you need help, you may report this error at:
azk:  .app [log] >  npm ERR!     <https://github.com/npm/npm/issues>
azk:  .app [log] >  
azk:  .app [log] >  npm ERR! Please include the following file with any support request:
azk:  .app [log] >  npm ERR!     /azk/test/npm-debug.log
probably i dont understand someting :]
Felipe Arenales Santos
@fearenales
Nov 09 2015 22:06
hmm.. may you send me your package.json file?
Patrik Patie Gmitter
@patie
Nov 09 2015 22:09
@fearenales PM
Patrik Patie Gmitter
@patie
Nov 09 2015 22:22
thank you @fearenales
Felipe Arenales Santos
@fearenales
Nov 09 2015 22:25
you're welcome @patie!
Danni Friedland
@BlueHotDog
Nov 09 2015 23:21
hey guys, a thing i'll love to see in AZK
a way to define tasks
like, i've some shell commands i run very frequently
inside few containers
currently it's very cumbersome todo
i wish i've had an easy way to define a command inside a container, and an alias
so that i can do 'azk exec command_name [args]'