Thursday, March 26, 2015

Using Google Domains to point to Bluemix application

I've been trying to trying to use the new Google domains to point a domain to a web application hosted on IBM Bluemix.  This is how I set it up.  I assume you have a basic understanding of bluemix and the basic structure of organization, spaces and domains.

Setting up a IBM Bluemix Domain.


1) Login to IBM Bluemix console and edit your organization.
  • Bluemix Console --> Manage Organization
  2) Add an new domain for your organization.  For example timbuczak.com



3) Note that the each space within your organization will inherit both the system domain and any custom domains.  In this case the bluemix space 'Dev' is one of the spaces in the organization 'tvb@us.ibm.com'.  This will be important later on.



Setting up your web application in bluemix

 

1) Create a new application from a boiler plate,  In this case, I've created a Java web cache boilerplate and named it myJavaCache.  The default application route (http://myjavascache.mybluemix.net/)  is constructed from the application name and system domain.



2) If you go to the route (http://myjavacache.mybluemix.net/) , it will bring up the application in bluemix.  You can use this application to add name/value pairs.



3) The final step is to update the route for the web application to use your google domain name registration. In this case, I set up a bluemix.timbuczak.com domain in bluemix.



4) Restart your application on bluemix.

Configuring Google Domains.


1) Login to Google Domains (https://domains.google.com/registrar) and set up the DNS entries.  Click on the Configure DNS icon.



 2) Set up a Custom Resource Record for bluemix.timbuczak.com.  The CNAME will create a DNS alias for bluemix.timbuczak.com and forward the request to the myjavacache.mybluemix.net domain.




Testing 

1) It may take a few minutes for the DNS entry to replication, but open up a web browser to:  http://bluemix.timbuczak.com/



It will open up to the web application hosted on bluemix. 






No comments:

Post a Comment