Catalogue
Migrating the toda-tocochan-bus Flask app to IBM Bluemix

Migrating the toda-tocochan-bus Flask app to IBM Bluemix

🌐 日本語で読む

I moved from GCP to IBM Bluemix!

How many minutes until the toco-chan bus?

Overview

After moving from Sakura VPS to GCP,
this time I migrated from GCP to IBM Bluemix.

Here is the earlier story from when I was running it on GCP:

On GCP, once I put an LB in front of GKE the price shot up dramatically
and I ended up exceeding the free tier (>_<).

My aim was somehow to keep running it at a low cost.

Why IBM Bluemix instead of Heroku?

The great thing about IBM Bluemix is how feature-rich it is.
You get Kibana for free, available by default.

It also supports integration with Git.

Below I have put together the steps, assuming you are working on a Mac.

Prerequisites

  • Sign up for IBM Bluemix in advance

Signup IBM Bluemix

  • clone
1
2
macOS%$ git clone https://github.com/kenzo0107/toda-tocochan-bus-on-ibmbluemix
macOS%$ cd toda-tocochan-bus-on-ibmbluemix
  • Install the Cloud Foundry CLI
1
2
macOS%$ brew tap cloudfoundry/tap
macOS%$ brew install cf-cli

Deploy

1
2
3
macOS%$ cf api https://api.ng.bluemix.net
macOS%$ cf login
macOS%$ cf push <application name>
  • The API differs depending on the Region.
Region API URL
US South https://api.ng.bluemix.net
United Kingdom https://api.eu-gb.bluemix.net

Conclusion

Thanks to the Cloud Foundry CLI, the migration was easy too ♪

I thought that if I could do things like restricting access to specific IPs or domains for security,
it could be usable as a method for commercial use.

I asked them about that point, but I have not heard back for about two weeks, so I will reach out again.
↑ Questions were English-only!

I hope their support gets strengthened.

That’s all.
I hope this is helpful.

Migrating the toda-tocochan-bus Flask app to IBM Bluemix

https://kenzo0107.github.io/en/2017/10/29/toda-tocochan-bus-flask-on-ibm-bluemix/

Author

Kenzo Tanaka

Posted on

2017-10-29

Licensed under