All Projects → thierrymarianne → talk-symfony2-docker-vagrant

thierrymarianne / talk-symfony2-docker-vagrant

Licence: other
Développer et packager votre application Symfony2 avec Docker et Vagrant

Programming Languages

shell
77523 projects
Dockerfile
14818 projects
Puppet
460 projects

Projects that are alternatives of or similar to talk-symfony2-docker-vagrant

100 Days Of Go
100 days of Go learning
Stars: ✭ 24 (+4.35%)
Mutual labels:  vagrant
terraform-provider-vagrant
A Vagrant provider for terraform.
Stars: ✭ 43 (+86.96%)
Mutual labels:  vagrant
vagrant-joyent
A Vagrant provider for Joyent
Stars: ✭ 30 (+30.43%)
Mutual labels:  vagrant
craftbox
Simple Ubuntu Vagrant box targeted for Craft developers -
Stars: ✭ 28 (+21.74%)
Mutual labels:  vagrant
teamcity-vagrant
No description or website provided.
Stars: ✭ 23 (+0%)
Mutual labels:  vagrant
node-vagrant
Node js wrapper for vagrant CLI - command line tool.
Stars: ✭ 28 (+21.74%)
Mutual labels:  vagrant
junos-orchestration-with-vagrant
How to orchestrate and provision Junos virtual machines with Vagrant
Stars: ✭ 14 (-39.13%)
Mutual labels:  vagrant
ubuntu-vagrant
Ubuntu Linux Vagrant Base Box (https://app.vagrantup.com/rgl)
Stars: ✭ 25 (+8.7%)
Mutual labels:  vagrant
nomad-demo
Vagrant based demo setup for running Hashicorp Nomad
Stars: ✭ 88 (+282.61%)
Mutual labels:  vagrant
developer-ci-benefits
Talk docs—includes CI (Continuous Integration) benefits, description, and setup tips 💡💪
Stars: ✭ 29 (+26.09%)
Mutual labels:  talk
Kontainerd
Creating a kubernetes kubeadm cluster using Vagrant machines as nodes and Containerd as a container runtime
Stars: ✭ 16 (-30.43%)
Mutual labels:  vagrant
vvv-multisite
[DEPRECATED] please see https://github.com/Varying-Vagrant-Vagrants/custom-site-template
Stars: ✭ 31 (+34.78%)
Mutual labels:  vagrant
IATI.cloud
The open-source IATI datastore for IATI data with RESTful web API providing XML, JSON, CSV output. It extracts and parses IATI XML files referenced in the IATI Registry and powered by Apache Solr.
Stars: ✭ 35 (+52.17%)
Mutual labels:  vagrant
web-dev-blog
Мой блог на русском
Stars: ✭ 99 (+330.43%)
Mutual labels:  vagrant
docker-hands-on-guide
Hands on guide for docker, k8s cluster lightweight virtualization.
Stars: ✭ 25 (+8.7%)
Mutual labels:  vagrant
vagrant cloud
Vagrant Cloud API wrapper for Ruby
Stars: ✭ 16 (-30.43%)
Mutual labels:  vagrant
writing-dsls
Talk slides / resources for writing domain specific languages in Swift
Stars: ✭ 32 (+39.13%)
Mutual labels:  talk
misp-vagrant
Deploy MISP Project software with Vagrant.
Stars: ✭ 37 (+60.87%)
Mutual labels:  vagrant
dev-with-docker-on-ubuntu
After fighting with Docker on OSX and the need for 2-way syncs, fsevents, etc. I developed a desire to get back to a simple(r) development environment on a linux based VM. This project is a jumping off point.
Stars: ✭ 25 (+8.7%)
Mutual labels:  vagrant
talks
Source for all talks I've presented at various conferences
Stars: ✭ 12 (-47.83%)
Mutual labels:  talk

Very much DEPRECATED now, for the record only.

Package a Symfony2 application using Docker

This repository was created to host some of the resources referred to in the following slideshow

Développer et packager votre application Symfony2 avec Docker et Vagrant

Installation

git clone https://github.com/thierrymarianne/symfony2-docker-vagrant.git

Build and run containers using shell script

For Linux users

Follow installation instructions for your distribution

https://docs.docker.com/installation

Run the build shell script from wherever this project has been cloned

# You need to be a privileged user in order to execute docker command
sudo /bin/bash -c 'cd ./build/shell && source build.sh'

For MacOSX / Windows users

Install Vagrant by following instructions

https://www.vagrantup.com/downloads.html

Install VirtualBox by downloading its latest release available for your operating system

http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html?ssSourceSiteId=otnjp

Install Docker by provisioning a vagrant box using shell and puppet

# Download a vagrant box and install Docker (plus some development tools)
vagrant up

# Access the vagrant box
vagrant ssh

Run the shell script as a privileged user (having permissions to access docker socket)

sudo /bin/bash -c 'cd /vagrant/build/shell && source build.sh'

Testing your application and services are running from within the symfony-standard container

After entering your application container, your shell shall look like this

root@<CONTAINER_ID>:/#

Test the availability of Elasticsearch

curl -XGET 'http://'$SYMFONY__ELASTICSEARCH__PORT_9200_TCP_ADDR':9200

Test the availability of Not Found page served by Symfony standard edition via nginx / php-fpm

curl -XGET http://127.0.0.1

Build and run containers using fig

Using vagrant

# After having provisioned the same box used in the context of using the shell script above
vagrant ssh

sudo /bin/bash -c 'cd /vagrant/build/fig && fig up'

FAQ

Provisioning with puppet might fail when the project directory can not be shared for some reason.

Shared folders that Puppet requires are missing on the virtual machine.
This is usually due to configuration changing after already booting the
machine. The fix is to run a `vagrant reload` so that the proper shared
folders will be prepared and mounted on the VM.

Execute the following command whenever this error would be occurring

vagrant reload --provision
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].