From 8bb0581e32ee4505011f01ee5004ab2ab38bcb77 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Fri, 21 Jun 2019 20:09:06 +0800 Subject: [PATCH] DO NOT MERGE: jitpack based zipkin build So, we should figure out how to cut images mostly for master, but possibly for feature branches also. This is just a dockerfile edit, but maybe helpful to start elaborating what something real might look like. --- zipkin/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zipkin/Dockerfile b/zipkin/Dockerfile index 15c92e5..f562eff 100644 --- a/zipkin/Dockerfile +++ b/zipkin/Dockerfile @@ -14,15 +14,15 @@ FROM alpine -ENV ZIPKIN_REPO https://repo1.maven.org/maven2 -ENV ZIPKIN_VERSION 2.14.2 +ENV USER openzipkin +ENV BRANCH master # Add environment settings for supported storage types COPY zipkin/ /zipkin/ WORKDIR /zipkin RUN apk add unzip curl --no-cache && \ - curl -SL $ZIPKIN_REPO/io/zipkin/zipkin-server/$ZIPKIN_VERSION/zipkin-server-$ZIPKIN_VERSION-exec.jar > zipkin-server.jar && \ + curl -SL https://jitpack.io/com/github/$USER/zipkin/zipkin-server/$BRANCH-SNAPSHOT/zipkin-server-$BRANCH-SNAPSHOT-exec.jar > zipkin-server.jar && \ # don't break when unzip finds an extra header https://github.com/openzipkin/zipkin/issues/1932 unzip zipkin-server.jar ; \ rm zipkin-server.jar && \