Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Junio Vitorino
    @juniovitorino
    Well, I stop by now, I've some tickets to close. Later I back to it.
    I back to my old workflow for now.
    Gullit Miranda
    @gullitmiranda
    Nice. Let's see what's going on after then.
    Jean Uchôa
    @roadhouse
    love all <3 :*
    Gullit Miranda
    @gullitmiranda
    <3 <3 <3
    Luis Baroni
    @lcsbaroni
    I created 2 projects using Azk, I used mysql and the host is db.dev.azk.io in both. But, when I created one more project, I can't connect to mysql using the same host. Azk starts properly, but I can't connect to mysql, if I change mysql host, for example testedb.dev.azk.io, mysql connect normally. You know anything about this problem?
    Gullit Miranda
    @gullitmiranda

    @lcsbaroni,
    In azk, each project (Azkfile.js) has a single scope, so they do not communicate. We recommend that each project has its own database.

    How do you set a url and are connecting with her, I believe the problem is port, since a project can not receive export_envs another.

    Wesley Ribeiro
    @WesleyRibs
    @gullitmiranda how to add this command: "try_files $uri $uri/ /index.php?$query_string;" on my nginx.conf ? I am using a image of php-fpm.
    Gullit Miranda
    @gullitmiranda
    @WesleyRibs you can make a mount overriding the current /etc/nginx/sites-available/default inside the container.
    eg:
    mounts: {
      // ...
      '/etc/nginx/sites-available/default': path('./nginx.conf'),
    }
    Wesley Ribeiro
    @WesleyRibs
    @gullitmiranda thks handsome !!!! you are the guy \o/
    Gullit Miranda
    @gullitmiranda
    :blush:
    @WesleyRibs , I believe this change you will make, may become standard. If you can do as a PR correcting the files:
    https://github.com/azukiapp/docker-php-fpm/blob/master/5.5/nginx-default.conf
    https://github.com/azukiapp/docker-php-fpm/blob/master/5.6/nginx-default.conf
    Slobodan Mišković
    @slobo
    What is the best way to cleanup persistent folders and maybe even docker images after i'm done with particular project?
    Gullit Miranda
    @gullitmiranda
    @slobo, we noted one issue that aims to add functionality to manipulate persistent, such as clean, get (download), list, etc.
    To clean the persistent, for now the best alternative is to use the azk shell [system].
    Slobodan Mišković
    @slobo
    ah, yes good trick.
    Gullit Miranda
    @gullitmiranda
    To remove images have some cheat sheet. I will translate and put in a gist for you.
    Slobodan Mišković
    @slobo
    awesome, thanks
    Wesley Ribeiro
    @WesleyRibs
    @gullitmiranda Snake, I did do what you say, but the following error occurred: azk: Error: HTTP code is 500 which indicates error: server error - file exists at /mnt/sda1/aufs/mnt/71e10ead98bdf61fb24be7374fa5461049eb2783ee78303e1aebbed8042d8db4/etc/nginx/sites-available/default, can't create volume there
    Gullit Miranda
    @gullitmiranda

    try switching to:

    mounts: {
      // ...
      '/etc/nginx/sites-enabled/default': path('./nginx.conf'),
    }

    or:

    mounts: {
      // ...
      '/etc/nginx/sites-enabled/my-nginx': path('./nginx.conf'),
    }
    Wesley Ribeiro
    @WesleyRibs
    Captura de Tela 2015-06-11 às 16.53.57.png
    Gullit Miranda
    @gullitmiranda
    you used which of the two options?
    Wesley Ribeiro
    @WesleyRibs
    @gullitmiranda '/etc/nginx/sites-enabled/my-nginx': path('./nginx.conf'), the first option given the same error
    Gullit Miranda
    @gullitmiranda
    if nginx file is correct I see no reason not to be working. For this attempt to lift it from the shell with the following commands:
    $ azk shell
    $ /run.sh &
    and test output:
    curl localhost
    Wesley Ribeiro
    @WesleyRibs
    @gullitmiranda When run the command /run.sh & showed me this: nginx: [emerg] a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/my-nginx:2
    [11-Jun-2015 20:19:01] ERROR: An another FPM instance seems to already listen on /var/run/php5-fpm.sock
    [11-Jun-2015 20:19:01] ERROR: FPM initialization failed
    Gullit Miranda
    @gullitmiranda
    then the second option will not work because of default. You can also test with the first?
    Wesley Ribeiro
    @WesleyRibs
    With the first option: azk: Error: HTTP code is 500 which indicates error: server error - file exists at /mnt/sda1/aufs/mnt/755725432f2e2d7925e3134a75f2d4fcf56a85907172dd4b81d4fc93e6e73ba0/etc/nginx/sites-available/default, can't create volume there
    Gullit Miranda
    @gullitmiranda
    mounts: {
      // ...
      '/etc/nginx/sites-enabled/default': path('./nginx.conf'),
    }
    to the above solution I changed the destination folder.I said to overwrite the file that is in site-enabled instead ofsite-available
    I will do more detailed tests here
    Wesley Ribeiro
    @WesleyRibs
    Ok
    I put this '/etc/nginx/sites-enabled/default': path('./nginx.conf'), but the error is the same. "azk: Error: HTTP code is 500 which indicates error: server error - file exists at /mnt/sda1/aufs/mnt/755725432f2e2d7925e3134a75f2d4fcf56a85907172dd4b81d4fc93e6e73ba0/etc/nginx/sites-available/default, can't create volume there"
    Gullit Miranda
    @gullitmiranda

    by my test, aufs the docker does not overwrite files, only folders. therefore the solution that worked for me was:

    $ mkdir nginx
    $ mv nginx.conf nginx/default.conf

    and switching mounts to:

    '/etc/nginx/sites-enabled': path('./nginx')
    Wesley Ribeiro
    @WesleyRibs
    @gullitmiranda YOU ARE THE GUY \o/ SNAKE --> <--- TKS !!!!!!!!! it worked perfectly !!!!!
    Gullit Miranda
    @gullitmiranda
    :smile: your welcome :joy: :joy: :joy:
    Slobodan Mišković
    @slobo
    is it a correct assesment that every user on the system needs their own AZK_BALANCER_PORT ? (say I have 4 developers all on the same shared server and they all want to run azk )
    Gullit Miranda
    @gullitmiranda
    @slobo Everyone wants to run azk on the same machine?
    Slobodan Mišković
    @slobo
    that was just an example - in practice I have a CI server and my own user both trying to run azk on same machine, so just wondering if above was correct. I'll probably end up letting only ci server run it, or maybe both should sudo to a dedicated user
    Gullit Miranda
    @gullitmiranda
    As you want to test your applications and not just the azk itself, can raise a single agent.
    Slobodan Mišković
    @slobo
    from which account should it be done?
    Gullit Miranda
    @gullitmiranda
    you run the tests in separate accounts?
    Slobodan Mišković
    @slobo
    say i wanted azk start mysystem from both accounts, yes, how would I run just one azk agent? (i'm more thinking about internal arch of azk for curiosity, i'm already able to do this by setting AZK_BALANCER_PORT to different values for both accounts, just wondering about validity of that approach)
    Gullit Miranda
    @gullitmiranda

    :joy: :joy:
    @fearenales raised this point this week, he is working on azk CI.
    The AZK has a concept of namespace, so when you change the namespace all separates, but he said he had trouble just because of conflicting ports.

    I believe that in this regard @fearenales is better suited to answer you.

    Felipe Arenales Santos
    @fearenales
    hey! @slobo, are you using Mac, right?
    Slobodan Mišković
    @slobo
    on my desktop, yes, the above question was about Linux actually