Skip to content
Collection of my docker recipes
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
01_lamp_stack
02_ubuntu_apache_php
03_ubuntu_nginx_php-fpm_phalcon
.gitattributes
.gitignore
README.md
Vagrantfile

README.md

dockerfiles

Collection of my docker recipes

01_lamp_stack

component version
Ubuntu 14.04.4 LTS
Apache2 2.4.7
PHP 5.5.9-1ubuntu4.21
MySQL 14.14 Distrib 5.5.55
phpmyadmin 4.0.10deb1
ssh OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8, OpenSSL 1.0.1f 6 Jan 2014
ezSQL Branch:master

build the container

docker build -t szabacsik/01_lamp:1.0 . --no-cache=true

run the container

docker run -it -p 8080:80 -p 2222:22 -p 33306:3306 szabacsik/01_lamp:1.0

start the services

/opt/services.sh

02_ubuntu_apache_php

Windows 10 Linux Subsystem Ubuntu bash

Set environment variables

$ export DOCKER_HOST=tcp://0.0.0.0:2375
$ export environment_host_volume_source=/mnt/c/Users/[USERNAME]/www
$ export environment_windows_host_volume_source=C:\\Users\\[USERNAME]\\www

Enter to the project folder

$ cd ../dockerfiles/02_ubuntu_apache_php

Build

$ make build

Deploy

$ make deploy

Run

$ make run

Test

$ wget -qO- http://localhost/ | grep -i 'phalcon' | wc -l

Clean up

$ docker rm $(docker ps -a -q); docker rmi $(docker images -a -q); docker system prune -a

Windows 8 mintty ( Docker Quickstart Terminal )

export environment_host_volume_source=\/c\/Users\/andras.szabacsik\/userspace\/cloud\/Dropbox\/Workspaces\/COM0151\/offline\/attached
You can’t perform that action at this time.