Part 7: Creating a Latest Stock Ticker News Microservice

In our series we have constructured two microservices. The first would submit a string of text, or a message, to IBM Watson’s tone analysis service and report back tonal analytics based on the input. The second microservice would accept a URL and return a text scrape of the content of that page. Continue reading Part 7: Creating a Latest Stock Ticker News Microservice

Docker Images of Microservices added to Docker Hub

Just a quick post for those of you that have been following the Microservices with Watson, Python, Docker, and Go – I have added images to the Docker Hub repository. You can now pull down the microservices and deploy them with out having to do anything other than a ‘docker run’

Tone Analysis Docker

https://hub.docker.com/r/allengeer/toneanalysis/

Web Content Extractor and Scraper Docker

https://hub.docker.com/r/allengeer/scraper/

Part 5: Making Watson Microservice using Python, Docker, and Flask

Creating a Python Microservice using Flask

We already have a Python application we wrote back in part 3.  This application takes in a text string and submits the text to IBM Watson to return an analysis of the text. The next step in building our application would be to take this piece of code and turn it into a Microservice.

The first step of creating a microservice from our code is to expose the functionality through some sort of interface. We will use Flask to expose our functionality via a HTTP (1.1. we will work on a 2.0 architecture update in a future post). Additionally we will set our BlueMix credentials from environment variables where the Python is executed. Continue reading Part 5: Making Watson Microservice using Python, Docker, and Flask