Skip to content

Commit

Permalink
update cf download URL, freeze autopilot URL
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Suraci <[email protected]>
  • Loading branch information
vito committed Jan 24, 2019
1 parent 32d7a1d commit 91665a5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 91665a5

Please sign in to comment.