Mais conteúdo relacionado
Semelhante a Php7 on Docker on tekitoh-memdhoi.info (20)
Php7 on Docker on tekitoh-memdhoi.info
- 2. ぼく、てきめん!
• 「てきとう」「めんどい」の略デス><
• Don t think, feel! and Laziness
• さいと: http://tekitoh-memdhoi.info
• twitter: @youkidearitai
• facebook: youkidearitai.yuya.hamada
• PHP界隈では0x27さい説のある27さいです
• ラジコンの人です
- 11. コンテナ内部
• apt-get install apache2 apache2-dev build-essential
autoconf libpq-dev libxml2-dev libicu-dev libdb-dev
libjpeg-dev libpng-dev libgif-dev libgd-dev libreadline-
dev libgd2-xpm-dev libcurl4-openssl-dev pkg-config
• ./configure ̶with-apxs2=/usr/bin/apxs ̶enable-
mbstring ̶enable-intl ̶with-pgsql=/usr/include/
postgresql ̶with-pdo-pgsql ̶with-gd=/usr/include/
̶with-jpeg-dir=/usr/include/ ̶with-png-dir=/usr/
include/ ̶with-readline=/usr/include/ ̶with-xpm-
dir=/usr/include/ ̶with-openssl
- 12. Dockerfile
FROM youkidearitai/php7-tmcmaker
RUN cd /var/www/htdocs/ && git pull origin master
VOLUME /home/vagrant/media_webroot /var/www/htdocs/cake/app/
media_webroot/
EXPOSE 80 80
env APACHE_RUN_USER www-data
env APACHE_RUN_GROUP www-data
env APACHE_PID_FILE /var/run/apache2.pid
env APACHE_RUN_DIR /var/run/apache2
env APACHE_LOCK_DIR /var/lock/apache2
env APACHE_LOG_DIR /var/log/apache2
env LANG C
ENTRYPOINT ["/usr/sbin/apache2", "-D", "FOREGROUND"]
- 19. デプロイの方法
$ sudo docker pull php7-tmcmaker
$ sudo docker build -t php7-tmcmaker:tmcmaker /
hoge/huga # Dockerfileのパス
$ sudo systemctl stop php7-tmcmaker
$ sudo systemctl start php7-tmcmaker
などをFabricにまとめて
$ fab deploy # でおしまいヽ(^。^)ノ