Skip to content

Commit 5281041

Browse files
author
mikespub
committed
update with Docker Compose
1 parent ea6a4bd commit 5281041

2 files changed

Lines changed: 30 additions & 13 deletions

File tree

README.md

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
## quickstart-python
22

3-
[![Deploy to Tutum](https://s.tutum.co/deploy-to-tutum.svg)](https://dashboard.tutum.co/stack/deploy/)
3+
A simple Python app (using Flask) which can easily be deployed to Docker.
44

5-
A simple Python app (using Flask) which can easily be deployed to Tutum.
6-
7-
This application support the [Getting Started with Python](https://support.tutum.co/support/solutions/folders/5000171774) on Tutum article - check it out.
5+
This application support the [Getting Started with Python](https://docs.docker.com/compose/gettingstarted/) on Docker article - check it out.
86

97
### Running locally
108

119
```
12-
$ git clone https://github.com/tutumcloud/quickstart-python.git
13-
$ cd quickstart-python
10+
$ git clone https://github.com/mikespub-org/docker-quickstart-python.git
11+
$ cd docker-quickstart-python
1412
$ docker build --tag quickstart-python .
15-
$ docker run -d -p 80 quickstart-python
13+
$ docker run -d -p 5080 quickstart-python
1614
```
1715

1816
Alternatively, you can run the dockerized version:
1917

2018
```
21-
$ docker run -d -p 80 tutum/quickstart-python
19+
$ docker run -d -p 5080 mikespub/quickstart-python
2220
```
2321

2422
Your app should now be running:
@@ -28,13 +26,31 @@ curl 192.168.59.103:49153
2826
Hello World!</br>Hostname: ebf2b5258db0</br>Counter: Redis Cache not found, counter disabled.
2927
```
3028

31-
### Deploying to Tutum
29+
### Deploying with Docker Compose
30+
31+
[Install Docker Compose.](https://docs.docker.com/compose/install/)
32+
33+
```
34+
$ docker-compose up
35+
```
36+
37+
### Building with Docker App
38+
39+
[Install Docker App.](https://github.com/docker/app#installation)
40+
41+
```
42+
$ docker app init --compose-file docker-compose.yml python-app
43+
$ docker app build . -f python-app.dockerapp -t mikespub/python-app:0.1.0
44+
$ docker app push mikespub/python-app:0.1.0
45+
$ docker-compose up
46+
```
47+
48+
### Deploying with Docker App
3249

33-
[Install the Tutum CLI.](https://support.tutum.co/support/solutions/articles/5000049209-installing-the-command-line-interface-tool)
50+
[Install Docker App.](https://github.com/docker/app#installation)
3451

3552
```
36-
$ tutum login
37-
$ tutum service run tutum/quickstart-python
53+
$ docker app run mikespub/python-app:0.1.0
3854
```
3955

40-
**Continue with this tutorial [here](https://support.tutum.co/support/solutions/folders/5000171774).**
56+
**Continue with this tutorial [here](https://docs.docker.com/compose/gettingstarted/).**

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version: '3'
22
services:
33
web:
44
build: .
5+
image: mikespub/quickstart-python
56
links:
67
- redis
78
ports:

0 commit comments

Comments
 (0)