@@ -10,6 +10,7 @@ This app is designed to run in different ways:
10101 . As a standalone app running on your machine
11112 . As a Docker container running locally
12123 . 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
3738Docker Hub is a free service to publicly store available images.
38391 . you need to install only [ Docker] ( https://www.docker.com/ )
39402 . 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+
0 commit comments