↓ Skip to main content

Posts

2016

WebSphere Liberty on IBM Containers: Part 2

WebSphere Liberty on IBM Containers: Part 2

Deploying an Application # In the first part of this series we looked at how to get started running a WebSphere Liberty image in IBM Containers using the Bluemix console. The container was just running an empty Liberty server. In this post we’ll look at building and deploying an image that adds an application. I was originally intending to stick to using the browser for this post but I think it’s actually easier to do this from the command line. I’m going to assume that you already have Docker installed locally, either natively on Linux, via Docker Machine, or via the Docker for Mac/Windows beta.
Climbing and Cones

Climbing and Cones

·2 mins
Emma’s had a prolonged birthday this past week. Last weekend was her party with Emma and seven friends from school heading to the climbing wall at St Mary’s Leisure Centre in Southampton. (The traffic getting in to Southampton was a nightmare. We’re not sure whether it was the presence of the world’s largest cruise liner or Peter Andre that was pulling in the crowds!) After the initial briefing Emma scampered up to the top of the wall without too much difficultly. If we’d placed bets on which of the other girls would be slightly more reluctant then we’d have made a healthy profit! The instructor was very good though, encouraging them on but not pushing them if it was clear they just wanted to come back down. Everyone enjoyed the last part spent in the bouldering room.
WebSphere Liberty on IBM Containers: Part 1

WebSphere Liberty on IBM Containers: Part 1

Getting Started # I wanted write a few blog posts as I explored deploying our WebSphere Liberty Docker image on to third-party cloud platforms but this didn’t really feel fair given that I haven’t written anything here about the options using IBM’s cloud platform! So, to kick things off, here’s a series of posts on using Liberty with the IBM Containers service in Bluemix. In this post I’m going to focus on using the web UI to get a simple Liberty container up and running. In subsequent posts I’ll cover topics such as deploying an application, scaling applications and using the command line.

Two Days with Uncle Bob

·3 mins
I’ve been lucky enough to spend the past two days in the presence of Robert C. Martin a.k.a. Uncle Bob for his Clean Code workshop at Skills Matter in London. I arrived at the very last-minute having decided to try out a Santander Cycle for the first time, only to discover that the promised docking station next to Code Node has disappeared under road works.
British Birthday

British Birthday

·2 mins
For the Bank Holiday weekend we headed to the British Orienteering Champs at Brown Clee in Shropshire. We arrived in glorious sunshine on Saturday morning but this soon turned to hail as we climbed up the hill to the assembly area. We were very grateful that a club mate had already erected the club tent as the hail came and went for most of the afternoon.
Active Weekend

Active Weekend

·1 min
It’s been an active weekend in the Currie household. On Saturday morning we made the trek over to Staunton Country Park for the second in SOC’s Solent Summer Series. Buoyed by just receiving the SOC Junior Women’s trophy for 2015 (although she was quick to point out that she didn’t have much competition, Emma was happy to go out on the yellow with Christine and a grumpy Duncan in tow. I went out on the light green which was more than a little muddy in places. Rob Finch managed to turn the tables from Fleming Park pipping me to first place by 14 seconds.

ES2015 in Production

·1 min
Bård Hovde gave tonight’s Developer South Coast presentation on the subject of “ES2015 in Production” (or “ES6 in Production” if you must). You can find the slides here with the source for the presentation over on Bård’s GitHub account. He did a great job of making the subject matter entertaining. Beyond being able to say goodbye to all of that boilerplate, my main takeaway was the use of Babel for transpiling ES2015 into ES5, so no excuses about waiting for browser compatibility! The Babel site also has a nice overview of ECMAScript 2015 features.

docker logs and stderr

·2 mins
As part of a script that I was writing today I was attempting to count the number of times that a containerised Liberty server had started. I started with the following command: docker logs test | grep "CWWKF0011I" | wc -l (where CWWKF0011I is the code for Liberty’s “ready to run a smarter planet” message) but it was giving me an answer one greater than I anticipated. Stripping off the line count at the end quickly showed why: in addition to the messages that I was expecting, grep also appeared to be returning an error message from the logs. It took me a little while longer to get my head around what was going on. grep wasn’t passing the error at all. Indeed, the error wasn’t even getting as far as grep. Instead, docker logs was trying to be helpful and recreating the stdout and stderr streams from the container; stdout was getting piped to grep, and stderr, where Liberty was outputting its error message, was just going straight to the console. This was also going to cause me a headache elsewhere when I was actually trying to grep for errors.

Book Review: Docker Containers: Build and Deploy with Kubernetes, Flannel, Cockpit, and Atomic

·3 mins
I’m slowly working my way through the list of Docker publications that I stacked my tablet with when IBM restarted its subscription to Safari Books Online. One of these was Docker Containers: Build and Deploy with Kubernetes, Flannel, Cockpit, and Atomic by Christopher Negus. The last two projects in the title are a clue to the underlying theme of the book. Cockpit and Atomic being Red Hat projects, this is really a guide to doing containers the Red Hat way. This I was expecting - they do employ the author after all. What really disappointed me was that the four technologies cited in the title occupied so little of the book’s content. Of the 18 chapters, there was one on Super Privileged Containers (an Atomic concept), one on Cockpit, two on Kubernetes, and one paragraph on Flannel. Hardly comprehensive coverage!
Docker for Mac Beta

Docker for Mac Beta

·3 mins
I was excited to see Docker announce a beta for ‘native’ support for Docker on Windows and Mac where ’native’ means that Docker appears as a native application utilising built-in virtualisation technology (Hyper-V on Windows and a project called xhyve on Mac) rather than requiring Virtual Box. Sadly this isn’t much use to me at work where I run the corporate standard Windows 7 on my laptop and Linux on my desktop. (The Register had an article indicating that, although Windows 7 is declining in the enterprise, its market share is still 45%+ so I hope Docker don’t do anything rash like ceasing to develop Docker Toolbox.) I do have a Mac at home though so I signed up for an invite.
Start of Summer Series

Start of Summer Series

·1 min
Today was the start of SOC’s Summer Series of events at Fleming Park. Christine cycled down early to spectate the parkrun (her calf is currently knackered) and then the rest of us joined her.
It's a Hard life

It's a Hard life

·2 mins
I was on child minding duty today. We had to pick up a parcel from the UPS depot in Southampton so decided to carry on to Buckler’s Hard, the maritime museum and old ship-building hamlet on the Beaulieu estuary; somewhere I haven’t previously been in my 17+ years in Southampton.
Back to the Brecons

Back to the Brecons

·3 mins
For the first week of the Easter holidays we returned to the same cottage that we stayed at two years ago for the JK (having decided not to go up to the JK in Yorkshire this year). It was an action packed week with walking, running, cycling, swimming, canoeing and climbing, with a fair amount of dodging showers thrown in for good measure!

2015

Docker London December

·2 mins
Last night I headed up to London for the December meetup of Docker London. The evening didn’t get off to a great start as I managed to cycle over a screw on the way to the station. Despite this, and the subsequent efforts of the Jubilee Line, I did just make the start in time.
DockerCon Europe 2015: Day 2

DockerCon Europe 2015: Day 2

·2 mins
It was another early start on Day 2 of the conference. It’s not often I leave the hotel before breakfast starts, but fortunately breakfast was being served in the expo hall so I could refuel whilst on duty.
DockerCon Europe 2015: Day 1

DockerCon Europe 2015: Day 1

·2 mins
I was lucky enough to be a part of the IBM contingent attending last week’s DockerCon Europe in Barcelona. I had to earn my keep by manning the Code Rally game on the IBM booth (not to mention lugging a suitcase full of laptops to the event and porting the server-side of the game to run on IBM Containers). I did get to attend the sessions though and soak up the atmosphere.

Classic Burley

·2 mins
Yesterday was the first Sunday of November which can only mean one thing: the November Classic. We were down to help on the start. Christine was down to run first and I was on duty calling out names (always an embarrassing job when you can’t remember the names of people you’ve known for decades!). As is usually the case with SOC, the start was well staffed and the children weren’t needed so they sat in their folding chairs and read (something that Duncan wouldn’t have been able to do a year ago). The mist took a while to burn off but it was otherwise dry and the autumn colours were lovely.

Book Review: Docker in Production

·3 mins
I picked up a copy of Docker in Production - Lessons from the Trenches during a recent O’Reilly sale, hoping to pick up some tips to pass on to customers that I work with. I have to say that I was disappointed! It’s not that the book isn’t full of useful information. It is. After a good start, it just failed to deliver on the title for me.
Visiting the Cornish Cousins

Visiting the Cornish Cousins

·2 mins
It’s half term this week and things got off to a flying start with a trip to see the Cornish cousins. Our arrival was timed perfectly weather-wise. Having stopped in Exeter on Friday night we arrived around lunchtime on Saturday, just as the skies began to clear and the afternoon was spent paddling around on the river in the sunshine. We could just about squeeze the eight of us in to Ian and Sarah’s open canoe and a friend’s kayak. We didn’t get very far but everyone enjoyed themselves. The kids particularly liked picking rubbish out of the water! Christine also made the most of having squeezed herself in to a wetsuit and went for a dip in the water afterwards. She struggled a bit with keeping her feet underwater though!
Last minute half

Last minute half

·2 mins
Christine had entered the Clarendon Half Marathon this year but, as the day approached, her achilles was still playing up and, with a week to go, she transferred her entry to me. Stood on the start line I was in something of a quandry as how to tackle the race: I had done no preparation this time but last time I had run I had won! On top of this, the first 1km is the flattest of the course so you can’t waste it easing yourself in. As it was, I set off somewhere near the back of the top 10 and at a pace which didn’t feel excessively fast.