Skip to content

Commit

Permalink
Change cf installation to use github source
Browse files Browse the repository at this point in the history
Using "cli.run.pivotal.io/stable?release=linux64-binary&source=github"
as the source lead to errors like "chmod: cannot access 'cf': Permission
denied".

ref: https://bosh.ci.cloudfoundry.org/teams/main/pipelines/bosh-bootloader/jobs/bump-bbl-deployment-image/builds/29

Co-authored-by: Nader Ziada <[email protected]>
  • Loading branch information
2 people authored and jpalermo committed Jul 23, 2024
1 parent 384d2a6 commit cd93138
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions ci/dockerfiles/deployment/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,14 @@ RUN wget https://github.com/cloudfoundry-incubator/spiff/releases/download/v1.0.
mv spiff_linux_amd64 /usr/local/bin/spiff && \
chmod +x /usr/local/bin/spiff

RUN curl -L "https://cli.run.pivotal.io/stable?release=linux64-binary&source=github" | tar -zx && \
chmod +x cf && \
mv cf /usr/local/bin/cf
# Install cf
RUN curl -s https://api.github.com/repos/cloudfoundry/cli/releases/latest | \
jq -r '.assets[] | .browser_download_url | select(contains("linux_x86-64"))' | \
xargs wget && \
tar -xvf cf*.tgz && \
rm cf*.tgz && \
mv cf* /usr/local/bin && \
chmod +x /usr/local/bin/cf*

# Install Credhub
RUN curl -s https://api.github.com/repos/cloudfoundry/credhub-cli/releases/latest | \
Expand Down

0 comments on commit cd93138

Please sign in to comment.