---
platform: linux

image_resource:
  type: docker-image
  source:
    repository: centos
    tag: "6"
inputs:
- name: ccp_src
- name: cluster_env_files
- name: gpdb_src

params:
  SECOND_BINARY_INSTALL_LOCATION:

run:
  path: bash
  args:
  - -c
  - |
    set -ex
    ccp_src/aws/setup_ssh_to_cluster.sh
    ssh mdw "mkdir -p /home/gpadmin/cluster_env_files"
    scp cluster_env_files/hostfile_all mdw:/home/gpadmin/cluster_env_files/hostfile_all
    ssh -t mdw "export SECOND_BINARY_INSTALL_LOCATION=$SECOND_BINARY_INSTALL_LOCATION && bash /home/gpadmin/gpdb_src/concourse/scripts/gppkg_behave.sh"


---
platform: linux

image_resource:
  type: docker-image
  source:
    repository: pivotaldata/ccp
    tag: "7"

inputs:
- name: ccp_src
- name: cluster_env_files
- name: gpdb_src

params:
  SECOND_BINARY_INSTALL_LOCATION:

run:
  path: bash
  args:
  - -c
  - |
    set -ex
    ccp_src/aws/setup_ssh_to_cluster.sh
    ssh mdw "mkdir -p /home/gpadmin/cluster_env_files"
    scp cluster_env_files/hostfile_all mdw:/home/gpadmin/cluster_env_files/hostfile_all
    ssh -t mdw "export SECOND_BINARY_INSTALL_LOCATION=$SECOND_BINARY_INSTALL_LOCATION && bash /home/gpadmin/gpdb_src/concourse/scripts/gppkg_behave.sh"


Use CCP base image for CCP related task
Use CCP base image for CCP related task

With the removal of installation of base packages in
setup_ssh_to_cluster in CCP 1.4.4, the gppkg job's assumption
on those base packages being installed, specifically openssl,
were broken.

Either the jobs task can install the package on the base centos 6 image
it was using on every execution, or we can just use the ccp image that
has them preinstalled.

Signed-off-by: Kris Macoskey <02d17b27bd81bba87d36066114b34c9a266751ac@pivotal.io>
