Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update base README, point to website #4488

Merged
merged 44 commits into from
Aug 7, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
2989e8b
Fixes #4335: Create Stratos static web site with better documentation
vvaradhan Jul 13, 2020
45cd11c
1) Re-organize some more existing doc files.
vvaradhan Jul 13, 2020
d26b948
Landing Page WIP
nwmac Jul 20, 2020
7181236
Documentation tweaks
nwmac Jul 20, 2020
5b394a0
Use better action names
nwmac Jul 20, 2020
bcb5529
More visual improvements to landing page
nwmac Jul 20, 2020
5741bf9
More doc and landing page improvements
nwmac Jul 22, 2020
7383f69
Remove publish workflow for now
nwmac Jul 22, 2020
208baa0
Typo fix
nwmac Jul 22, 2020
fff9924
Moer documentation improvements
nwmac Jul 22, 2020
2bbb535
Remove extra title from helm doc
nwmac Jul 22, 2020
388245c
Fix script when used from npm
nwmac Jul 22, 2020
796729c
Improve layout on mobile devices
nwmac Jul 22, 2020
17aaf09
More documentation improvements
nwmac Jul 22, 2020
3f093d4
Fix typo
nwmac Jul 22, 2020
fd17825
Merge downstream (#4441)
richard-cox Jul 20, 2020
dd34fc5
Show all favorites for an endpoint favorite if there is only one (#4440)
nwmac Jul 20, 2020
244f9fe
Merge downstream - JSON Viewer with dark mode & Header Fixes (#4444)
richard-cox Jul 20, 2020
9c94d60
Fix issues with tests not running if build upload fails (#4453)
nwmac Jul 21, 2020
56f0389
Improve autoscaler e2e logging (#4456)
richard-cox Jul 21, 2020
a4e14c1
Fix check-e2e-pr.sh for pr's from other repos (#4459)
richard-cox Jul 21, 2020
560b524
Convert Client Secret Input Fields to `password` (#4455)
richard-cox Jul 21, 2020
17f4f11
Insecure tlsv10 and tlsv11 ciphers in Stratos UI, bsc#1173295 (#411) …
richard-cox Jul 21, 2020
de9fb7a
[Security] Bump codecov from 3.7.0 to 3.7.1 (#4457)
dependabot-preview[bot] Jul 21, 2020
85290ad
Bump lodash from 4.17.15 to 4.17.19 (#4452)
dependabot[bot] Jul 21, 2020
e3ae282
Website update: Wed 22 Jul 2020 21:55:00 BST
nwmac Jul 22, 2020
99bd6ad
Website update: Wed 22 Jul 2020 21:56:45 BST
nwmac Jul 22, 2020
71bf0ad
Website update: Wed 22 Jul 2020 21:58:22 BST
nwmac Jul 22, 2020
43ffaf6
Remove dist
nwmac Jul 22, 2020
fa55ff2
FIx deploy script to remove old files
nwmac Jul 22, 2020
7147c81
Moer tidy ups
nwmac Jul 23, 2020
c3c9c73
Add CNAME file when publishing
nwmac Jul 23, 2020
67b08dc
Add talks doc
nwmac Jul 23, 2020
f659099
* Fix broken links due to reorganization of documents
vvaradhan Jul 24, 2020
b9bdeda
* Fix Getting Started broken link in page footer
vvaradhan Jul 24, 2020
fbd53ae
Only publish if there are website changes
nwmac Jul 24, 2020
ca1e052
Merge remote-tracking branch 'origin/master' into website
nwmac Jul 24, 2020
a47e5dd
Remove old doc
nwmac Jul 24, 2020
e4785a6
Publish website on merge
nwmac Jul 24, 2020
8b9dc27
Apply new theming process to acme example
richard-cox Jul 28, 2020
092bf5f
First pass at customization docs, most of themeing done
richard-cox Jul 28, 2020
993a137
Final pass at customization docs
richard-cox Jul 29, 2020
65f2127
Update base README, point to website
richard-cox Jul 31, 2020
a41bcd2
Merge remote-tracking branch 'origin/master' into root-readme-docs
richard-cox Aug 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
* Fix broken links due to reorganization of documents
* Move Troubleshooting content from cloud-foundry deployment doc to
  cf-troubleshooting
  • Loading branch information
vvaradhan committed Jul 24, 2020
commit f65909930645c9d07c28ebd6aa7184d33084790c
4 changes: 2 additions & 2 deletions website/docs/advanced/invite-user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ This action must be performed by an Administrator in Stratos.
1) Use the `Configure` button in the `User Invitation Support` section.
1) Supply the uaa client id and secret and click `Configure`

> Note: If Stratos has been deployed via `cf push` and the steps under the `Pre-configure invite UAA client` header in the [CF deploy guide](../../deploy/cloud-foundry) have been followed, you will not follow these steps for the default CF.
> Note: If Stratos has been deployed via `cf push` and the steps under the `Pre-configure invite UAA client` header in the [CF deploy guide](../deploy/cloud-foundry/cloud-foundry) have been followed, you will not follow these steps for the default CF.

## Configuration for CF Push

Expand Down Expand Up @@ -145,7 +145,7 @@ When developing locally, we recommend using [mailcatcher](https://mailcatcher.me

To install mailcatcher via docker, use the following command: `docker run -d -p 1080:80 -p 1025:25 --name mail tophfr/mailcatcher`. Once mailcatcher is installed, continue to follow the instructions below.

SMTP server details can be set via rhe usual environment variable approach or, when running locally, in the `jetstream/config.properties` file (see Backend Development - Configuration in [developers-guide](../developers/developers-guide)). The config settings, with example values, are as follows:
SMTP server details can be set via rhe usual environment variable approach or, when running locally, in the `jetstream/config.properties` file (see Backend Development - Configuration in [developers-guide](../developer/introduction)). The config settings, with example values, are as follows:

```
SMTP_FROM_ADDRESS=Stratos<test@test.com>
Expand Down
99 changes: 99 additions & 0 deletions website/docs/deploy/cloud-foundry/cf-troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,102 @@ If you have problems when deploying Stratos as a Cloud Foundry application, chec
For information on the default ASGs, see [here](https://docs.cloudfoundry.org/concepts/asg.html#default-asg).

To configure a new ASG for the organization and space that are using Stratos, first create a new ASG definition, for example:

```
[
{
"destination":"0.0.0.0-255.255.255.255",
"protocol":"all"
}
]
```

Save this to a file, e.g. `my-asg.json`.

> Note: this allows example all network traffic on all IP ranges - we don't recommend using this.

Unbind the existing ASG for you organization (`ORG`) and space (`SPACE`) with:

```
cf unbind-security-group public_networks ORG SPACE
```

Create a new ASG using the definition you saved to a file and give it a name, with:

```
cf create-security-group NAME my-asg.json
```

Bind this ASG to your `ORG` and `SPACE` with:

```
cf bind-security-group NAME ORG SPACE
```


## Console fails to start

The Stratos Console will automatically detect the API endpoint for your Cloud Foundry. To do so, it relies on the `cf_api` value inside the `VCAP_APPLICATION` environment variable.
To check if the variable is present, use the CF CLI to list environment variables, and inspect the `VCAP_APPLICATION` variable under `System-Provided`.

```
$ cf env console
Getting env variables for app console in org SUSE / space dev as admin...
OK

System-Provided:


{
"VCAP_APPLICATION": {
"application_id": ...,
"application_name": "console",
"application_uris": ...
"application_version": ...,
"cf_api": "http://api.cf-dev.io",
...
}

No user-defined env variables have been set
...
```

If the `cf_api` environment variable is absent then set the `CF_API_URL` variable. See the following _Setting the `CF_API_URL` env variable in the manifest_ section.


However, if the `cf_api` environment variable is present, and an HTTP address is specified, it is possible that insecure traffic may be blocked. See the following _Setting the `CF_API_FORCE_SECURE` env variable in the manifest_ section.


#### Setting the `CF_API_URL` env variable in the manifest

To specify the Cloud Foundry API endpoint, add the `CF_API_URL` variable to the manifest, for example:

```
applications:
- name: console
memory: 256M
disk_quota: 256M
host: console
timeout: 180
buildpack: https://github.com/cloudfoundry/stratos-buildpack
health-check-type: port
env:
CF_API_URL: https://<<CLOUD FOUNDRY API ENDPOINT>>>
```

#### Setting the `CF_API_FORCE_SECURE` env variable in the manifest

To force the console to use secured communication with the Cloud Foundry API endpoint (HTTPS rather than HTTP), specify the `CF_API_FORCE_SECURE` environment in the manifest, for example:

```
applications:
- name: console
memory: 256M
disk_quota: 256M
host: console
timeout: 180
buildpack: https://github.com/cloudfoundry/stratos-buildpack
health-check-type: port
env:
CF_API_FORCE_SECURE: true
```
106 changes: 3 additions & 103 deletions website/docs/deploy/cloud-foundry/cloud-foundry.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ You will then be able to open a web browser and navigate to the console URL:

Where `<DOMAIN>` is the default domain configured for your Cloud Foundry cluster.

To login use the following credentials detailed [here](access.md).
To login use the following credentials detailed [here](../access).

If you run into issues, please refer to the [Troubleshooting Guide](#troubleshooting) below.
If you run into issues, please refer to the [Troubleshooting Guide](cf-troubleshooting) below.

> The console will pre-configure the host Cloud Foundry endpoint. No other CF instance should be registered unless the instructions in
the section [Associate Cloud Foundry database service](#associate-cloud-foundry-database-service) are followed.
Expand Down Expand Up @@ -159,104 +159,4 @@ applications:

When SSO Login is enabled, Stratos will also auto-connect to the Cloud Foundry it is deployed in using the token obtained during the SSO Login flow.

For more information - see [Single-Sign On](../guides/admin/sso).

```
[
{
"destination":"0.0.0.0-255.255.255.255",
"protocol":"all"
}
]
```

Save this to a file, e.g. `my-asg.json`.

> Note: this allows example all network traffic on all IP ranges - we don't recommend using this.

Unbind the existing ASG for you organization (`ORG`) and space (`SPACE`) with:

```
cf unbind-security-group public_networks ORG SPACE
```

Create a new ASG using the definition you saved to a file and give it a name, with:

```
cf create-security-group NAME my-asg.json
```

Bind this ASG to your `ORG` and `SPACE` with:

```
cf bind-security-group NAME ORG SPACE
```


### Console fails to start

The Stratos Console will automatically detect the API endpoint for your Cloud Foundry. To do so, it relies on the `cf_api` value inside the `VCAP_APPLICATION` environment variable.
To check if the variable is present, use the CF CLI to list environment variables, and inspect the `VCAP_APPLICATION` variable under `System-Provided`.

```
$ cf env console
Getting env variables for app console in org SUSE / space dev as admin...
OK

System-Provided:


{
"VCAP_APPLICATION": {
"application_id": ...,
"application_name": "console",
"application_uris": ...
"application_version": ...,
"cf_api": "http://api.cf-dev.io",
...
}

No user-defined env variables have been set
...
```

If the `cf_api` environment variable is absent then set the `CF_API_URL` variable. See the following _Setting the `CF_API_URL` env variable in the manifest_ section.


However, if the `cf_api` environment variable is present, and an HTTP address is specified, it is possible that insecure traffic may be blocked. See the following _Setting the `CF_API_FORCE_SECURE` env variable in the manifest_ section.


#### Setting the `CF_API_URL` env variable in the manifest

To specify the Cloud Foundry API endpoint, add the `CF_API_URL` variable to the manifest, for example:

```
applications:
- name: console
memory: 256M
disk_quota: 256M
host: console
timeout: 180
buildpack: https://github.com/cloudfoundry/stratos-buildpack
health-check-type: port
env:
CF_API_URL: https://<<CLOUD FOUNDRY API ENDPOINT>>>
```

#### Setting the `CF_API_FORCE_SECURE` env variable in the manifest

To force the console to use secured communication with the Cloud Foundry API endpoint (HTTPS rather than HTTP), specify the `CF_API_FORCE_SECURE` environment in the manifest, for example:

```
applications:
- name: console
memory: 256M
disk_quota: 256M
host: console
timeout: 180
buildpack: https://github.com/cloudfoundry/stratos-buildpack
health-check-type: port
env:
CF_API_FORCE_SECURE: true
```

For more information - see [Single-Sign On](../../advanced/sso).
2 changes: 1 addition & 1 deletion website/docs/deploy/cloud-foundry/db-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Associate a Cloud Foundry database service
sidebar_label: Database service bindings
---

As described in the standard `cf push` instructions [here](../deploy-readme) Stratos, when deployed via `cf push`,
As described in the standard `cf push` instructions [here](cloud-foundry) Stratos, when deployed via `cf push`,
does not contain any way to persist data over application restarts and db entries such as registered endpoints
and user tokens are lost. To resolve this a Cloud Foundry db service can be bound to to it. Run through
the steps below to implement.
Expand Down
2 changes: 1 addition & 1 deletion website/docs/deploy/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ You will need to have both the `kubectl` and `helm` CLIs installed and available

The Stratos Helm chart contains a `README.md` file that contains installation instructions and configuration documentation.

This document is also available in [here](helm-installation).
This document is also available in [here](kubernetes/helm-installation).
6 changes: 3 additions & 3 deletions website/docs/deploy/overview.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
id: deploy-overview
id: overview
title: Deploying Stratos
sidebar_label: Overview
---

Stratos can be deployed in the following environments:

1. Cloud Foundry, as an application. See [guide](cloud-foundry)
1. Cloud Foundry, as an application. See [guide](cloud-foundry/cloud-foundry)
2. Kubernetes, using a Helm chart. See [guide](kubernetes)
3. Docker, single container deploying all components. See [guide](all-in-one)

Expand All @@ -27,7 +27,7 @@ In this case, the front-end web application static resources are served by the A

By defaut, a non-persistent SQLite database is used - by automatically registering the cloud foundry endpoint and connecting to it on login, all data stored in the database can be treated as ephimeral, since it will be re-created next time a user logs in. Cloud Foundry Session Affinity is used to ensure that when scaling up the Console Application to multiple instances, the user is also directed to the instance which will know about them and their endpoints (since each Application instance will have its own local SQLite store).

Alternatively, Stratos can be configured [with a persistent Cloud Foundry database service](deploy/cloud-foundry/db-migration), which enables features requiring persistence such as user favorites.
Alternatively, Stratos can be configured [with a persistent Cloud Foundry database service](cloud-foundry/db-migration), which enables features requiring persistence such as user favorites.

## Deployed in Kubernetes

Expand Down
2 changes: 1 addition & 1 deletion website/docs/deploy/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar_label: Troubleshooting
---

## Deploying as a Cloud Foundry Application
See the custom troubleshooting guide [here](../../deploy/cloud-foundry#troubleshooting).
See the custom troubleshooting guide [here](cloud-foundry/cf-troubleshooting).

## Usernames appear as long random characters when connected to IBM Cloud

Expand Down
3 changes: 0 additions & 3 deletions website/docs/developer/backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ title: Backend Development
sidebar_label: Overview
---


## Backend Development

Jetstream is the back-end for Stratos. It is written in Go.

We use Go Modules for dependency management.
Expand Down
8 changes: 4 additions & 4 deletions website/docs/developer/developers-guide-e2e-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ The tests require an instance of Cloud Foundry with the following:
- A number of other Cloud Foundry entities

To meet the above requirements we recommend running the Stratos CF E2E set up script which is kept up to date with the latest test requirements.
More information can be found [below](#Running-the-E2E-Set-up-Script)
More information can be found [below](#running-the-e2e-set-up-script)

Before running the E2E tests, you need to create a file named `secrets.yaml` in the root of the Stratos folder. An example template is included in [src/test-e2e/secrets.yaml.example](../src/test-e2e/secrets.yaml.example) - copy this to `secrets.yaml` and edit accordingly.
Before running the E2E tests, you need to create a file named `secrets.yaml` in the root of the Stratos folder. An example template is included in [src/test-e2e/secrets.yaml.example](https://github.com/cloudfoundry/stratos/blob/master/src/test-e2e/secrets.yaml.example) - copy this to `secrets.yaml` and edit accordingly.

If you want to run the tests in headless Chrome, add the following to the secrets file:

Expand All @@ -39,7 +39,7 @@ headless: true
```

## Running the E2E Set up Script
The script can be found in [deploy/tools/init-cf-for-e2e.sh](../deploy/tools/init-cf-for-e2e.sh)
The script can be found in [deploy/tools/init-cf-for-e2e.sh](https://github.com/cloudfoundry/stratos/blob/master/deploy/tools/init-cf-for-e2e.sh)

### Minimum Requirements
- CF CLI
Expand Down Expand Up @@ -111,7 +111,7 @@ Given the output of the script, the following template can be used to update the

### Tidying up test generated CF entities
If tests are stopped before completing or fail to clean old test artifacts will exist in the CF. To clean some of these please see the script
at [deploy/ci/automation/e2e-clean-remnants.sh](../deploy/ci/automation/e2e-clean-remnants.sh)
at [deploy/ci/automation/e2e-clean-remnants.sh](https://github.com/cloudfoundry/stratos/blob/master/deploy/ci/automation/e2e-clean-remnants.sh)

## Running the tests

Expand Down
8 changes: 4 additions & 4 deletions website/docs/developer/frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ using Visual Studio Code. If you feel comfortable with these and are happy with
## Set up Dependencies

* Set up a Stratos backend - The frontend cannot run without a backend. Both backend and frontend exist in this same repo.
* Don't need to make changes to the backend code? To set up a backend run through the [deploy section](https://github.com/cloudfoundry/stratos/blob/master/deploy/README.md),
* Don't need to make changes to the backend code? To set up a backend run through the [deploy section](../deploy/overview),
choose a deployment method and bring one up. These deployments will bring up the entire backend, including api service and database
along with a V2 frontend.
* Need to make changes to the backend code? Follow the below [Backend Development](#Backend-Development) set up guide
* Need to make changes to the backend code? Follow the [Backend Development](backend) set up guide
* Install [NodeJs](https://nodejs.org) (minimum node version 12.13.0)
* Install [Angular CLI](https://cli.angular.io/) - `npm install -g @angular/cli`

Expand All @@ -27,7 +27,7 @@ Configuration information can be found in two places
* `./proxy.conf.js`
* In new forks this is missing and needs to be created using `./proxy.conf.template.js` as a template.
* Contains the address of the backend. Which will either be...
* If the backend is deployed via the instructions in the [deploy section](https://github.com/cloudfoundry/stratos/blob/master/deploy/README.md)
* If the backend is deployed via the instructions in the [deploy section](../deploy/overview)
the url will be the same address as the V1 console's frontend address. For instance `https://localhost` would translate to
```
const PROXY_CONFIG = {
Expand All @@ -42,7 +42,7 @@ Configuration information can be found in two places
"ws": true,
}
```
* If the backend is running locally using the instructions [Backend Development](#Backend-Development) below the url will local host
* If the backend is running locally using the instructions in [Backend Development](backend), the url will local host
with a port of the `CONSOLE_PROXY_TLS_ADDRESS` value from `src/jetstream/config.properties`. By default this will be 5445. For
instance
```
Expand Down
4 changes: 2 additions & 2 deletions website/docs/developer/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ sidebar_label: Stratos Development
---

1. [Introduction](#introduction)
1. [Frontend Development](#frontend-development)
1. [Backend Development](#backend-development)
1. [Frontend Development](frontend)
1. [Backend Development](backend)

## Introduction

Expand Down
2 changes: 1 addition & 1 deletion website/docs/extensions/customizing.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ We currently expose the following extension points in Stratos:

We use Decorators to annotate components to indicate that they are Stratos extensions.

See [Extensions](../extensions/frontend-extensions) for more detail and examples of front-end extensions.
See [Extensions](../extensions/frontend) for more detail and examples of front-end extensions.


### Changing the Initial Loading Indicator
Expand Down
2 changes: 1 addition & 1 deletion website/docs/extensions/frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Next, run the customization script (this is done automatically when you do an `n
npm run customize
```

You can now run Stratos locally to see the customizations - see the [Developer's Guide](../developers/developers-guide) for details.
You can now run Stratos locally to see the customizations - see the [Developer's Guide](../developer/frontend) for details.

For a walk-through of extending Stratos, see [Example: Adding a Custom Tab](#example-adding-a-custom-tab).

Expand Down
Loading