-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic developers guide for working with helm (#4511)
* Bump docusaurus version and versioning - Bump docusaurus to latest 2.0 version - Fix errors thrown up by new linting process - Add version support, setup 4.0.0 - Enable dark mode and fix in home screen * Move status_updates back into root project docs folder * Fix links - fix dead links - ensure all links are relative (so work when versioned) * Add basic developers guide for working with helm * Fix post merge issue
- Loading branch information
1 parent
c767913
commit cfbfab8
Showing
3 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: Deploy Dev Guide | ||
sidebar_label: Overview | ||
--- | ||
|
||
As described in the [Deploying Stratos](../overview.md) section there are a number of ways that Stratos can be deployed. From a development perspective some, like `cf push`, are simpler than others, like `helm install`. | ||
|
||
We're looking at expanding our documentation for all cases, what is found here is the start of that process. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
title: Helm Development Guide | ||
sidebar_label: Helm | ||
--- | ||
|
||
|
||
:::info | ||
This document is currently in progress and will be expanded in the future. | ||
::: | ||
|
||
|
||
## Building Images | ||
|
||
The images references by the helm charts are built in two stages. | ||
|
||
### Base Images | ||
|
||
Changes to these happen infrequently, so not every dev cycle requires this step. | ||
|
||
1. Ensure your docker hub credentials are set | ||
1. `docker login` | ||
1. Create and push images to docker hub | ||
1. `cd deploy/stratos-base-images` | ||
1. `./build-base-images.sh -o dockerhuborgname -p` | ||
- `p` pushes the images to dockerhub. Replace `dockerhuborgname` with the docker hub org where test images should be pushed | ||
1. Wait for script to complete, this may take a while | ||
|
||
:::note | ||
If you receive the error ``"--squash" is only supported on a Docker daemon with experimental features enabled`` during build enable | ||
experimental feature by | ||
1. Add `"experimental": true` to ~/.docker/config.json | ||
1. Restart docker - `sudo systemctl restart docker` | ||
1. `docker version` should show client with experimental feature enabled | ||
::: | ||
|
||
### All Other Images | ||
|
||
Changes to these will occur more often and are built upon the base images created above. This step is executed with the command command used | ||
to build the charts below. | ||
|
||
## Building Charts | ||
|
||
1. Ensure your docker hub credentials are set | ||
1. `docker login` | ||
1. Create the charts, and create and push images to docker hub | ||
1. `cd deploy/kubernetes` | ||
1. `./build.sh -t 4.0.1 -o dockerhuborgname -p` | ||
-`p` pushes the images to dockerhub. Replace `dockerhuborgname` with the docker hub org where test images should be pushed. This should match where your base images are | ||
-`t` will tag the images with a version | ||
1. The new charts with updated image references will be created in `deploy/kubernetes/helm-charts` | ||
|
||
### Testing built output | ||
|
||
1. `cd deploy/kubernetes` | ||
1. Install the usual way, with your namespace and values (if required). For example | ||
``` | ||
helm install console helm-chart --namespace=console --values stratos-values.yaml | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters