Skip to content

Instantly share code, notes, and snippets.

@yogendra
Last active May 24, 2019 11:23
Show Gist options
  • Select an option

  • Save yogendra/ae93888d1be725d911fa5ae93b8ca6a7 to your computer and use it in GitHub Desktop.

Select an option

Save yogendra/ae93888d1be725d911fa5ae93b8ca6a7 to your computer and use it in GitHub Desktop.

Install PCF Dev on Linux

Requirement

  • Ubuntu 18.04+
  • Resource Requirements as per PCF Dev
    • Machine with 16 GB RAM
    • 40 GB Free space
    • Virtualization (Virtualbox, libvirt or Hyper-V)

How to use?

export PIVNET_API_TOKEN=MY-PIVNET-TOKEN
curl https://gist.githubusercontent.com/yogendra/ae93888d1be725d911fa5ae93b8ca6a7/raw/install-pcfdev.sh | sh

echo "Install PCF Dev"
sudo add-apt-repository ppa:openjdk-r/ppa
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
sudo apt-get update
sudo apt-get -qqy install qemu-kvm libvirt-bin libvirt-doc cf-cli openjdk-8-jdk
sudo wget -O /usr/local/bin/pivnet https://github.com/pivotal-cf/pivnet-cli/releases/download/v0.0.58/pivnet-linux-amd64-0.0.58
sudo chmod a+x /usr/local/bin/pivnet
pivnet login --api-token=$PIVNET_API_TOKEN
pivnet dlpf -p pcfdev -r "v1.2.0 for PAS 2.4.4" -g \*linux\* -d .
cf install-plugin -f cfdev
cf dev start -f pcfdev-v1.2.0-linux.tgz
cf login -a api.local.pcfdev.io --skip-ssl-validation -u user -p pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment