ShrinkWrap Descriptors Docker 1.0.0-alpha-1 Released

Since we wrote this post we didn't laze around. Check our latest announcement.

The Arquillian team is proud to announce the 1.0.0-alpha-1 release of the ShrinkWrap Descriptors Docker component!

Shrinkwrap helpers Dockers Dockerfile

This extension provide helpers for creating Dockerfiles via the ShrinkWrap Descriptors spis.

How to use it?

Add the following to your dependencies:

<!-- Docker Descriptors API -->
<dependency>
  <groupId>org.jboss.shrinkwrap.descriptors</groupId>
  <artifactId>shrinkwrap-descriptors-api-docker</artifactId>
  <version>1.0.0-alpha-1</version>
</dependency>

<!-- Docker Descriptors Implementation -->
<dependency>
  <groupId>org.jboss.shrinkwrap.descriptors</groupId>
  <artifactId>shrinkwrap-descriptors-impl-docker</artifactId>
  <version>1.0.0-alpha-1</version>
  <scope>runtime</scope>
</dependency>

Then you can use it by initializing it via the ShrinkWrap Descriptors factory:

DockerDescriptor descriptor = Descriptors.create(DockerDescriptor.class);
descriptor.from().name("jbossforge");
descriptor.user().name("George");
System.out.println(descriptor.exportAsString());

This will produce the following Dockerfile:

FROM jbossforge
USER George

Look out for support for @Deployment of Dockerfile in Arquillian Cube

What is ShrinkWrap Descriptors Docker?

The Shrinkwrap Descriptor project provides an uniformed fluent API for creating and modifying Java EE deployment descriptors on the fly. Starting from the very early JEE 1.3 to the brand new Java EE 7 version, the descriptor project includes almost all official deployment descriptors. Several vendor specific deployment descriptors, mostly JBoss related, are covered as well.

Release details

Component ShrinkWrap Descriptors Docker
Version 1.0.0-alpha-1 view tag
Release date 2015-02-03
Released by George Gastaldi
Compiled against

Published artifacts org.jboss.shrinkwrap.descriptors

  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-api-docker jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-impl-docker jar javadoc pom

Thanks to the following list of contributors: George Gastaldi, Aslak Knutsen