Skip to content

Commit

Permalink
Add linting and validation of markdown links (#90)
Browse files Browse the repository at this point in the history
* Update .travis.yml
* Fix broken links
  • Loading branch information
dcasavant authored Feb 1, 2020
1 parent 3060123 commit a578c2d
Show file tree
Hide file tree
Showing 10 changed files with 53 additions and 49 deletions.
2 changes: 2 additions & 0 deletions .remark_ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
linux-amd64/
terratest/
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ install:
- helm init --client-only
# Install YamlLint
- sudo pip install yamllint=="${YAMLLINT_VERSION}"
- npm install -g --save remark-cli to-vfile remark-preset-lint-recommended remark-validate-links remark-lint-no-dead-urls remark-message-control remark-preset-lint-markdown-style-guide remark-lint
# Install Go
- wget -c https://storage.googleapis.com/golang/go1.7.3.linux-amd64.tar.gz
- sudo tar -C /usr/local -xvzf go1.7.3.linux-amd64.tar.gz
- export PATH=$PATH:/usr/local/go/bin
script:
- yamllint -c .yamllint.yml -s $(find . -type f -name "Chart.yaml")
- yamllint -c .yamllint.yml -s $(find . -type f -name "values*.yaml")
- remark -i .remark_ignore -f -u validate-links .
# Now load the helm dependencies
- make dependencies
# Run Helm lint
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
# Additional Resources

* [General GitHub documentation](https://help.github.com/)
* [GitHub pull request documentation](https://help.github.com/send-pull-requests/)
* [GitHub pull request documentation](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests)
6 changes: 3 additions & 3 deletions charts/pega/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ stream | Nodes that run an embedded deployment of Kafka and are exposed t

#### Small deployment with a single tier

To get started running a personal deployment of Pega on kubernetes, you can handle all processing on a single tier. This configuration provides the most resource utilization efficiency when the characteristics of a production deployment are not necessary. The [values-small.yaml](relative-link-here) configuration provides a starting point for this simple model.
To get started running a personal deployment of Pega on kubernetes, you can handle all processing on a single tier. This configuration provides the most resource utilization efficiency when the characteristics of a production deployment are not necessary. The [values-minimal.yaml](./values-minimal.yaml) configuration provides a starting point for this simple model.

Tier Name | Description
--- | ---
pega | One tier handles all foreground and background processing and is given a `nodeType` of "WebUser,BackgroundProcessing,search,Stream".

#### Large deployment for production isolation of processing

To run a larger scale Pega deployment in production, you can split additional processing out to dedicated tiers. The [values-large.yaml](relative-link-here) configuration provides an example of a multi-tier deployment that Pega recommends as a good starting point for larger deployments.
To run a larger scale Pega deployment in production, you can split additional processing out to dedicated tiers. The [values-large.yaml](./values-large.yaml) configuration provides an example of a multi-tier deployment that Pega recommends as a good starting point for larger deployments.

Tier Name | Description
--- | ---
Expand All @@ -185,7 +185,7 @@ Node classification is the process of separating nodes by purpose, predefining t

Specify the list of Pega node types for this deployment. For more information about valid node types, see the Pega Community article on [Node Classification].

[Node types for client-managed cloud environments](http://doc-build02.rpega.com/docs-oxygen/procomhelpmain.htm#engine/node-classification/eng-node-types-client-managed-cloud-ref.htm)
[Node types for client-managed cloud environments](https://community.pega.com/knowledgebase/articles/performance/node-classification)

Example:

Expand Down
28 changes: 14 additions & 14 deletions docs/Deploying-Pega-on-AKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ Use Kubernetes tools and the customized orchestration tools and Docker images to

1. Prepare your local system:

- To prepare a local Linux system, install required applications and configuration files - [Preparing your local Linux system – 45 minutes](https://github.com/pegasystems/pega-helm-charts/blob/master/docs/prepping-local-system-runbook-linux.md).
- To prepare a local Linux system, install required applications and configuration files - [Preparing your local Linux system – 45 minutes](prepping-local-system-runbook-linux.md).

- To prepare a local Windows system, install required applications and configuration files -
[Preparing your local Windows 10 system – 45 minutes](https://github.com/pegasystems/pega-helm-charts/blob/master/docs/prepping-local-system-runbook-windows.md).
[Preparing your local Windows 10 system – 45 minutes](prepping-local-system-runbook-windows.md).

2. Create an AKS cluster and an SQL database resource in your Azure account - [Prepare your AKS resources – 45 minutes](#prepare-your-aks-resources--45-minutes).

3. Customize a configuration file with your AKS details and use the command-line tools, kubectl and Helm, to install and then deploy Pega Platform onto your AKS cluster - [Deploying Pega Platform using Helm charts – 90 minutes](#installing-and-deploying-pega-platform-using-helm-charts--90-minutes).

4. Configure your network connections in the DNS management zone of your choice so you can log in to Pega Platform - [Logging into Pega Platform – 10 minutes](#logging-into-pega-platform--10-minutes).
4. Configure your network connections in the DNS management zone of your choice so you can log in to Pega Platform - [Logging in to Pega Platform – 10 minutes](#logging-in-to-pega-platform--10-minutes).

To understand how Pega maps Kubernetes objects with Pega applications and services, see [How Pega Platform and applications are deployed on Kubernetes](https://community.pega.com/knowledgebase/articles/cloud-choice/how-pega-platform-and-applications-are-deployed-kubernetes).

Expand Down Expand Up @@ -296,15 +296,15 @@ Configure the parameters so the pega.yaml Helm chart matches your deployment res
| Jdbc.driverUri: | Specify the database driver Pega Platform uses during the deployment. For AKS, we can obtain the URL of the required 7.4.1. driver file that is publicly available in the referenced Maven repository. | driverUri: "https://repo1.maven.org/maven2/com/microsoft/sqlserver/mssql-jdbc/7.4.1.jre11/mssql-jdbc-7.4.1.jre11.jar" |
| Jdbc: username: password: | Set the security credentials for your database server to allow installation of Pega Platform into your database. | <ul><li>username: "\<name of your database user\>"</li><li> password: "\<password for your database user\>"</li></ul> |
| jdbc.rulesSchema: jdbc.dataSchema: | Set the names of both your rules and the data schema to the values that Pega Platform uses for these two schemas. | rulesSchema: "rules" dataSchema: "data" |
| docker.registry.url: username: password: | Map the host name of a registry to an object that contains the “username” and “password” values for that registry. For more information, search for “index.docker.io/v1” in [Engine API v1.24](https://docs.docker.com/engine/api/v1.24/). | <ul><li>url: “<https://index.docker.io/v1/>” </li><li>username: "\<DockerHub account username\>"</li><li> password: "\< DockerHub account password\>"</li></ul> |
| docker.registry.url: username: password: | Map the host name of a registry to an object that contains the “username” and “password” values for that registry. For more information, search for “index.docker.io/v1” in [Engine API v1.24](https://docs.docker.com/engine/api/v1.24/). | <ul><li>url: “https://index.docker.io/v1/” </li><li>username: "\<DockerHub account username\>"</li><li> password: "\< DockerHub account password\>"</li></ul> |
| docker.pega.image: | Refer to the latest Pega Platform deployment image on DockerHub. | <ul><li>Image: "pegasystems/pega:latest" </li><li>For a list of default images that Pega provides: <https://hub.docker.com/r/pegasystems/pega-ready/tags></li></ul> |
| upgrade: | Do not set for installations or deployments. | upgrade: for non-upgrade, keep the default value. |
| tier.name: ”web” tier.service.domain:| Set a host name for the pega-web service of the DNS zone. | <ul><li>domain: "\<the host name for your web service tier\>" </li><li>Assign this host name with an external IP address and log into Pega Platform with this host name in the URL. Your web tier host name must comply with your networking standards and be available as an external IP address.</li></ul>|
| tier.name: ”stream” tier.service.domain: | Set the host name for the pega-stream service of the DNS zone. | <ul><li>domain: "\<the host name for your stream service tier\>" </li><li>Your stream tier hos tname should comply with your networking standards. </li></ul>|
| installer.image: | Specify the Docker image you built to install Pega Platform. | <ul><li>Image: "\<your installation Docker image :your tag\>" </li><li>You created this image in [Preparing your local Linux system](docs/prepping-local-system-runbook-linux.md)</li></ul>|
| installer.image: | Specify the Docker image you built to install Pega Platform. | <ul><li>Image: "\<your installation Docker image :your tag\>" </li><li>You created this image in [Preparing your local Linux system](prepping-local-system-runbook-linux.md)</li></ul>|
| installer. adminPassword: | Specify a password for your initial log in to Pega Platform. | adminPassword: "\<initial password\>" |

3. Save the file.
1. Save the file.

### Deploy Pega Platform using the command line

Expand All @@ -315,15 +315,15 @@ automatically followed by a deploy. In subsequent Helm deployments, you should n

1. Do one of the following:

- Open Windows PowerShell running as Administrator on your local system and change the location to the top folder of your aks-demo folder that you created in [Preparing your local Windows 10 system](https://github.com/pegasystems/pega-helm-charts/blob/master/docs/prepping-local-system-runbook-windows.md).
- Open Windows PowerShell running as Administrator on your local system and change the location to the top folder of your aks-demo folder that you created in [Preparing your local Windows 10 system](prepping-local-system-runbook-windows.md).

`$ cd <local filepath>\aks-demo`

- Open a Linux bash shell and change the location to the top folder of your aks-demo directory that you created in [Preparing your local Linux system](https://github.com/pegasystems/pega-helm-charts/blob/master/docs/prepping-local-system-runbook-linux.md).
- Open a Linux bash shell and change the location to the top folder of your aks-demo directory that you created in [Preparing your local Linux system](prepping-local-system-runbook-linux.md).

`$ cd /home/<local filepath>/aks-demo`

2. Use the Azure CLI to log into your account.
1. Use the Azure CLI to log into your account.

`$ az login`

Expand Down Expand Up @@ -373,15 +373,15 @@ Merged "runbook-demo" as current context in <local filepath>\<cluster-name>.kube

10. Do one of the following:

- Open a new Windows PowerShell running as Administrator on your local system and change the location to the top folder of your aks-demo folder that you created in [Create a local folder to access all of the configuration files](#create-a-local-folder-to-access-all-of-the-configuration-files).
- Open a new Windows PowerShell running as Administrator on your local system and change the location to the top folder of your aks-demo folder that you created in [Create a local folder to access all of the configuration files](prepping-local-system-runbook-windows.md#creating-a-local-folder-to-access-all-of-the-configuration-files).

`$ cd \<local filepath>\aks-demo`

- Open a new Linux bash shell and change the location to the top folder of your aks-demo directory that you created in [Create a local folder to access all of the configuration files](#create-a-local-folder-to-access-all-of-the-configuration-files).
- Open a new Linux bash shell and change the location to the top folder of your aks-demo directory that you created in [Create a local folder to access all of the configuration files](prepping-local-system-runbook-linux.md#creating-a-local-folder-to-access-all-of-the-configuration-files).

`$ cd /home/<local filepath>/aks-demo`

11. Create namespaces in preparation for the pega.yaml and addons.yaml deployments.
1. Create namespaces in preparation for the pega.yaml and addons.yaml deployments.

```yaml
$ kubectl create namespace mypega
Expand All @@ -390,7 +390,7 @@ $ kubectl create namespace pegaaddons
namespace/pegaaddons created
```

12. Install the addons chart, which you updated in [Preparing your local system](#Prepare-your-local-system-–-45-minutes).
12. Install the addons chart, which you updated in [Preparing your AKS resources](#prepare-your-aks-resources--45-minutes).

```yaml
$ helm install addons pega/addons --namespace pegaaddons --values addons.yaml
Expand Down Expand Up @@ -483,6 +483,6 @@ The mypega-web node is the only tier with an externally exposed IP address. Note

![](media/ccb6329a621c6f11970e25531cfa1857.png)

With the ingress host name name associated with this IP address in your DNS service, you can log in to Pega Platform with a web browser using the URL: http://\<pega-web tier ingress host name>/prweb.
With the ingress host name name associated with this IP address in your DNS service, you can log in to Pega Platform with a web browser using the URL: `http://\<pega-web tier ingress host name>/prweb`.

![](media/25b18c61607e4e979a13f3cfc1b64f5c.png)
Loading

0 comments on commit a578c2d

Please sign in to comment.