From b5fb099c834e69359193cbd3e5893fd10d7586ab Mon Sep 17 00:00:00 2001 From: Mike Conway Date: Wed, 8 Aug 2018 10:54:37 -0400 Subject: [PATCH] #1 docker builds --- Dockerfile | 4 +--- README.md | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 76c93a3..b62ecd3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,7 @@ LABEL maintainer="michael.c.conway@gmail.com" LABEL description="iRODS Metadata Template REST endpoint" ADD runit.sh / -ADD metadata-template-rest.jar / +ADD target/metadata-template-rest.jar / CMD ["/runit.sh"] - - # build: docker build -t diceunc/metadata-template-rest:latest . diff --git a/README.md b/README.md index c6b9c48..25266af 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,21 @@ # irods-ext-metadata-template-service irods-ext based metadata template service + + + +### Building + +This is a spring boot application run as a single executable jar, therefore, to build for docker packaging, run + +``` +mvn package spring-boot:repackage + +``` + +The docker image can be build using the provided Dockerfile at the root of this repo using a command such as + +``` +docker build -t diceunc/metadata-template-rest:latest . + +``` +