Way back when, we used to run RedHat servers at D2. I was even RedHat certified at one point. These days I run Ubuntu locally and Debian (mostly) on the GCP.
But I’ve always had a soft spot for RedHat.
So when I saw that they were offering a free trial of their cloud service I jumped at the chance to give them a spin.
Spin might have been the wrong word.
Unlike the free GCP trial you have to have a little patience with the free OpenShift trial as the provisioning takes a couple of days. But hey, what do you want for nothing?
When I did get a chance to get started with OpenShift it was fairly painless…
I forked the sample Python / Django project from the OpenShift GitHub example. It worked flawlessly, the instructions were clear, and it’s fast. One thing to note if you try this yourself – you’ll want to make a “Route” so that you can access the Django instance with a browser.
Additionally you’ll need to manually clone the repository to your local system.
I got this all setup on the first take except for one mis-step. Before you try and push your changes to github, make sure to change the origin to your own repository, ala:
git remote set-url origin https://github.com/YOURNAME/open_shift_example.git
- make a virtual environment
- pip install -r requirements.txt
- ./manage.py migrate
and you should have a local copy of your OpenShift Project.
Another note – the default Django setup uses SQLite. This is fine for dev / testing, but your data won’t persist across application deployments. The detailed instruction above cover this as well.
OpenShift + Django
Overall getting Django up and running on OpenShift, and synced locally, was about as easy as getting Django set up on the Google Cloud. Which means it was easier than getting Django up on some other cloud providers that shall remain nameless.
It is very responsive; I notice no determinable speed difference compared to the GCP – but I have not run any real tests either.
As to if this is really free – the answer is that the trial is free for sure. I will defer to the official RedHat info beyond that.
If you want to host your Django project on the cloud, and want to avoid Google and the AWS for whatever reasons, I would suggest at least checking out OpenShift. I’ll be posting more on this subject as my little OpenShift test app grows up.