Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.41 KB

login-to-pcf.md

File metadata and controls

51 lines (36 loc) · 1.41 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.

What's Next?