TL;DR You can now take your Docker images for WebSphere Application Server Full and Liberty Profile into production and get support. We’ve provided some resources to build production Liberty images and made them available on WASdev GitHub.
In case you missed it, tucked away in our February announcement was a statement indicating that we now fully support the use of both the Liberty Profile and Full Profile of WebSphere Application Server running inside Docker containers. This means that, when using WebSphere under Docker, you can get the same level of support that you would get on any of our other supported platforms. That’s regardless of whether you’re using one of the images described below or whether you created it yourself.
Images on Docker Hub
We released our image on Docker Hub back in December which can be pulled from the official repository websphere-liberty. This currently points to our latest 8.5.5 fix pack and, whilst always free for development usage, as of 184.108.40.206 you can also use this in test/production providing you stay below a total of 2GB heap size across your organisation as outlined in Tom’s post. This was recently joined by a second image containing our latest monthly Liberty beta, available as websphere-liberty:beta, giving you quick and easy access to the latest Java EE 7 features on your favorite application server!
Don’t forget that you aren’t limited to the features that are built in to the image. You can always add layers to the image pulling in other features from the online Liberty repository. For example, the following simple Dockerfile could be used to build an image that adds in the MongoDB feature.
FROM websphere-liberty RUN featureManager install --acceptLicense mongodb-2.0
Building Images for Development and Production Use
If you have purchased WebSphere Liberty we now give you two routes to quickly and simply create a Docker image with a production license. This means that you can get consistency across environments by building an image in development and then running that unmodified in production. The two options are as follows:
- Upgrade the image from Docker Hub to Liberty Base or ND: If entitled, on Passport Advantage you can now download small, executable JAR files that will allow you to upgrade a developer install to Liberty Base or ND (search for part number CN4Y6ML and CN4Y7ML respectively). We have made available documentation and a Dockerfile on WASdev GitHub that allow you to very simply create a small layer on top of the Docker Hub image that gives you a fully licensed Liberty Base or ND image.
- Build your own Liberty Core, Base or ND image: If you’d rather not start with our Docker Hub image, or want to create a Liberty Core image, we have also provided Dockerfiles to allow you to build your own using Liberty binaries from Passport Advantage and an IBM JRE from developerWorks. On WASdev GitHub we’ve documented two approaches depending on whether or not you’re prepared to host the binaries somewhere to pull them in to the image (which results in a smaller image size). Feel free to edit this Dockerfile to meet your own needs, for example if you’d rather pick a different base operating system image to start from.
Let us know what other resources you’d like to see around WebSphere and Docker. Just leave a comment below or open an issue on GitHub.