These are chat archives for azukiapp/azk

25th
Jan 2016
Gullit Miranda
@gullitmiranda
Jan 25 2016 14:37
good
the environment variables that are in export_envs will be added to the system that has thedepends.
Djamy
@Djamy
Jan 25 2016 15:46
Okay thank you @gullitmiranda . I'm not at home to test this yet but could you tell me how the var #{net.host} would be translated in the mysql export_envs ?
Gullit Miranda
@gullitmiranda
Jan 25 2016 15:56
#{net.host} -> dev.azk.io
#{net.port} -> 32... # ex: 32768

another example:

// https://github.com/azukiapp/azkdemo/blob/final/Azkfile.js#L35-L37
    export_envs: {
      "DATABASE_URL": "redis://#{net.host}:#{net.port[6379]}"
    }

show $DATABASE_URL value:

$ azk shell azkdemo -- env | grep DATABASE
DATABASE_URL=redis://dev.azk.io:32768
Djamy
@Djamy
Jan 25 2016 16:43
Understood, thanks for those details and sorry to made you repeat this again.. <3
Gullit Miranda
@gullitmiranda
Jan 25 2016 18:18
no problem. if you have questions, ask! :D
Djamy
@Djamy
Jan 25 2016 18:19
I'm on it right now but I'm still in trouble.. =/
Gullit Miranda
@gullitmiranda
Jan 25 2016 18:21
what's the problem?
Djamy
@Djamy
Jan 25 2016 18:21
It appears that mysql server isn't running or something
The client returns Can't connect to MySQL server on 'dev.azk.io' (111)
And I can't even connect to mysql from the container itself
Is something wrong with the docker image or it's me screwing up
Gullit Miranda
@gullitmiranda
Jan 25 2016 18:28
I think it is worth mentioning one thing, azk shell is a container context, running container.
azk shell is almost as an alias for docker run (not docker exec)
how you are trying to connect to mysql?
Djamy
@Djamy
Jan 25 2016 18:30
Okay, I thought it was more like a docker exec than a docker docker run..
I try to simply connect with adminer.php
Gullit Miranda
@gullitmiranda
Jan 25 2016 18:33
this confusion is common. Also because when azk shell was even created there is the docker exec, but we have plans to implement a way to connect in a container running.
I can see your adminer.php?
Djamy
@Djamy
Jan 25 2016 18:34
Good to know, cool!
And sure, you can get it here https://www.adminer.org/
but I happens also with Symfony2 console when I try to create a database
Gullit Miranda
@gullitmiranda
Jan 25 2016 18:38
as you are trying to connect?
which the sequence of commands that you are using?
Djamy
@Djamy
Jan 25 2016 18:42
I'm not using particular commands, I just used the SF2 console command and this adminer panel.. Tell me if I can make other tests to see if something is wrong with those two previous methods
You may need to see my js file ?
Gullit Miranda
@gullitmiranda
Jan 25 2016 18:45
try this instructions:
:point_up: 23 de Novembro de 2015 09:18
Djamy
@Djamy
Jan 25 2016 18:50
blob
(I'm doing next steps)
Gullit Miranda
@gullitmiranda
Jan 25 2016 18:52
$ azk shell mysql
# mysql -u${MYSQL_USER} -p${MYSQL_PASSWORD} -hdev.azk.io -P 32770 -B ${MYSQL_DATABASE} -e “status”
Djamy
@Djamy
Jan 25 2016 18:54
ERROR 1130 (HY000): Host '172.17.42.1' is not allowed to connect to this MySQL server
Gullit Miranda
@gullitmiranda
Jan 25 2016 18:55
try:
$ azk shell mysql
#  dig dev.azk.io
Djamy
@Djamy
Jan 25 2016 18:55
dig ?
Gullit Miranda
@gullitmiranda
Jan 25 2016 18:57
yep
Djamy
@Djamy
Jan 25 2016 18:59
command not found
Gullit Miranda
@gullitmiranda
Jan 25 2016 18:59
ok
Djamy
@Djamy
Jan 25 2016 18:59
I still have a lot to learn...
Gullit Miranda
@gullitmiranda
Jan 25 2016 18:59
then run:
$ azk shell --image=azukiapp/dig -- dig @dev.azk.io
Djamy
@Djamy
Jan 25 2016 19:00
/bin/sh: dig: not found
Gullit Miranda
@gullitmiranda
Jan 25 2016 19:01
:'(
one momment please
Djamy
@Djamy
Jan 25 2016 19:01
Sure
(I need to go, my wife is waiting, i'll be back later. Thanks a lot for your time <3)
Gullit Miranda
@gullitmiranda
Jan 25 2016 19:04
OK. I will correct this image (azukiapp/dig) meantime.
Slobodan Mišković
@slobo
Jan 25 2016 20:44
Hey folks, I while back I mentioned xhyve as something to consider instead of VirtualBox on OSX. There is now a utility that runs docker in xhyvea and exposes it via /var/run/docker.sock, maybe it you see it as something useful: https://github.com/nlf/dlite
I'm not sure how/if it handles mounting of filesystem, may need to be done via nfs or something...
Gullit Miranda
@gullitmiranda
Jan 25 2016 20:50
hi @slobo. This tool is the list of things to test. He really does not have anything to solve the problems we have in relation to file share. But it has part of the features that we need to use the xhyve in azk.
you tested it?
Slobodan Mišković
@slobo
Jan 25 2016 20:52
no, just saw it and thought i'd mention it
btw, it would probably be good for azk to get mentioined on hacker news whenever docker is mentioned
esp when people start talking about pain of running docker on osx, and they resort to vagrant etc, i just keep thinking - switch to azk, guy!
(but i'm too lazy to create account and spam them :)
Gullit Miranda
@gullitmiranda
Jan 25 2016 20:54
rsrs
I think we should participate more in hacker news :(
Slobodan Mišković
@slobo
Jan 25 2016 20:55
but yeah, how I wish there was a fast file sharing on OSX, or for linux to not eat my battery too fast on this laptop - can't have it both
Gullit Miranda
@gullitmiranda
Jan 25 2016 21:00
this is a complicated problem. We've theorize and even preparing to create a specific file share for VM.
Djamy
@Djamy
Jan 25 2016 21:37
I'm back ! :)
Slobodan Mišković
@slobo
Jan 25 2016 21:39
@gullitmiranda, you mean you are working on nfs type system, or some fuse based way?
Gullit Miranda
@gullitmiranda
Jan 25 2016 23:41
I'm finishing the update image, @Djamy
@slobo nfs does not solve the azk needs. We want to make a similar file share but with all the features that the nfs not supported.
the problem of most of these file shares is that they are made to network, not for communication between VMs