OpenWhisk is a new event-driven platform that lets developers quickly and easily build feature-rich apps that automatically trigger responses to events. To read more about it view the link below. In this simple example we will explore it it's use from IBM Bluemix by returning Todays date.https://developer.ibm.com/open/openwhisk/Steps
1. Login to Bluemix using http://bluemix.net
2. Click on "Try OpenWhisk
" as shown below
3. Once logged in to the new (more...)
I almost always use the tomcat buildpack within IBM Bluemix for my Java based applications. By default IBM bluemix will use the IBM Liberty buildpack for java apps unless you specify otherwise. The buildpacks on Bluemix can be viewed using "cf buildpacks
" and the tomcat buildpack is referred to as "java_buildpack
So to use the tomcat buildpack in a manifest.yml you would target it as follows
- name: pas-javaapp (more...)
In this example I integrate Twitter Feed with Telstra SMS API to send an SMS based. It is based on the wrapper application which exposes the Telstra SMS API on Bluemix as per a previous Post.http://theblasfrompas.blogspot.com.au/2015/08/integrating-telstra-public-sms-api-into.html
It is assumed you have NodeRed NodeJS application running on Bluemix and are at the Editor as shown below.Steps
1. Drag a "Social -> Twitter
" node onto the editor
2. Double (more...)
We recently announced a seperate CLI for Bluemix known as "Bluemix CLI". You can find out more about it at the following link
The Bluemix command line interface (CLI) provides a set of commands that are grouped by namespace for users to interact with Bluemix. Some Bluemix CLI commands, which are called bx commands, are wrappers of existing cf commands, and others are unique for Bluemix. The information that follows (more...)
The ability to view usage data from a billing perspective on IBM Bluemix Public is available as a REST based API. To use it follow the steps below.
In order to use the API you have to have the Billing Manager Role or be the Account Owner of the organization as shown below.Steps
1. Log into the PUBLIC Bluemix region as shown belowpasapicella@Pas-MacBook-Pro:~$ cf login -u email@example.com -p ***** -o pasapi@au1. (more...)
I needed a community based plugin recently and this is how you would add it to your CF CLI interface.
1. Add Community based REPO as shown below$ cf add-plugin-repo community http://plugins.cfapps.io/
2. Check available plugins from REPO added abovepasapicella@Pas-MacBook-Pro:~/ibm$ cf repo-plugins community
Getting plugins from all repositories ...
name version description
Download Droplet 1.0.0 Download droplets to your local machine
Firehose Plugin 0.8.0 This plugin (more...)
I rarely need to save state within the Servlet Context via an application scope, but recently I did and here is what your controller class would look like to get access to the ServletConext with Spring. I was using Spring Boot 1.3.2.RELEASE.
In short you implement the "org.springframework.web.context.ServletContextAware
" interface as shown below. In this example we retrieve an application scope attribute.
There is now a new command line plugin for IBM containers on Bluemix so you can push and run docker images using CF CLI itself. The steps below show you how to set this up and I use a basic spring boot application as a docker image to test this out.Steps
Take a note of the docker local host IP. In this example it was as follows, as I test my docker image on (more...)