Skip to content

Commit 7743fca

Browse files
committed
add IBM Cloud host
v2.0
1 parent 52f98e7 commit 7743fca

File tree

16 files changed

+59
-0
lines changed

16 files changed

+59
-0
lines changed

.gitignore

100644100755
File mode changed.

Dockerfile

100644100755
File mode changed.

LICENSE

100644100755
File mode changed.

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: gunicorn app:app --log-file -

README.md

100644100755
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This app is designed to run in different ways:
1010
1. As a standalone app running on your machine
1111
2. As a Docker container running locally
1212
3. As a Docker image published in Docker Hub
13+
4. As an application hosted by [IBM Cloud](https://https://www.ibm.com/cloud)
1314

1415
## 1. As a standalone app
1516

@@ -37,5 +38,21 @@ Access the running app in a browser at the URL written to the console (most like
3738
Docker Hub is a free service to publicly store available images.
3839
1. you need to install only [Docker](https://www.docker.com/)
3940
2. just run `docker run -d -p 8080:5000 --name flask ahmnouira/flask-hello-world`
41+
4042
![my_doker_hub](/img/docker_hub.png)
4143

44+
## 4. As an application hosted by IBM Cloud
45+
:octocat: Befor you begin:
46+
47+
* [IBM Cloud account](https://cloud.ibm.com/registration)
48+
* install [IBM Cloud CLI](https://cloud.ibm.com/docs/cli?topic=cloud-cli-getting-started) by running `curl -sL https://ibm.biz/idt-installer | bash`
49+
50+
1. clone the repository by running `git clone https://github.com/AhmNouira/flask-hello-world`
51+
2. `cd flask-hello-world`
52+
2. run `bx login` to login to your IBM cloud account and enter your email and password
53+
3. `bx target --cf ` to target the Cloud Foundary
54+
4. `bx cf push` to push the application to IBM Cloud
55+
5. if you found any error run `bx cf logs <your-app-name> --recent ` to see the troubleshoot
56+
57+
![ibm_cloud](/img/ibm_cloud.png)
58+

app.py

100644100755
File mode changed.

boot.sh

100644100755
File mode changed.

img/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
### This folder contains the images for _master_ branch

img/docker_hub.png

100644100755
File mode changed.

img/hello_ahmed.png

100644100755
File mode changed.

0 commit comments

Comments
 (0)