Skip to content

CornerGeeks/docker-intro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Some Dockerfiles for learning

#################################################

apache

#################################################

  • Build image from Dockerfile
    cd apache 
    docker build -t devfest/apache .
    cd ..
  • Build image from Dockerfile
	docker run -d -p 8000:80 -v "`pwd`/www":/var/www/html devfest/apache 

	http://localhost:8000/index.php

#################################################

mysql

#################################################

	docker run --name mysqlserver -e MYSQL_ROOT_PASSWORD=password -d mysql
  • Start Apache container (specified above) and link to this MySQL container
	docker run -d --link mysqlserver:db -p 8000:80 -v "`pwd`/www":/var/www/html devfest/apache 
  • Test with localhost:8000/mysql.php

#################################################

bepsoke slides : self contained slide deck

similar to application deployment

#################################################

  • Build image from Dockerfile
	cd bespoke
	docker build -t devfest/bespoke .
	cd ..
  • Build image from Dockerfile
	docker run -p 8080:8080 -p 35729:35729 devfest/bespoke
  • Test with localhost:8080

#################################################

node : Flow for provisioning your own container

#################################################

  • Build image from Dockerfile
	cd node
	docker build -t devfest/node .
	cd ..
  • Go back to root directory and map slides to /slides
    docker run -ti -p 8080:8080 -p 35729:35729 -v "`pwd`/slides":/slides devfest/node bash

-In container. Clone repo, get dependencies and run

	cd /slides
	git clone https://github.com/markdalgleish/presentation-tabs.git .
	npm install
	bower install --allow-root
	gulp serve
  • Test with localhost:8080

  • Test livereload by editing slides/src/index.jade

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages