ShrinkWrap Descriptors Docker 1.0.0-alpha-2 Released

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

Usage improvements

With 1.0.0-alpha-2 we have improved the method chaining so you can write the Dockerfile in a slightly more compact syntax with the help of a few new top level shortcuts:

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

The syntax from 1.0.0-alpha-1 is still valid:

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

And they both produce the same output:

FROM jbossforge
USER George

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-2 view tag
Release date 2015-02-05
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

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