Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Bartek Kus
    @bartekus
    I extend the webpack with the browsersyncplugin so technically its just webpack middleware proxy
    ok I'm stupid
    lol I feel really dumb but it was 3333 not 3000, that's why it wasnt working
    Gullit Miranda
    @gullitmiranda
    kkkk relax. make the same mistake often: p
    :D
    everything working right now?
    Bartek Kus
    @bartekus
    yup, like a charm :)
    Gullit Miranda
    @gullitmiranda
    very nice =D
    Bartek Kus
    @bartekus
    is there a way to expose more than one port?
    Bartek Kus
    @bartekus
    I think I figured it out, domain binding
    Gullit Miranda
    @gullitmiranda
    =D
    Bartek Kus
    @bartekus
    What I thought as working wasnt so how does one expose more than port?
    Gullit Miranda
    @gullitmiranda
    e.g:
    ports: {
      http: "8080/tcp",
      other: "3000/tcp",
    }
    Bartek Kus
    @bartekus
    ah so other is just a word right? if I want to use dev or other words that should be ok right?
    Gullit Miranda
    @gullitmiranda
    yes, It is just an ID.
    This id is used to create an env which will be available inside of container.
    Gullit Miranda
    @gullitmiranda
    eg:
    $ azk shell
    env | grep PORT
    HTTP_PORT=8080
    OTHER_PORT=3000
    Bartek Kus
    @bartekus
    ah perfect, thank you Gullit
    Gullit Miranda
    @gullitmiranda
    😀
    Djamy
    @Djamy
    Hi, someone here to assist me with azk ?
    Vytenis
    @FDiskas
    :)
    Gullit Miranda
    @gullitmiranda
    hi @Djamy, sorry for the delay
    What is your problem?
    Djamy
    @Djamy
    Hi @gullitmiranda no problem, I found the solution to my problem, thanks!
    Djamy
    @Djamy
    I still have a question @gullitmiranda, please. It's about linking a database to another container.. It put my database server in the "depends" key but I cannot make my container to talk with the database container..
    With a basic mysql container, what should I write as "DB hostname" in my web container ? (I presume is the container name but it is not working)
    Gullit Miranda
    @gullitmiranda
    good
    the environment variables that are in export_envs will be added to the system that has thedepends.
    Djamy
    @Djamy
    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
    #{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
    Understood, thanks for those details and sorry to made you repeat this again.. <3
    Gullit Miranda
    @gullitmiranda
    no problem. if you have questions, ask! :D
    Djamy
    @Djamy
    I'm on it right now but I'm still in trouble.. =/
    Gullit Miranda
    @gullitmiranda
    what's the problem?
    Djamy
    @Djamy
    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
    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
    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
    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
    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