Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Latest commit

 

History

History
60 lines (41 loc) · 1.57 KB

login-to-pcf.md

File metadata and controls

60 lines (41 loc) · 1.57 KB

Login to Pivotal Cloud Foundry

After you have deployed PCF it's time to use it!

Access Pivotal Operations Manager (Ops Man)

Run the following command from the gcp-pcf-quickstart folder on your deployment machine.

util/env_info.sh opsman

The command will output the URL, username, password to access the Ops Manager web interface.

Access the Cloud Foundry API

1. Retrieve Credentials

Run the following command from the gcp-pcf-quickstart folder on your deployment machine:

util/env_info.sh cf

This will return an identity and password

2. Target Cloud Foundry

cf login --skip-ssl-validation -a https://api.sys.$(ENV_DIR=env/pcf util/terraform_output.sh dns_suffix)

Use the identity from the previous step as the Email and the password from the previous step. Select system for space when prompted.

3. Deploying Your First App

  1. Clone the sample app:
    git clone https://github.com/cloudfoundry-samples/cf-sample-app-spring.git
    cd cf-sample-app-spring
  2. Deploy the app:
    cf push

The last command will output the URL you can use to access the app.

Access the Jumpbox

Run the following command from the gcp-pcf-quickstart folder on your deployment machine.

util/ssh.sh

This command will open an SSH session with the jumpbox deployed to your PCF network.

What's Next?