A ShrinkWrap Descriptors implementation for Dockerfiles
DockerDescriptor descriptor =
Descriptors.create(DockerDescriptor.class)
.from("jbossforge")
.user("George");
System.out.println(descriptor.exportAsString());
Yields the following output:
FROM jbossforge
USER George
Add the following dependencies to your pom.xml:
<!-- Docker Descriptors API -->
<dependency>
<groupId>org.jboss.shrinkwrap.descriptors</groupId>
<artifactId>shrinkwrap-descriptors-api-docker</artifactId>
<version>1.0.0-alpha-2</version>
</dependency>
<!-- Docker Descriptors Implementation -->
<dependency>
<groupId>org.jboss.shrinkwrap.descriptors</groupId>
<artifactId>shrinkwrap-descriptors-impl-docker</artifactId>
<version>1.0.0-alpha-2</version>
<scope>runtime</scope>
</dependency>