Git Product home page Git Product logo

php-dockerized's Introduction

PHP Dockerized

Dockerized PHP development stack: Nginx, MySQL, MongoDB, PHP-FPM, HHVM, Memcached, Redis, Elasticsearch and RabbitMQ

Build Status

PHP Dockerized gives you everything you need for developing PHP applications locally. The idea came from the need of having an OS-agnostic and virtualized alternative to the great MNPP stack as regular LAMP stacks quite simply can't keep up with the Nginx + PHP-FPM/HHVM combo in terms of performance. I hope you'll find it as useful an addition to your dev-arsenal as I've found it!

What's inside

Requirements

Running

Set up a Docker Machine and then run:

$ docker-compose up

That's it! You can now access your configured sites via the IP address of the Docker Machine or locally if you're running a Linux flavour and using Docker natively.

License

Copyright © 2014-2018 Kasper Kronborg Isager. Licensed under the terms of the MIT license.

php-dockerized's People

Contributors

celsopalmeiraneto avatar daper avatar dol avatar kasperisager avatar mckomo avatar pgrau avatar sseidenthal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-dockerized's Issues

Mounting NFS shared folders Problem on Ubuntu

I got the following NFS error message at the end:

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mount -o vers=3 10.1.1.1:'/home/user/vagrant/lnpp/webroot' /var/www

Could not find command 'librarian-puppet'

Hi I am a bit stumped about this and how to resolve it. This issue occurs on Vagrant Up.

FYI its a fresh install of Vagrant on OSX Mavericks. Any ideas? Thank you.

Notice: /Stage[main]/Bootstrap::Modules/Package[librarian-puppet]/ensure: created
Error: Could not find command 'librarian-puppet'
Error: /Stage[main]/Bootstrap::Modules/Exec[librarian-puppet install]/returns: change from notrun to 0 failed: Could not find command 'librarian-puppet'
Notice: Finished catalog run in 74.13 seconds
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

puppet apply --hiera_config /vagrant/puppet/hiera.yaml --manifestdir /tmp/vagrant-puppet/manifests --detailed-exitcodes /tmp/vagrant-puppet/manifests/bootstrap.pp || [ $? -eq 2 ]

Stdout from the command:

Notice: Compiled catalog for lnpp.vagrantup.com in environment production in 0.14 seconds
Notice: /Stage[main]/Bootstrap::Update/Exec[apt-get update]/returns: executed successfully
Notice: /Stage[main]/Bootstrap::Packages/Package[git-core]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Bootstrap::Modules/Package[facter]/ensure: ensure changed '1.6.12' to '1.6.13'
Notice: /Stage[main]/Bootstrap::Modules/Package[librarian-puppet]/ensure: created
Notice: Finished catalog run in 74.13 seconds


Stderr from the command:

stdin: is not a tty
Error: Could not find command 'librarian-puppet'
Error: /Stage[main]/Bootstrap::Modules/Exec[librarian-puppet install]/returns: change from notrun to 0 failed: Could not find command 'librarian-puppet'

docker-compose up stuck

front_1         | /usr/lib/python2.7/dist-packages/supervisor/options.py:296: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
front_1         |   'Supervisord is running as root and it is searching '
front_1         | 2015-12-31 12:17:17,858 CRIT Supervisor running as root (no user in config file)
front_1         | 2015-12-31 12:17:17,859 WARN Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
front_1         | 2015-12-31 12:17:17,904 INFO RPC interface 'supervisor' initialized
front_1         | 2015-12-31 12:17:17,904 CRIT Server 'unix_http_server' running without any HTTP authentication checking
front_1         | 2015-12-31 12:17:17,905 INFO supervisord started with pid 1
front_1         | 2015-12-31 12:17:18,912 INFO spawned: 'nginx' with pid 8
front_1         | 2015-12-31 12:17:18,924 INFO spawned: 'hhvm-fastcgi' with pid 9
front_1         | 2015-12-31 12:17:18,935 INFO spawned: 'php5-fpm' with pid 10
front_1         | 2015-12-31 12:17:20,433 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
front_1         | 2015-12-31 12:17:20,433 INFO success: hhvm-fastcgi entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
front_1         | 2015-12-31 12:17:20,433 INFO success: php5-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

compose is stuck here for a while. tried a few times.

Could not find class provision::params

Hi, am getting this error.

Error: Could not find class provision::params for debian-70rc1-x64-
vbox4210.vagrantup.com on node debian-70rc1-x64-vbox4210.vagrantup.com

not sure if this is due to the box or something i need to configure? sorry I'm new to puppet.

Wrong Java version error on Elasticsearch container

Just cloned the project and I get this in the logs of the elasticsearch container.

Attaching to php-dockerized_elasticsearch_1
elasticsearch_1  | Error occurred during initialization of VM
elasticsearch_1  | java/lang/ClassNotFoundException: error in opening JAR file <Zip file open error> /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar
elasticsearch_1  | Elasticsearch requires at least Java 8 but your Java version from /docker-java-home/jre/bin/java does not meet this requirement

Can I use phpmyadmin

How do I install phpmyadmin , I try to pull phpmyadmin container then --link to link phpmyadmin and mysql , But It not work for me , What is a correctly way to use phpmyadmin

Thank you.

gettext support

Hi this project is awesome, and I love it.

But I have problem when adding gettext to the front container. Could you please add gettext to the container?

Thanks in advance.

Errors

When running docker-compose up, getting these errors:

`#docker-compose up
Creating devstack_mysql_1
Building front
Step 1 : FROM nginx
---> 0d409d33b27e
Step 2 : RUN rm -f /etc/nginx/conf.d/*
---> Using cache
---> b2eb6f3730ce
Step 3 : RUN apt-get update && apt-get install -my supervisor curl wget php5-curl php5-fpm php5-gd php5-memcached php5-mysql php5-mcrypt php5-sqlite php5-xdebug php-apc
---> Running in 380a58213fb9
Err http://httpredir.debian.org jessie InRelease

Err http://httpredir.debian.org jessie-updates InRelease

Err http://httpredir.debian.org jessie Release.gpg
Could not resolve 'httpredir.debian.org'
Err http://httpredir.debian.org jessie-updates Release.gpg
Could not resolve 'httpredir.debian.org'
Err http://nginx.org jessie InRelease

Err http://nginx.org jessie Release.gpg
Could not resolve 'nginx.org'
Err http://security.debian.org jessie/updates InRelease

Err http://security.debian.org jessie/updates Release.gpg
Could not resolve 'security.debian.org'
Reading package lists...
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/InRelease

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/InRelease

W: Failed to fetch http://security.debian.org/dists/jessie/updates/InRelease

W: Failed to fetch http://nginx.org/packages/mainline/debian/dists/jessie/InRelease

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/Release.gpg Could not resolve 'httpredir.debian.org'

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/Release.gpg Could not resolve 'httpredir.debian.org'

W: Failed to fetch http://nginx.org/packages/mainline/debian/dists/jessie/Release.gpg Could not resolve 'nginx.org'

W: Failed to fetch http://security.debian.org/dists/jessie/updates/Release.gpg Could not resolve 'security.debian.org'

W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
Package php5-fpm is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package supervisor
E: Unable to locate package curl
E: Unable to locate package wget
E: Unable to locate package php5-curl
E: Package 'php5-fpm' has no installation candidate
E: Unable to locate package php5-gd
E: Unable to locate package php5-memcached
E: Unable to locate package php5-mysql
E: Unable to locate package php5-mcrypt
E: Unable to locate package php5-sqlite
E: Unable to locate package php5-xdebug
E: Unable to locate package php-apc
ERROR: Service 'front' failed to build: The command '/bin/sh -c apt-get update && apt-get install -my supervisor curl wget php5-curl php5-fpm php5-gd php5-memcached php5-mysql php5-mcrypt php5-sqlite php5-xdebug php-apc' returned a non-zero code: 100`

Mysql configuration

Hey, back again with a question. How should I add my.cnf custom configuration? For example I need set max_allowed_packet to 150M. I did this:

created conf/mysql/custom.cnf

[mysqld]
max_allowed_packet=150M

and in docker-compose.yml

mysql:

some lines

volumes:
- ./conf/mysql:/etc/mysql/conf.d

but on docker-compose build mysql, it said, mysql uses an image, skipping. Why was that?

Thank you for the help.

Error in bootstrap provision

I get this error after first vagrant up. How to fix?

D:\vm\vagrant-lnpp>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'precise64'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: vagrant-lnpp_default_1397269468910_57058
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.2.0
    default: VirtualBox Version: 4.3
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /var/www => D:/vm/vagrant-lnpp/public
    default: /vagrant => D:/vm/vagrant-lnpp
    default: /tmp/vagrant-puppet-1/manifests => D:/vm/vagrant-lnpp/puppet/manifests
    default: /tmp/vagrant-puppet-2/manifests => D:/vm/vagrant-lnpp/puppet/manifests
    default: /tmp/vagrant-puppet-2/modules-0 => D:/vm/vagrant-lnpp/puppet/modules
==> default: Running provisioner: shell...
    default: Running: C:/Users/director/AppData/Local/Temp/vagrant-shell20140412-5604-c8nuvk
stdin: is not a tty
Reading package lists...
Building dependency tree...
Reading state information...
lsb-release is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 66 not upgraded.
Selecting previously unselected package puppetlabs-release.
(Reading database ... 51095 files and directories currently installed.)
Unpacking puppetlabs-release (from puppetlabs-release-precise.deb) ...
Setting up puppetlabs-release (1.0-7) ...
Ign http://apt.puppetlabs.com precise InRelease
Ign http://us.archive.ubuntu.com precise InRelease
Ign http://security.ubuntu.com precise-security InRelease
Get:1 http://apt.puppetlabs.com precise Release.gpg [876 B]
Ign http://us.archive.ubuntu.com precise-updates InRelease
Get:2 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:3 http://apt.puppetlabs.com precise Release [22.4 kB]
Ign http://us.archive.ubuntu.com precise-backports InRelease
Hit http://us.archive.ubuntu.com precise Release.gpg
Get:4 http://security.ubuntu.com precise-security Release [49.6 kB]
Get:5 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:6 http://apt.puppetlabs.com precise/main Sources [63.8 kB]
Get:7 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]
Get:8 http://apt.puppetlabs.com precise/dependencies Sources [8,552 B]
Hit http://us.archive.ubuntu.com precise Release
Get:9 http://security.ubuntu.com precise-security/main Sources [102 kB]
Get:10 http://apt.puppetlabs.com precise/main amd64 Packages [65.4 kB]
Get:11 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]
Get:12 http://security.ubuntu.com precise-security/restricted Sources [2,494 B]
Get:13 http://apt.puppetlabs.com precise/dependencies amd64 Packages [6,185 B]
Get:14 http://security.ubuntu.com precise-security/universe Sources [30.9 kB]
Get:15 http://apt.puppetlabs.com precise/main i386 Packages [65.4 kB]
Get:16 http://apt.puppetlabs.com precise/dependencies i386 Packages [6,183 B]
Ign http://apt.puppetlabs.com precise/dependencies TranslationIndex
Get:17 http://security.ubuntu.com precise-security/multiverse Sources [1,797 B]
Ign http://apt.puppetlabs.com precise/main TranslationIndex
Get:18 http://security.ubuntu.com precise-security/main amd64 Packages [376 kB]
Get:19 http://us.archive.ubuntu.com precise-backports Release [49.6 kB]
Hit http://us.archive.ubuntu.com precise/main Sources
Hit http://us.archive.ubuntu.com precise/restricted Sources
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Hit http://us.archive.ubuntu.com precise/main amd64 Packages
Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages
Get:20 http://security.ubuntu.com precise-security/restricted amd64 Packages [4,627 B]
Hit http://us.archive.ubuntu.com precise/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages
Get:21 http://security.ubuntu.com precise-security/universe amd64 Packages [91.8 kB]
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Ign http://apt.puppetlabs.com precise/dependencies Translation-en_US
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Ign http://apt.puppetlabs.com precise/dependencies Translation-en
Get:22 http://security.ubuntu.com precise-security/multiverse amd64 Packages [2,439 B]
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Ign http://apt.puppetlabs.com precise/main Translation-en_US
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Ign http://apt.puppetlabs.com precise/main Translation-en
Get:23 http://security.ubuntu.com precise-security/main i386 Packages [402 kB]
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Get:24 http://us.archive.ubuntu.com precise-updates/main Sources [454 kB]
Get:25 http://security.ubuntu.com precise-security/restricted i386 Packages [4,620 B]
Get:26 http://security.ubuntu.com precise-security/universe i386 Packages [96.5 kB]
Get:27 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,649 B]
Get:28 http://security.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:29 http://us.archive.ubuntu.com precise-updates/restricted Sources [8,028 B]
Get:30 http://security.ubuntu.com precise-security/multiverse TranslationIndex [72 B]
Get:31 http://security.ubuntu.com precise-security/restricted TranslationIndex [72 B]
Get:32 http://us.archive.ubuntu.com precise-updates/universe Sources [106 kB]
Get:33 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:34 http://us.archive.ubuntu.com precise-updates/multiverse Sources [8,909 B]
Get:35 http://security.ubuntu.com precise-security/main Translation-en [175 kB]
Get:36 http://us.archive.ubuntu.com precise-updates/main amd64 Packages [764 kB]
Get:37 http://security.ubuntu.com precise-security/multiverse Translation-en [1,299 B]
Get:38 http://security.ubuntu.com precise-security/restricted Translation-en [1,253 B]
Get:39 http://security.ubuntu.com precise-security/universe Translation-en [56.7 kB]
Get:40 http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages [12.2 kB]
Get:41 http://us.archive.ubuntu.com precise-updates/universe amd64 Packages [239 kB]
Get:42 http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages [15.3 kB]
Get:43 http://us.archive.ubuntu.com precise-updates/main i386 Packages [788 kB]
Get:44 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [12.2 kB]
Get:45 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [244 kB]
Get:46 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [15.4 kB]
Get:47 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [3,564 B]
Get:48 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [2,605 B]
Get:49 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [2,461 B]
Get:50 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [2,850 B]
Get:51 http://us.archive.ubuntu.com precise-backports/main Sources [4,850 B]
Get:52 http://us.archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:53 http://us.archive.ubuntu.com precise-backports/universe Sources [37.7 kB]
Get:54 http://us.archive.ubuntu.com precise-backports/multiverse Sources [5,311 B]
Get:55 http://us.archive.ubuntu.com precise-backports/main amd64 Packages [6,183 B]
Get:56 http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages [14 B]
Get:57 http://us.archive.ubuntu.com precise-backports/universe amd64 Packages [39.2 kB]
Get:58 http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages [5,206 B]
Get:59 http://us.archive.ubuntu.com precise-backports/main i386 Packages [6,182 B]
Get:60 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:61 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [39.0 kB]
Get:62 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [5,178 B]
Get:63 http://us.archive.ubuntu.com precise-backports/main TranslationIndex [72 B]
Get:64 http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex [72 B]
Get:65 http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
Get:66 http://us.archive.ubuntu.com precise-backports/universe TranslationIndex [73 B]
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Get:67 http://us.archive.ubuntu.com precise-updates/main Translation-en [341 kB]
Get:68 http://us.archive.ubuntu.com precise-updates/multiverse Translation-en [9,010 B]
Get:69 http://us.archive.ubuntu.com precise-updates/restricted Translation-en [2,988 B]
Get:70 http://us.archive.ubuntu.com precise-updates/universe Translation-en [139 kB]
Get:71 http://us.archive.ubuntu.com precise-backports/main Translation-en [5,562 B]
Get:72 http://us.archive.ubuntu.com precise-backports/multiverse Translation-en [4,610 B]
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Get:73 http://us.archive.ubuntu.com precise-backports/universe Translation-en [31.6 kB]
Fetched 5,101 kB in 4min 45s (17.8 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  augeas-lenses debconf-utils facter hiera libaugeas-ruby libaugeas-ruby1.8
  libaugeas0 libjson-ruby libreadline5 libruby libruby1.8 libshadow-ruby1.8
  puppet-common ruby ruby-json ruby-rgen ruby1.8 virt-what
Suggested packages:
  augeas-doc augeas-tools puppet-el vim-puppet ruby-selinux libselinux-ruby1.8
  librrd-ruby1.9.1 librrd-ruby1.8 ri ruby-dev ruby1.8-examples ri1.8
Recommended packages:
  rdoc
The following NEW packages will be installed:
  augeas-lenses debconf-utils facter hiera libaugeas-ruby libaugeas-ruby1.8
  libaugeas0 libjson-ruby libreadline5 libruby libruby1.8 libshadow-ruby1.8
  puppet puppet-common ruby ruby-json ruby-rgen ruby1.8 virt-what
0 upgraded, 19 newly installed, 0 to remove and 160 not upgraded.
Need to get 3,818 kB of archives.
After this operation, 14.6 MB of additional disk space will be used.
Get:1 http://apt.puppetlabs.com/ precise/main facter amd64 2.0.1-1puppetlabs1 [73.8 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main libreadline5 amd64 5.2-11 [128 kB]
Get:3 http://apt.puppetlabs.com/ precise/main hiera all 1.3.2-1puppetlabs1 [12.6 kB]
Get:4 http://apt.puppetlabs.com/ precise/dependencies ruby-rgen all 0.6.5-1puppetlabs1 [82.2 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ precise/main augeas-lenses all 0.10.0-0ubuntu4 [175 kB]
Get:6 http://apt.puppetlabs.com/ precise/main puppet-common all 3.4.3-1puppetlabs1 [1,160 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ precise/main debconf-utils all 1.5.42ubuntu1 [54.9 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libruby1.8 amd64 1.8.7.352-2ubuntu1.4 [1,797 kB]
Get:9 http://apt.puppetlabs.com/ precise/main puppet all 3.4.3-1puppetlabs1 [9,632 B]
Get:10 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main ruby1.8 amd64 1.8.7.352-2ubuntu1.4 [33.8 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu/ precise/main ruby all 4.8 [5,054 B]
Get:12 http://us.archive.ubuntu.com/ubuntu/ precise/universe virt-what amd64 1.11-1 [12.9 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu/ precise/main libaugeas0 amd64 0.10.0-0ubuntu4 [171 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu/ precise/main libaugeas-ruby1.8 amd64 0.3.0-1.1ubuntu4 [9,642 B]
Get:15 http://us.archive.ubuntu.com/ubuntu/ precise/universe libaugeas-ruby all 0.3.0-1.1ubuntu4 [3,354 B]
Get:16 http://us.archive.ubuntu.com/ubuntu/ precise/universe ruby-json amd64 1.6.3-1 [73.3 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu/ precise/universe libjson-ruby all 1.6.3-1 [1,588 B]
Get:18 http://us.archive.ubuntu.com/ubuntu/ precise/main libruby all 4.8 [4,766 B]
Get:19 http://us.archive.ubuntu.com/ubuntu/ precise/main libshadow-ruby1.8 amd64 1.4.1-8build1 [9,416 B]
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Fetched 3,818 kB in 1min 14s (51.5 kB/s)
Selecting previously unselected package libreadline5.
(Reading database ... 51101 files and directories currently installed.)
Unpacking libreadline5 (from .../libreadline5_5.2-11_amd64.deb) ...
Selecting previously unselected package augeas-lenses.
Unpacking augeas-lenses (from .../augeas-lenses_0.10.0-0ubuntu4_all.deb) ...
Selecting previously unselected package debconf-utils.
Unpacking debconf-utils (from .../debconf-utils_1.5.42ubuntu1_all.deb) ...
Selecting previously unselected package libruby1.8.
Unpacking libruby1.8 (from .../libruby1.8_1.8.7.352-2ubuntu1.4_amd64.deb) ...
Selecting previously unselected package ruby1.8.
Unpacking ruby1.8 (from .../ruby1.8_1.8.7.352-2ubuntu1.4_amd64.deb) ...
Selecting previously unselected package ruby.
Unpacking ruby (from .../apt/archives/ruby_4.8_all.deb) ...
Selecting previously unselected package virt-what.
Unpacking virt-what (from .../virt-what_1.11-1_amd64.deb) ...
Selecting previously unselected package facter.
Unpacking facter (from .../facter_2.0.1-1puppetlabs1_amd64.deb) ...
Selecting previously unselected package libaugeas0.
Unpacking libaugeas0 (from .../libaugeas0_0.10.0-0ubuntu4_amd64.deb) ...
Selecting previously unselected package libaugeas-ruby1.8.
Unpacking libaugeas-ruby1.8 (from .../libaugeas-ruby1.8_0.3.0-1.1ubuntu4_amd64.deb) ...
Selecting previously unselected package libaugeas-ruby.
Unpacking libaugeas-ruby (from .../libaugeas-ruby_0.3.0-1.1ubuntu4_all.deb) ...
Selecting previously unselected package ruby-json.
Unpacking ruby-json (from .../ruby-json_1.6.3-1_amd64.deb) ...
Selecting previously unselected package libjson-ruby.
Unpacking libjson-ruby (from .../libjson-ruby_1.6.3-1_all.deb) ...
Selecting previously unselected package libruby.
Unpacking libruby (from .../archives/libruby_4.8_all.deb) ...
Selecting previously unselected package libshadow-ruby1.8.
Unpacking libshadow-ruby1.8 (from .../libshadow-ruby1.8_1.4.1-8build1_amd64.deb) ...
Selecting previously unselected package hiera.
Unpacking hiera (from .../hiera_1.3.2-1puppetlabs1_all.deb) ...
Selecting previously unselected package ruby-rgen.
Unpacking ruby-rgen (from .../ruby-rgen_0.6.5-1puppetlabs1_all.deb) ...
Selecting previously unselected package puppet-common.
Unpacking puppet-common (from .../puppet-common_3.4.3-1puppetlabs1_all.deb) ...
Selecting previously unselected package puppet.
Unpacking puppet (from .../puppet_3.4.3-1puppetlabs1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up libreadline5 (5.2-11) ...
Setting up augeas-lenses (0.10.0-0ubuntu4) ...
Setting up debconf-utils (1.5.42ubuntu1) ...
Setting up libruby1.8 (1.8.7.352-2ubuntu1.4) ...
Setting up ruby1.8 (1.8.7.352-2ubuntu1.4) ...
update-alternatives: using /usr/bin/ruby1.8 to provide /usr/bin/ruby (ruby) in auto mode.
Setting up ruby (4.8) ...
Setting up virt-what (1.11-1) ...
Setting up facter (2.0.1-1puppetlabs1) ...
Setting up libaugeas0 (0.10.0-0ubuntu4) ...
Setting up libaugeas-ruby1.8 (0.3.0-1.1ubuntu4) ...
Setting up libaugeas-ruby (0.3.0-1.1ubuntu4) ...
Setting up ruby-json (1.6.3-1) ...
Setting up libjson-ruby (1.6.3-1) ...
Setting up libruby (4.8) ...
Setting up libshadow-ruby1.8 (1.4.1-8build1) ...
Setting up hiera (1.3.2-1puppetlabs1) ...
Setting up ruby-rgen (0.6.5-1puppetlabs1) ...
Setting up puppet-common (3.4.3-1puppetlabs1) ...
Setting up puppet (3.4.3-1puppetlabs1) ...
 * Starting puppet agent

puppet not configured to start, please edit /etc/default/puppet to enable
   ...done.
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
==> default: Running provisioner: puppet...
Running Puppet with bootstrap.pp...
stdin: is not a tty
Notice: Compiled catalog for lnpp.vagrantup.com in environment production in 0.70 seconds
Notice: /Stage[main]/Bootstrap::Update/Exec[apt-get update]/returns: executed successfully
Notice: /Stage[main]/Bootstrap::Packages/Package[git-core]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Bootstrap::Modules/Package[facter]/ensure: ensure changed '1.6.12' to '1.6.13'
Notice: /Stage[main]/Bootstrap::Modules/Package[librarian-puppet]/ensure: created
Notice: /Stage[main]/Bootstrap::Modules/Exec[librarian-puppet install]/returns: Unable to rollback path /vagrant/puppet/.tmp/librarian/cache/source/pu
ppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b: Directory not empty - /vagrant/puppet/.tmp/lib
rarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b
Notice: /Stage[main]/Bootstrap::Modules/Exec[librarian-puppet install]/returns: Error executing puppet module install:
Notice: /Stage[main]/Bootstrap::Modules/Exec[librarian-puppet install]/returns: puppet module install --version 4.1.0 --target-dir /vagrant/puppet/.tm
p/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b --module_repository
http://forge.puppetlabs.com --modulepath /vagrant/puppet/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/v
ersion/804879af3577ffc462dba2bf74cceb6b --module_working_dir /vagrant/puppet/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb
/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b --ignore-dependencies puppetlabs/stdlib
Notice: /Stage[main]/Bootstrap::Modules/Exec[librarian-puppet install]/returns: Error:
Notice: /Stage[main]/Bootstrap::Modules/Exec[librarian-puppet install]/returns: Error: Operation not permitted - /vagrant/puppet/.tmp/librarian/cache/
source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b/cache/http_forge_puppetlabs_com-75a31f
1d6f1ef6eb63b4479b3512ee1508209a7f/puppetlabs-stdlib-4.1.0.tar.gz
Notice: /Stage[main]/Bootstrap::Modules/Exec[librarian-puppet install]/returns: Error: Try 'puppet help module install' for usage
Error: librarian-puppet install returned 1 instead of one of [0]
Error: /Stage[main]/Bootstrap::Modules/Exec[librarian-puppet install]/returns: change from notrun to 0 failed: librarian-puppet install returned 1 ins
tead of one of [0]
Notice: Finished catalog run in 681.84 seconds
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

puppet apply --hiera_config=/tmp/vagrant-puppet-1/hiera.yaml --color=false --manifestdir /tmp/vagrant-puppet-1/manifests --detailed-exitcodes /tmp/vag
rant-puppet-1/manifests/bootstrap.pp || [ $? -eq 2 ]

Stdout from the command:

Notice: Compiled catalog for lnpp.vagrantup.com in environment production in 0.70 seconds
Notice: /Stage[main]/Bootstrap::Update/Exec[apt-get update]/returns: executed successfully
Notice: /Stage[main]/Bootstrap::Packages/Package[git-core]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Bootstrap::Modules/Package[facter]/ensure: ensure changed '1.6.12' to '1.6.13'
Notice: /Stage[main]/Bootstrap::Modules/Package[librarian-puppet]/ensure: created
Notice: /Stage[main]/Bootstrap::Modules/Exec[librarian-puppet install]/returns: Unable to rollback path /vagrant/puppet/.tmp/librarian/cache/source/pu
ppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b: Directory not empty - /vagrant/puppet/.tmp/lib
rarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b
Notice: /Stage[main]/Bootstrap::Modules/Exec[librarian-puppet install]/returns: Error executing puppet module install:
Notice: /Stage[main]/Bootstrap::Modules/Exec[librarian-puppet install]/returns: puppet module install --version 4.1.0 --target-dir /vagrant/puppet/.tm
p/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b --module_repository
http://forge.puppetlabs.com --modulepath /vagrant/puppet/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/v
ersion/804879af3577ffc462dba2bf74cceb6b --module_working_dir /vagrant/puppet/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb
/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b --ignore-dependencies puppetlabs/stdlib
Notice: /Stage[main]/Bootstrap::Modules/Exec[librarian-puppet install]/returns: Error:
Notice: /Stage[main]/Bootstrap::Modules/Exec[librarian-puppet install]/returns: Error: Operation not permitted - /vagrant/puppet/.tmp/librarian/cache/
source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/puppetlabs/stdlib/version/804879af3577ffc462dba2bf74cceb6b/cache/http_forge_puppetlabs_com-75a31f
1d6f1ef6eb63b4479b3512ee1508209a7f/puppetlabs-stdlib-4.1.0.tar.gz
Notice: /Stage[main]/Bootstrap::Modules/Exec[librarian-puppet install]/returns: Error: Try 'puppet help module install' for usage
Notice: Finished catalog run in 681.84 seconds


Stderr from the command:

stdin: is not a tty
Error: librarian-puppet install returned 1 instead of one of [0]
Error: /Stage[main]/Bootstrap::Modules/Exec[librarian-puppet install]/returns: change from notrun to 0 failed: librarian-puppet install returned 1 ins
tead of one of [0]

unable to access www port, maybe due to tcp4 instead of tcp6?

I'm unable to access www port(
Is it because tcp6 instead of tcp4? How do I change it to?

root@alexus:~# docker ps
CONTAINER ID        IMAGE                 COMMAND                  CREATED             STATUS              PORTS                                                              NAMES
48570566c9ff        phpdockerized_front   "/usr/bin/supervisord"   11 minutes ago      Up 11 minutes       0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:9000->9000/tcp   phpdockerized_front_1
c1bf107ed8c8        redis                 "/entrypoint.sh redis"   11 minutes ago      Up 11 minutes       0.0.0.0:6379->6379/tcp                                             phpdockerized_redis_1
f2573e644d56        memcached             "/entrypoint.sh memca"   11 minutes ago      Up 11 minutes       0.0.0.0:11211->11211/tcp                                           phpdockerized_memcached_1
73f093e94e8e        mysql                 "/entrypoint.sh mysql"   11 minutes ago      Up 11 minutes       0.0.0.0:3306->3306/tcp                                             phpdockerized_mysql_1
b4406538d92d        mongo                 "/entrypoint.sh mongo"   11 minutes ago      Up 11 minutes       0.0.0.0:27017->27017/tcp                                           phpdockerized_mongo_1
353a40553cf5        elasticsearch         "/docker-entrypoint.s"   11 minutes ago      Up 11 minutes       0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp                     phpdockerized_elasticsearch_1
root@alexus:~# netstat -tan | egrep 'tcp.*\:(80|443|9000).*LISTEN'
tcp6       0      0 :::443                  :::*                    LISTEN     
tcp6       0      0 :::9000                 :::*                    LISTEN     
tcp6       0      0 :::80                   :::*                    LISTEN     
root@alexus:~# curl -I http://0:80
curl: (52) Empty reply from server
root@alexus:~# curl -I http://0.0.0.0:80
curl: (52) Empty reply from server
root@alexus:~# 

How to debug using Xdebug

Hi,

I ran into the following issue which I have resoved, but not in a satisfactory way.

I use Netbeans to start the debug client on port 9000. But since port 9000 is used by the docker-proxy process there's no way to have the xdebug to connect to my Netbeans debug client. How can I get xdebug to connect to my debugger client? It seems to me that IF you bind the host port 9000 to the container port 9000 there's no way to listen for the xdebug server "connect back".

I resolved the issue in the end by using net : "host" in the docker-compose file. This also requires me to drop the 'links' section which is pretty ugly imho.

Greetz,

Sander

How can I run commands on the front service?

First of all, this is the most useful setup I've been able to find for dockerized PHP, so thank you!

I'm setting up a Laravel project, and I'm wondering if there's a way to easily run commands on the front service through the terminal. Since supervisor is the entry point, I'm unable to start a bash shell or run composer or anything like that.

mcrypt not enabled by default

Hi,

the mcrypt is not enabled by default.

For checking which mods are enabled:
php -m

Enable:
php5enmod mcrypt

Can you add this?

10.1.1.1 Default IP

Vagrant throws an error about this default IP address. Not to mention I'm having issues with getting it working on a company lan...

HHVM segmentation fault

$ docker-compose up front
Starting php-dockerized_front_1 ... done
Attaching to php-dockerized_front_1
front_1          | /usr/lib/python2.7/dist-packages/supervisor/options.py:298: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
front_1          |   'Supervisord is running as root and it is searching '
front_1          | 2018-06-05 19:40:16,400 CRIT Supervisor running as root (no user in config file)
front_1          | 2018-06-05 19:40:16,402 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
front_1          | 2018-06-05 19:40:16,431 INFO RPC interface 'supervisor' initialized
front_1          | 2018-06-05 19:40:16,432 CRIT Server 'unix_http_server' running without any HTTP authentication checking
front_1          | 2018-06-05 19:40:16,435 INFO supervisord started with pid 1
front_1          | 2018-06-05 19:40:17,444 INFO spawned: 'nginx' with pid 8
front_1          | 2018-06-05 19:40:17,454 INFO spawned: 'php-fpm' with pid 9
front_1          | 2018-06-05 19:40:17,463 INFO spawned: 'hhvm-fastcgi' with pid 10
front_1          | 2018-06-05 19:40:17,553 INFO exited: hhvm-fastcgi (terminated by SIGSEGV; not expected)
front_1          | 2018-06-05 19:40:18,555 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
front_1          | 2018-06-05 19:40:18,556 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
front_1          | 2018-06-05 19:40:18,564 INFO spawned: 'hhvm-fastcgi' with pid 14
front_1          | 2018-06-05 19:40:18,597 INFO exited: hhvm-fastcgi (terminated by SIGSEGV; not expected)
front_1          | 2018-06-05 19:40:20,609 INFO spawned: 'hhvm-fastcgi' with pid 15
front_1          | 2018-06-05 19:40:20,657 INFO exited: hhvm-fastcgi (terminated by SIGSEGV; not expected)
front_1          | 2018-06-05 19:40:23,677 INFO spawned: 'hhvm-fastcgi' with pid 16
front_1          | 2018-06-05 19:40:23,717 INFO exited: hhvm-fastcgi (terminated by SIGSEGV; not expected)
front_1          | 2018-06-05 19:40:24,719 INFO gave up: hhvm-fastcgi entered FATAL state, too many start retries too quickly
Killing php-dockerized_front_1  ... done

Trying to run hhvm manually:

$ docker-compose run --entrypoint /bin/sh front
# hhvm
Segmentation fault
#

Not working collectstatic

I did not see the Admin styles. So I execute:

docker-compose run web /usr/local/bin/python manage.py collectstatic

But it returns:

django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.

[ASK] How do I apply some custom configuration?

Hello, I'd like to ask about how do I add my configuration, such as my.cnf, .bashrc etc? I believe by editing it inside the container is not the best practice, even though that's what I did for now.

Thank you in advance.

Connection refused on OSX

Any suggestions on this? I can get the IP from boot2docker and Shipyard does respond on 8080 but nginx on 80 is not working. This is just straight clone, and fig up -d (which your directions don't have -d but the terminal window hangs otherwise)

Removing intermediate container eb6df46bd3fb
Step 13 : VOLUME /var/www /etc/nginx/sites-enabled
---> Running in 4aedf0517ce7
---> d7720f705377
Removing intermediate container 4aedf0517ce7
Step 14 : EXPOSE 80 9000
---> Running in 1ea3ad7582bf
---> 637fa7759558
Removing intermediate container 1ea3ad7582bf
Step 15 : CMD /usr/bin/supervisord
---> Running in 162be3828119
---> 774fcc149f66
Removing intermediate container 162be3828119
Successfully built 774fcc149f66
Kris-White-Flocasts:k kris$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bbb422ecfab5 k_front:latest "/usr/bin/supervisor 8 seconds ago Up 8 seconds 0.0.0.0:80->80/tcp, 0.0.0.0:9000->9000/tcp k_front_1
a185179ecd88 tutum/memcached:latest "/run.sh" 11 seconds ago Up 10 seconds 0.0.0.0:11211->11211/tcp k_memcached_1
c4699dfbb812 tutum/mysql:latest "/run.sh" 11 seconds ago Up 11 seconds 0.0.0.0:3306->3306/tcp k_mysql_1
5904442c6d3f shipyard/shipyard:2.0.4 "/app/controller" 12 seconds ago Up 11 seconds 0.0.0.0:8080->8080/tcp k_shipyard_1
412684a566db shipyard/rethinkdb:latest "/usr/bin/rethinkdb 12 minutes ago Up 12 minutes 29015/tcp, 8080/tcp, 28015/tcp, 0.0.0.0:49153->49153/tcp, 0.0.0.0:49154->49154/tcp, 0.0.0.0:49155->49155/tcp k_shipyardDb_1
de8736aeb3cf tutum/elasticsearch:latest "/run.sh" 17 minutes ago Up 17 minutes 0.0.0.0:9200->9200/tcp k_elasticsearch_1
6ddd2c5b9e3c tutum/redis:latest "/run.sh" 23 minutes ago Up 23 minutes 0.0.0.0:6379->6379/tcp k_redis_1
c6eafb4521cb tutum/mongodb:latest "/run.sh" 23 minutes ago Up 23 minutes 0.0.0.0:27017->27017/tcp, 0.0.0.0:28017->28017/tcp k_mongodb_1
Kris-White-Flocasts:k kris$ boot2docker ip

The VM's Host only interface IP address is: 192.168.59.103

Kris-White-Flocasts:k kris$ curl http://192.168.59.103
curl: (7) Failed to connect to 192.168.59.103 port 80: Connection refused

php5-fpm exiting

Any idea why php5-fpm is exiting?

front_1 | 2015-06-02 22:35:17,899 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
front_1 | 2015-06-02 22:35:17,899 INFO success: hhvm-fastcgi entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
front_1 | 2015-06-02 22:35:17,901 INFO spawned: 'php5-fpm' with pid 21
front_1 | 2015-06-02 22:35:17,938 INFO exited: php5-fpm (exit status 70; not expected)
front_1 | 2015-06-02 22:35:17,938 CRIT reaped unknown pid 23)
front_1 | 2015-06-02 22:35:19,942 INFO spawned: 'php5-fpm' with pid 24
front_1 | 2015-06-02 22:35:19,978 INFO exited: php5-fpm (exit status 70; not expected)
front_1 | 2015-06-02 22:35:19,978 CRIT reaped unknown pid 26)
front_1 | 2015-06-02 22:35:22,985 INFO spawned: 'php5-fpm' with pid 27
front_1 | 2015-06-02 22:35:23,021 INFO exited: php5-fpm (exit status 70; not expected)
front_1 | 2015-06-02 22:35:23,021 CRIT reaped unknown pid 29)
front_1 | 2015-06-02 22:35:24,023 INFO gave up: php5-fpm entered FATAL state, too many start retries too quickly

Win 10 issues

....
Get:4 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch-updates/main amd64 Packages [6499 B]
Get:8 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
Get:9 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2479 B]
Get:10 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages [9500 kB]
Fetched 10.1 MB in 2s (3374 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Package php5-gd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mcrypt is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-sqlite is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php-apc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5-curl' has no installation candidate
E: Unable to locate package php5-fpm
E: Package 'php5-gd' has no installation candidate
E: Unable to locate package php5-memcached
E: Package 'php5-mysql' has no installation candidate
E: Package 'php5-mcrypt' has no installation candidate
E: Package 'php5-sqlite' has no installation candidate
E: Unable to locate package php5-xdebug
E: Package 'php-apc' has no installation candidate
ERROR: Service 'front' failed to build: The command '/bin/sh -c apt-get update && apt-get install -my supervisor curl wget php5-curl php5-fpm php5-gd php5-memcached php5-mysql php5-mcrypt php5-sqlite php5-xdebug php-apc' returned a non-zero code: 100

did you consider database volumes

Thanks a lot for your work, worked out of the box. I was just wondering why it doesn't have volumes for DB so that MySQL or Mongo data is persistent

Nothing on 8080 or

Hi:

phpstack concept is great, I would like to use it.

My OS is Ubuntu, I used DOCKER_HOST

export DOCKER_HOST=tcp://192.168.33.10:2375

After "installation" process, everything seems to be up and running, but...
There is nothing at http://192.168.33.10:8080
Message at http://192.168.33.10:2375 is 'Page not found'

After vagrant halt, and up again; it goes even worse
docker-compose up
Recreating ..._shipyard_1...
Cannot start container ...d5db: exec: "/bin/echo": stat /bin/echo: no such file or directory

Could you give me a hint to solve this problem?

Thanks
Best Regards!

Issue with symlinks in www folder

Hi,

I've got php dockerized on the /home/maxime/workspace/Webserver location.

I've also got a project on the /home/maxime/workspace/web/johndoeproject location. I made a symlink of this in the /home/maxime/workspace/Webserver/www/johndoeproject location.

I created a vhost for this:

server {
  server_name johndoe.dev;
  root /var/www/johndoeproject;
  index       index.html index.htm index.php;

  # client_max_body_size 100M;
  # fastcgi_read_timeout 1800;

  location / {
#    try_files $uri $uri/ /index.php;
    disable_symlinks off;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
#    expires       max;
    log_not_found off;
    access_log    off;
  }

  location ~ \.php$ {
    try_files     $uri =404;
    include       fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass  unix:/var/run/php5-fpm.sock;
    # fastcgi_pass  unix:/var/run/hhvm/hhvm.sock;
  }
}

This vhost works when I hard copy the project, but not when I make a symlink. My host is under Linux Mint 17.2 .

Did I forget an option to work with symlinks ? The Internet only says something for the disable_symlinks off flag.

Vagrant up fail on osx 10.8.4

nfs problem

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mount -o vers=3 10.1.1.1:'/Users/alessandro/Dev/vagrant-lnpp/webroot' /var/www

Feature request: Log Files

Hi@all,

How can i read the logfiles?
How can i restart the mysql database?

My plan is to use phpstack in production mode.

Shipyard not showing anything

I have cloned this repo, when I connect to port 80 I can see the phpinfo page but when I use 8080 I can see the shipyard UI but no containers are displayed and nothing in the dashboard!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.