From 91665a5f2ffabd6fd3423db4e87429e665c93651 Mon Sep 17 00:00:00 2001 From: Alex Suraci Date: Thu, 24 Jan 2019 17:43:43 +0000 Subject: [PATCH] update cf download URL, freeze autopilot URL Signed-off-by: Alex Suraci --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3de7d7e..356db26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,8 @@ FROM golang:alpine as builder RUN apk add --no-cache curl jq RUN mkdir -p /assets WORKDIR /assets -RUN curl -L "https://cli.run.pivotal.io/stable?release=linux64-binary&source=github-rel" | tar -xzf - -RUN url=$(curl -s "https://api.github.com/repos/contraband/autopilot/releases/latest" \ - | jq -r '.assets[] | select(.name == "autopilot-linux") | .browser_download_url') &&\ - curl -L "$url" -o /assets/autopilot +RUN curl -L "https://packages.cloudfoundry.org/stable?release=linux64-binary&source=github" | tar -xzf - +RUN curl -L "https://github.com/contraband/autopilot/releases/download/0.0.8/autopilot-linux" -o /assets/autopilot COPY . /go/src/github.com/concourse/cf-resource ENV CGO_ENABLED 0 RUN go build -o /assets/in github.com/concourse/cf-resource/in/cmd/in