Skip to content

Commit

Permalink
task(post_bosh_deploy): switch to cf-cli image
Browse files Browse the repository at this point in the history
To be able to use other tools based on dynamically linked binary, we
 switch to cf-cli image. Indeed, it doesn't work with curl-ssl container
 because Alpine uses musl-libc.

The `libc6-compat` package provides `ld-linux-x86-64.so.2` which enables
 glibc linked binaries to work. Another commit will follow to make this
 work for 64bit binaries on Alpine <= 3.5

See https://github.com/alphagov/paas-docker-cloudfoundry-tools/commits/master/cf-cli/Dockerfile
  • Loading branch information
o-orand committed Nov 29, 2017
1 parent 1dbc7a0 commit 7408bef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion concourse/tasks/post_bosh_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ platform: linux
image_resource:
type: docker-image
source:
repository: governmentpaas/curl-ssl
repository: governmentpaas/cf-cli
inputs:
- name: scripts-resource
- name: template-resource
Expand Down
10 changes: 10 additions & 0 deletions spec/tasks/post_bosh_deploy/task_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@

describe 'post_bosh_deploy task' do

context 'Pre-requisite' do
let(:task) { YAML.load_file 'concourse/tasks/post_bosh_deploy.yml' }

it 'uses alphagov cf-cli image' do
docker_image_used = task['image_resource']['source']['repository'].to_s
expect(docker_image_used).to match('governmentpaas/cf-cli')
end

end


context 'when no script is detected' do

Expand Down

0 comments on commit 7408bef

Please sign in to comment.