These are chat archives for azukiapp/azk

14th
Nov 2015
Patrik Patie Gmitter
@patie
Nov 14 2015 00:36
is this apache work out of the box?

ADD sample/ /var/www/public

EXPOSE 80
WORKDIR /app

i see Forbidden
how must i set azkfile please
    'php': {
        depends: ['mysql', 'redis'],
        image: {"docker": "azukiapp/php-apache"},
        provision: [
            "composer install"
        ],
        workdir: "/azk/#{manifest.dir}",
        shell: "/bin/bash",
        wait: {"retry": 20, "timeout": 1000},
        mounts: {
            '/azk/#{manifest.dir}': sync("./php")
        },
        scalable: {"default": 1},
        http: {
            domains: ["#{system.name}.#{azk.default_domain}"]
        },
        ports: {
            http: "80/tcp",
        },
        envs: {
            APP_DIR: "/azk/#{manifest.dir}",
        },
    },
yes php files are in php on local disk
thx for help
Gullit Miranda
@gullitmiranda
Nov 14 2015 02:18

@patie. Sorry for the delay.
This image is well out of date :(

As a workaround, I believe that you can change the destination of the application mount, so it will go to the folder that the Apache used.

e.g.:
        mounts: {
            โ€˜/var/www/public': sync("./php")
        }
The correct is to improve this image so that it is similar to azukiapp/php-fpm
This script makes โ€œmagicโ€: https://github.com/azukiapp/docker-php-fpm/blob/master/5.6%2Frun.sh
Patrik Patie Gmitter
@patie
Nov 14 2015 10:13
no problem, will be great in future describe paths in readme what you think? :)
Patrik Patie Gmitter
@patie
Nov 14 2015 10:48
paths and also envs will be great
Patrik Patie Gmitter
@patie
Nov 14 2015 11:21
workdir should be also changed probably for /var/www/public because composer dont know about composer.json in project
also before composer install in provision should be composer self-update, or in the docker
Patrik Patie Gmitter
@patie
Nov 14 2015 11:32
also php intl is needed for symfony framework for example
can i do PR, or i must this do in provision?
or better own dockerfile on docker hub? what you think
@gullitmiranda @fearenales ^^
Gullit Miranda
@gullitmiranda
Nov 14 2015 11:56
@patie, you can make a PR in the image.
Another user who uses cake-php did the same problem, but it uses the php-fpm.
Patrik Patie Gmitter
@patie
Nov 14 2015 11:56
i actually do fork, i try it, and later i do PR if it will be ok
thx
Gullit Miranda
@gullitmiranda
Nov 14 2015 11:57
cool
anything mention me here, then I get notification. apparently, now the gitter only notifies me that way.
Patrik Patie Gmitter
@patie
Nov 14 2015 13:22
where is compiled local dockerfile images on osx? any idea? or how to precompile it with new changes in dockerfile? thx
Patrik Patie Gmitter
@patie
Nov 14 2015 13:46
im trying remove image, but
Error response from daemon: Conflict, cannot delete 5f5dcdb3cd8d because the container 6f10126d7756 is using it, use -f to force
but i dont know ho to show all images, azk docker ps -a requiring parameter
Patrik Patie Gmitter
@patie
Nov 14 2015 14:05
ok azk docker rm 6f10126d7756 and azk docker rmi 5f5dcdb3cd8d :)
Patrik Patie Gmitter
@patie
Nov 14 2015 14:36
hm my dockerfile ignore ADD/COPY
Patrik Patie Gmitter
@patie
Nov 14 2015 15:04
ahaaaaaaa !
Gullit Miranda
@gullitmiranda
Nov 14 2015 15:11
Should not ignore.
You are using adocker?
Patrik Patie Gmitter
@patie
Nov 14 2015 15:12
no no, my bad in docker file :) sorry for spam, i have many questions and AHA moments :P
Gullit Miranda
@gullitmiranda
Nov 14 2015 15:14
no problem = D
If in doubt, you have to ask = D
Patrik Patie Gmitter
@patie
Nov 14 2015 15:15
docker apache php update and symfony generator coming soon :P
Gullit Miranda
@gullitmiranda
Nov 14 2015 15:15
If you are using Mac OS X, I recommend using the adocker or azk docker. Because then the images will be available from azk VM.
very nice =D
Patrik Patie Gmitter
@patie
Nov 14 2015 15:15
im using azk docker
Gullit Miranda
@gullitmiranda
Nov 14 2015 15:16
In particular, I wish I had more time to do a better curation for these images. But it's a very big picture, just who uses on day may identify problems.
cool. is the best ๐Ÿ˜Š
Patrik Patie Gmitter
@patie
Nov 14 2015 15:17
of course i understand you, i must better understand this for now, later i can try maintain php images
Gullit Miranda
@gullitmiranda
Nov 14 2015 15:21
good to see that
Patrik Patie Gmitter
@patie
Nov 14 2015 15:34
@gullitmiranda from where $APP_DIR in .sh script is reading? from envs in azkfile?
Gullit Miranda
@gullitmiranda
Nov 14 2015 15:38
in the case of php-apache image, env that is not yet being used. But we need to add the same script that exists in php-fpm image.
Patrik Patie Gmitter
@patie
Nov 14 2015 15:49
yep i want add it but dont know which its
i have in apache now Dockerfile and run.sh with $APP_DIR, but how run.sh know about APP_DIR
its reading from Azkfile.js im right?
Patrik Patie Gmitter
@patie
Nov 14 2015 15:57
i have it in Azkfile.js in envs: but when i log into my local php apache into shell i dont see in printenv
Gullit Miranda
@gullitmiranda
Nov 14 2015 15:57
Pls, send me the Dockerfile and run.sh
Patrik Patie Gmitter
@patie
Nov 14 2015 15:57
ok pm