Created
September 12, 2013 20:10
-
-
Save taniki/6543081 to your computer and use it in GitHub Desktop.
docker builder : cortext-aut
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /usr/sbin/mysqld & | |
| sleep 5 | |
| echo "GRANT ALL ON *.* TO root@'localhost' IDENTIFIED BY 'c0rt3xt' WITH GRANT OPTION; FLUSH PRIVILEGES" | mysql | |
| php data/rebuild_db.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:12.10 | |
| # https://github.com/dotcloud/docker/issues/1024 | |
| RUN dpkg-divert --local --rename --add /sbin/initctl | |
| RUN ln -s /bin/true /sbin/initctl | |
| RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q mysql-server | |
| RUN apt-get install -y php5-cli php5-mysql php5-curl php5-sqlite | |
| RUN apt-get install -y git | |
| RUN apt-get install -y curl | |
| RUN mkdir /server | |
| RUN cd . | |
| RUN git clone https://github.com/taniki/cortext-auth.git /server/cortext-auth | |
| RUN git clone https://github.com/cortext/silex-simpleuser.git /server/cortext-auth/server/vendor/cortext/silex-simpleuser | |
| WORKDIR /server/cortext-auth | |
| RUN curl -s http://getcomposer.org/installer | php | |
| RUN ./composer.phar install | |
| WORKDIR /server/cortext-auth/server | |
| RUN ../composer.phar update | |
| ADD ./configure-mysql.sh /tmp/configure-mysql.sh | |
| RUN /bin/sh /tmp/configure-mysql.sh | |
| EXPOSE 29100 | |
| CMD /usr/sbin/mysqld & php -S 0.0.0.0:29100 -t web web/index.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment