From edd3c7dd44396a9a5c08f84d6a24cea07eeda092 Mon Sep 17 00:00:00 2001 From: Justin McCarthy Date: Sat, 16 Mar 2019 00:20:46 -0700 Subject: [PATCH] prep port exposure from docker --- Dockerfile | 5 ++++- Makefile | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e3308f2..337b754 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,10 @@ MAINTAINER Comply RUN apt-get update -y \ && apt-get install -y curl -ENV COMPLY_VERSION "1.3.7" +ARG COMPLY_VERSION +ENV COMPLY_VERSION ${COMPLY_VERSION:-1.4.0} + +EXPOSE 4000/tcp # install comply binary RUN curl -J -L -o /tmp/comply.tgz https://github.com/strongdm/comply/releases/download/v${COMPLY_VERSION}/comply-v${COMPLY_VERSION}-linux-amd64.tgz \ diff --git a/Makefile b/Makefile index c350838..e65999b 100644 --- a/Makefile +++ b/Makefile @@ -111,6 +111,9 @@ minor-release: release-env minor release $(eval VERSION := $(shell git describe --tags --always --dirty="-dev")) curl -X POST --data-urlencode 'payload={"channel": "#release", "username": "release", "text": "comply $(VERSION) released", "icon_emoji": ":shipit:"}' https://hooks.slack.com/services/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 +docker-release: + docker build --build-arg COMPLY_VERSION=`cat VERSION` -t strongdm/comply . + patch: clean gitsem gitsem -m "increment patch for release (via Makefile)" patch git push