Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Slobodan Mišković
    @slobo
    actually, i have scalable: {"default": 0, limit: 1},
    Gullit Miranda
    @gullitmiranda
    And to answer your question, yes, the next versions of azk you have the concept of contexts where you can set different types of systems, such as compilation and build.
    if the scalable.default is to 0, it should only be started if u specify that you want it: azk start system
    except you have defined this system as a dependency.
    Slobodan Mišković
    @slobo
    it's not a dependency, but still tries to start it
    it does have depends of its own if that matters
    Gullit Miranda
    @gullitmiranda
    You could send me your Azkfile.js?
    Slobodan Mišković
    @slobo
    sure, PMd you
    Gullit Miranda
    @gullitmiranda
    ok
    Slobodan Mišković
    @slobo
    interesting, it did try the start, but this time status code was 0. i think it was returning 3 before because some systems were already running
    Slobodan Mišković
    @slobo
    in this case i would have expected "azk start" to be idempotent, i.e. to just ensure all systems running and return success if so. Or is there another command for that?
    Gullit Miranda
    @gullitmiranda

    I identified what is happening. There is a bug if the limit is not 0, it starts the system.

    If I well understand your question, you like to have a way for the 'AZK start` not stop on error?

    Slobodan Mišković
    @slobo
    ok, i'll try adding limit: 0
    i would like (azk start && azk start) to return status code 0 if all systems are going .
    right now
    azk start ; echo $?; azk start; echo $?
    returns 0, then 3
    since second command finds systems already running and i guess it thinks that's an error.
    Gullit Miranda
    @gullitmiranda
    In this case, the second command will even return an error because the system is already set up.
    Slobodan Mišković
    @slobo
    is there a command that would do what I expect? like azk ensure-all-started that I can put in a script and have it only return error code if something couldn't be started?
    Gullit Miranda
    @gullitmiranda
    yes
    a moment, I will try, because we've done it a few times.
    in this case it is made to see if the agent is launched, more can use the same principle to the start.
    Gullit Miranda
    @gullitmiranda
    you can open the issue on the bug scalable: {default: 0, limit: 1}?
    Slobodan Mišković
    @slobo
    #405, thanks
    Gullit Miranda
    @gullitmiranda
    I thank you.
    Slobodan Mišković
    @slobo
    btw, circleci is complaining on pull requests. it says: Please contact CircleCI support for iOS beta access. Does azk need iOS support?
    Felipe Arenales Santos
    @fearenales
    oh @slobo , don't worry about it. We used to use CircleCi and probably there's a webhook remaining in Github settings... :/ Should be fixed ASAP
    Slobodan Mišković
    @slobo
    what CI system are you switching to?
    Felipe Arenales Santos
    @fearenales
    Jenkins
    not the best one, but we need to run it in a MacOS X box in order to test azk properly
    Slobodan Mišković
    @slobo
    hosting your own?
    Felipe Arenales Santos
    @fearenales
    yes
    Slobodan Mišković
    @slobo
    would travis-ci work, i think they do osx? (these days i try not to manage any systems i don't have to :) )
    hm, i guess they already run inside a VM, so starting vbox would not work
    gitlab multi runner works on OSX, so you could just register one OSX box as a runner and not worry about managing the CI server. But not sure how well GitLab CI integrates with hosting code and issues on GitHub
    Slobodan Mišković
    @slobo
    btw, have you considered OpenSUSE Build Service for libnssresolver packages?
    Also, I tried building it under CentOS and had some issue with scons not finding downloaded files without symlinking build/build to build, but that might have been my env, not sure you ever saw it.
    Felipe Arenales Santos
    @fearenales
    I tried to build it under Arch Linux and got the same issue... We still have to dig it further and work to increase our supported Linux distros
    Gullit Miranda
    @gullitmiranda
    @slobo the tavis-ci does not solve our problem. Because we need to run docker in docker.
    Junio Vitorino
    @juniovitorino
    Hi folks, I'm starting with azk and I'd like use it for WordPress development
    Someone had this experience already?
    Junio Vitorino
    @juniovitorino
    :-1:
    Gullit Miranda
    @gullitmiranda
    Hello @juniovitorino .
    I learned that this has happened. More particularly I have not used yet.
    I believe it's not a problem. You need some help?
    Junio Vitorino
    @juniovitorino
    HI @gullitmiranda thanks for reply
    Well, I'd like some tips at least.
    for WordPress just PHP and MySQL are needed
    ask seems setup well this systems, but when I start de azk the mysql not run
    and the the domain return only No input file specified
    This makes me think that some setup into azkfile could be wrong or missing.
    Gullit Miranda
    @gullitmiranda
    You could send me your Azkfile.js?
    Junio Vitorino
    @juniovitorino
    Oh yeah, sure. Just a minute.
    systems({
      wpbase: {
        depends: [],
        image: {"docker": "azukiapp/php-fpm"},
        workdir: "/azk/#{manifest.dir}",
        shell: "/bin/bash",
        wait: {"retry": 20, "timeout": 1000},
        mounts: {
          '/azk/#{manifest.dir}': path("."),
        },
        scalable: {"default": 2},
        http: {
          domains: [ "#{system.name}.#{azk.default_domain}" ]
        },
        ports: {
          http: "80/tcp",
        },
        envs: {
          APP_DIR: "/azk/#{manifest.dir}",
        },
        docker_extra: {
          // extra docker options
          start: {
            Privileged: "true",
          },
        },
      },
      mysql: {
        image: {"docker": "mysql"},
        export_envs: {
          "DB_HOST" : "#{net.host}"
        },
      },
    });
    Gullit Miranda
    @gullitmiranda
    I see the mysql is not configured with the necessary