{"action":"closed","issue":{"url":"https://api.github.com/repos/GrahamDumpleton/mod_wsgi-docker/issues/1","labels_url":"https://api.github.com/repos/GrahamDumpleton/mod_wsgi-docker/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/GrahamDumpleton/mod_wsgi-docker/issues/1/comments","events_url":"https://api.github.com/repos/GrahamDumpleton/mod_wsgi-docker/issues/1/events","html_url":"https://github.com/GrahamDumpleton/mod_wsgi-docker/issues/1","id":64294765,"number":1,"title":"pre-build hook being ignored?","user":{"login":"hkraal","id":1006756,"avatar_url":"https://avatars.githubusercontent.com/u/1006756?v=3","gravatar_id":"","url":"https://api.github.com/users/hkraal","html_url":"https://github.com/hkraal","followers_url":"https://api.github.com/users/hkraal/followers","following_url":"https://api.github.com/users/hkraal/following{/other_user}","gists_url":"https://api.github.com/users/hkraal/gists{/gist_id}","starred_url":"https://api.github.com/users/hkraal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkraal/subscriptions","organizations_url":"https://api.github.com/users/hkraal/orgs","repos_url":"https://api.github.com/users/hkraal/repos","events_url":"https://api.github.com/users/hkraal/events{/privacy}","received_events_url":"https://api.github.com/users/hkraal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-25T15:11:52Z","updated_at":"2015-03-26T11:40:43Z","closed_at":"2015-03-26T11:40:43Z","body":"This docker images seems awsome, thank you for sharing! I'm assuming I'm the one to fail here but I'm not sure where it's going wrong. I'm trying to dockerize an `Django` application which requires `MySQL-python`. This fails as `libmysqlclient-dev` is missing.\r\n\r\nTo set this straight I created an `.docker/action_hooks/pre-build` file which should be called before the pip install part in `build.sh`, it however doesn't as I don't see the expected ` echo \" -----> Running .whiskey/action_hooks/pre-build` output and the error remains the same.\r\n\r\nWhat am I missing here.\r\n\r\n\r\n## $ docker build -t my-app .\r\n\r\n    Sending build context to Docker daemon 608.3 kB\r\n    Sending build context to Docker daemon \r\n    Step 0 : FROM grahamdumpleton/mod-wsgi-docker:python-2.7-onbuild\r\n    # Executing 2 build triggers\r\n    Trigger 0, COPY . /app\r\n    Step 0 : COPY . /app\r\n     ---> Using cache\r\n    Trigger 1, RUN mod_wsgi-docker-build\r\n    Step 0 : RUN mod_wsgi-docker-build\r\n     ---> Running in 206694174a14\r\n     -----> Installing dependencies with pip\r\n    ...\r\n\r\n## $ cat Dockerfile:\r\n\r\n    FROM grahamdumpleton/mod-wsgi-docker:python-2.7-onbuild\r\n    CMD [ \"webtool/wsgi.py\" ]\r\n\r\n## $ cat requirements.txt:\r\n\r\n    Django<1.8\r\n    requests\r\n    MySQL-python\r\n\r\n## $ cat .docker/action_hooks/pre-build:\r\n\r\n    #!/usr/bin/env bash\r\n    \r\n    set -eo pipefail\r\n    \r\n    apt-get update\r\n    apt-get install -y libmysqlclient-dev\r\n    \r\n    rm -r /var/lib/apt/lists/* \r\n\r\n## $ stat .docker/action_hooks/pre-build\r\n\r\n    Access: (0755/-rwxr-xr-x)  Uid: ( 1000/  user)   Gid: ( 1000/  user)\r\n\r\n\r\n"}}