Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 920 Bytes

README.asciidoc

File metadata and controls

42 lines (34 loc) · 920 Bytes

descriptors-docker

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

Installation

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>