Skip to content

Commit

Permalink
cleanup repo
Browse files Browse the repository at this point in the history
  • Loading branch information
mbentley committed Mar 5, 2015
1 parent ac3ae17 commit b034621
Show file tree
Hide file tree
Showing 21 changed files with 34 additions and 1,565 deletions.
1 change: 0 additions & 1 deletion .dockerignore

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
demo/demo
demo_pq/demo
*.swp
2 changes: 0 additions & 2 deletions demo/Dockerfile

This file was deleted.

65 changes: 0 additions & 65 deletions demo/main.go

This file was deleted.

23 changes: 0 additions & 23 deletions demo/static/css/base.css

This file was deleted.

Binary file removed demo/static/font/LigatureSymbols-2.11.eot
Binary file not shown.
Binary file removed demo/static/font/LigatureSymbols-2.11.otf
Binary file not shown.
1,299 changes: 0 additions & 1,299 deletions demo/static/font/LigatureSymbols-2.11.svg

This file was deleted.

Binary file removed demo/static/font/LigatureSymbols-2.11.ttf
Binary file not shown.
Binary file removed demo/static/font/LigatureSymbols-2.11.woff
Binary file not shown.
1 change: 0 additions & 1 deletion demo/static/font/readme.md

This file was deleted.

98 changes: 0 additions & 98 deletions demo/static/font/style.css

This file was deleted.

1 change: 0 additions & 1 deletion demo/static/img/docker.png

This file was deleted.

Binary file removed demo/static/img/docker_large.png
Binary file not shown.
Binary file removed demo/static/img/docker_small.png
Binary file not shown.
25 changes: 0 additions & 25 deletions demo/templates/db.html.tmpl

This file was deleted.

20 changes: 0 additions & 20 deletions demo/templates/index.html.tmpl

This file was deleted.

Binary file removed demo_pq/demo
Binary file not shown.
24 changes: 0 additions & 24 deletions demo_pq/fig.yml

This file was deleted.

24 changes: 24 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
app:
build: demo_pq
entrypoint: /bin/bash
command: -c "sleep 5 && go-wrapper run" # sleep because the postgres container isn't ready on first start
environment:
- "TITLE=Docker Demo"
- "DB_USER=demo"
- "DB_PASS=demo"
- "DB_NAME=demo"
- "DB_SSL_MODE=disable"
links:
- "db:db"
ports:
- 8080:8080
expose:
- 8080

db:
image: postgres:latest
environment:
- "POSTGRES_USER=demo"
- "POSTGRES_PASSWORD=demo"
expose:
- 5432
14 changes: 9 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
# Docker Demo Application
Original Author: Evan Hazlett (https://github.com/ehazlett/docker-demo)

This is a Go demo application used for demonstrating Docker.

# Demo
The `demo` directory contains the demo application.
The `demo_pq` directory contains the demo application.

## Requirements

## Environment Variables
- Install Docker (https://docs.docker.com/installation/)

* `TITLE`: sets title in demo app
- Install Docker Compose (https://docs.docker.com/compose/)

## Build

`docker build -t docker-demo .`
- `docker-compose build`

## Run

`docker run -P --rm docker-demo`
- `docker-compose up`

0 comments on commit b034621

Please sign in to comment.