Helm Charts for the SRS media server.
First, you need to install helm. For example, on MacOS:
brew install helm
helm version --short
#v3.12.0+gc9f554d
Next, add the helm repository:
helm repo add srs http://helm.ossrs.io/stable
Note: If you are in China, use the mirror repository http://helm.ossrs.net/stable instead.
To install the SRS origin server, run:
helm install srs srs/srs-server
Visit http://localhost:8080 to access the SRS console.
Important config for both srs-server and Oryx:
helm install srs srs/srs-server --set candidate=your-internal-public-ip
Important config for Oryx only:
/data
of host as storage directory, if want to change, please use --set persistence.path=$HOME/data
for example.For detailed information on using SRS, please refer to https://ossrs.io.
Note: If you are in China, please refer to https://ossrs.net.
Note all features of SRS and Oryx are supported by the HELM charts, however, we’re working to migrate them to HELM.
You can also set up the local HELM repository by executing the following command:
docker run --rm -it -p 3000:80 ossrs/helm:latest
Next, add the local repository with this command:
helm repo add srs http://localhost:3000/stable
Now, you can utilize SRS HELM. For more information, refer to the Usage section.
You can build a test HELM repository by executing the following command:
docker build -t test -f Dockerfile .
Start the local test docker image:
docker run --rm -it -p 3000:80 test
Next, add the local repository with this command:
helm repo add srs http://localhost:3000/stable
Now, you can utilize SRS HELM. For more information, refer to the Usage section.
The simplest way to develop is to build a new chart by:
helm package srs-server
Then install the local chart by:
helm install srs srs-server-1.0.0.tgz
Or, to test the repo, serve current directory in Nginx or other HTTP server, for example:
docker run --rm -it -p 3000:80 -v $(pwd):/usr/share/nginx/html \
-v $(pwd)/conf/nginx.conf:/etc/nginx/nginx.conf \
-v $(pwd)/conf/conf.d/default.conf:/etc/nginx/conf.d/default.conf \
nginx:stable
Next, add the local repository with this command:
helm repo add srs http://localhost:3000/stable
Now, you can utilize SRS HELM. For more information, refer to the Usage section.
To release chart new release, for example, release srs-server v1.0.6, firstly create new chart resource file by following command:
./auto/srs-server.sh -target v1.0.6
And, maybe also release a new version of Oryx v1.0.7, run:
./auto/oryx.sh -target v1.0.7
Then, release the chart web server image and refresh official website by:
./auto/pub.sh