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

Overview

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.

Comments
  • Could not find command 'librarian-puppet'

    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'
    
    opened by BenBish 13
  • Error in bootstrap provision

    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]
    
    opened by jeffreycahyono 6
  • How to debug using Xdebug

    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

    opened by sanderpost 5
  • docker-compose up stuck

    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.

    opened by hadifarnoud 4
  • php5-fpm exiting

    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

    opened by PabloC 4
  • Connection refused on OSX

    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

    opened by ktwbc 4
  • gettext support

    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.

    opened by boyaq 3
  • Mysql configuration

    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.

    opened by iamthom 3
  • [ASK] How do I apply some custom configuration?

    [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.

    opened by iamthom 3
  • Can't connect to mysql: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

    Can't connect to mysql: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

    Hi, I'm trying your repo, and it is very great!

    Well, got an issue with mysql. I could access this mysql -h localhost -P 3306 --protocol=tcp -uroot -p. But, my PHP app, cant connect to the database and throw error Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

    How can I solve this?

    opened by iamthom 3
  • Not working collectstatic

    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.
    
    opened by tanrax 3
  • HHVM segmentation fault

    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
    #
    
    opened by peterlozano 0
Owner
Kasper Isager Dalsgarð
Working on decentralised systems at Holepunch (holepunch.to)
Kasper Isager Dalsgarð
Lamp Docker skeleton PHP + Nginx + Mysql + Redis

Stop installing the entire development stack on your local machine. This project will allow you to quickly start working with php. To install, you need to install docker locally.

Krepysh 9 Dec 27, 2022
Docker with PHP 7.4 fpm, Nginx, Composer, PhpUnit and MaridaDB

Clean Docker with PHP Docker with PHP 7.4 fpm, Nginx, Composer, PhpUnit and MariaDB Starting app docker-compose up -d Main page

Grzegorz Bielski 7 Nov 17, 2022
A modern Docker LAMP stack and MEAN stack for local development

The Devilbox Usage | Architecture | Community | Features | Intranet | Screenshots | Contributing | Logos | License Support for valid https out of the

cytopia 4k Jan 8, 2023
This is a dockerized environment for testing and developing things on the fatfree-core.

F3 development bench This is a dockerized environment for testing and developing things on the fatfree-core. It uses Docker to spin up multiple contai

Fat-Free Framework Factory 9 Sep 20, 2022
Dockerized version of Laravel Homestead

laraedit-docker Dockerized version of Laravel Homestead Documentation For now you can check out the wiki for details on using the container. Once the

LaraEdit 444 Dec 7, 2022
🎲Neard is a portable WAMP software stack involving useful binaries, tools and applications for your web development.

About Neard is a portable WAMP software stack involving useful binaries, tools and applications for your web development. It also offers several versi

Neard 335 Dec 22, 2022
ServD - a Docker PHP development environment heavily inspired by Laravel Valet and Laradock

ServD ServD is a Docker PHP development environment heavily inspired by Laravel Valet and Laradock, it supports multiple projects within a working dir

Matt Clinton 2 May 13, 2022
Vagrant is a tool for building and distributing development environments.

Vagrant Website: https://www.vagrantup.com/ Source: https://github.com/hashicorp/vagrant HashiCorp Discuss: https://discuss.hashicorp.com/c/vagrant/24

HashiCorp 24.8k Jan 2, 2023
A development tool for all your projects that is fast, easy, powerful and liberating

Lando A Liberating Dev Tool For All Your Projects The local development and DevOps tool trusted by professional developers across the galaxy. Free you

Lando 3.6k Jan 7, 2023
Full PHP development environment for Docker.

Full PHP development environment based on Docker. Use Docker First - Learn About It Later! Join Us Awesome People Laradock is an MIT-licensed open sou

laradock 11.7k Jan 7, 2023
Blazing fast macOS PHP development environment

Introduction Valet+ is a development environment for macOS. No Vagrant, no Docker, no /etc/hosts file. Go here for the valet+ documentation. Credits T

We Provide 1.5k Jan 2, 2023
DDEV-Local: a local PHP development environment system

ddev ddev is an open source tool that makes it simple to get local PHP development environments up and running in minutes. It's powerful and flexible

DDEV 1.6k Dec 29, 2022
Stacker - The environment for local web development, ready for use.

Introduction English 简体中文 Why stacker? Stacker - This is a local environment for web development with everything you need. What is its benefit? You do

Nikolay Stepanov 359 Dec 8, 2022
Docker Containers for simple Laravel development.

Docker containers of Laravel development. Docker Containers for simple Laravel development. Prerequisites This package only works for Linux users righ

Steve Azzopardi 14 May 19, 2022
Valet WSL is an advanced development environment for Windows Subsystem for Linux

Introduction Valet WSL is an advanced development environment for Windows Subsystem for Linux. No Vagrant, no hosts file manual management. You can ev

EPTIC Solutions 6 Nov 22, 2022
Finally a sane way to register available commands and arguments and match your command line in PHP

clue/commander Finally a sane way to register available commands and arguments and match your command line in PHP. You want to build a command line in

Christian Lück 172 Nov 27, 2022
Quickly deploy a seedbox with self-hosted services and a web portal using Docker and docker-compose.

Seedbox Quickly deploy and configure a seedbox with self-hosted services and a web portal using Docker and a single docker-compose.yml file. Screensho

null 6 Dec 7, 2022
Brew PHP switcher is a simple shell script to switch your apache and CLI quickly between major versions of PHP

Brew PHP switcher is a simple shell script to switch your apache and CLI quickly between major versions of PHP. If you support multiple products/projects that are built using either brand new or old legacy PHP functionality. For users of Homebrew (or brew for short) currently only.

Phil Cook 872 Dec 22, 2022