BT

InfoQ Homepage News Docker Publishes Official Repositories for Language Stacks

Docker Publishes Official Repositories for Language Stacks

Bookmarks

Docker has added new official repositories for language stacks to the Docker Hub, including C/C++, Java, Python or Ruby.

The list of official repositories was initially announced back in June at DockerCon with CentOS, Ubuntu and Fedora images amongst others, mostly operating systems and popular servers. Based on user feedback and popular demand, Docker has added official repositories for several language stacks:

Each of the repositories includes multiple tags and aliases to help select the correct version. The Java repository for instance, includes images for Java 6 java:6b32, 7 java:7u65 and 8 java:8u40, including patch versions, such as java:7u60, and aliases java:6, java:7 and java:8. Note that, although useful for development, using one of such aliases may cause unintended upgrades when run in a different machine, in the same way as using the latest tag, as Docker would pull the latest image available at that moment. For example docker pull java:7 will result in a different image when a new Docker image for the next patch version of Java 7 is published.

Most of the images derive from Debian base images, Jessie, Wheezy or Sid, or from buildpack-deps, an image that includes a large number of development header packages needed by various things like RubyGems or PyPI modules. The source Dockerfiles can be found under the docker-library projects on GitHub.

Some of the images include ONBUILD directives to make it easier to deploy applications. For example, when extending ruby:2.1.3-onbuild it will use the Gemfile and Gemfile.lock files in the build directory to install all required gems with bundler into the resulting image system Ruby, without needing to add any extra directive.

Docker also opens the door for anyone to create and maintain official repositories of their own projects, and published some guidelines for getting started and Dockerfile best practices. Requests to add the repository to the Docker Hub can be sent to partners@docker.com.

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.