This file contains hidden or 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
# The script returns a kubeconfig for the service account given | |
# reff: https://gist.github.com/innovia/fbba8259042f71db98ea8d4ad19bd708 | |
# you need to have kubectl on PATH with the context set to the cluster you want to create the config for | |
# Cosmetics for the created config | |
clusterName=some-cluster | |
# your server address goes here get it via kubectl cluster-info | |
server=https://157.90.17.72:6443 | |
# the Namespace and ServiceAccount name that is used for the config | |
namespace=kube-system |
This file contains hidden or 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
curl --silent --remote-name --location https://github.com/ceph/ceph/raw/octopus/src/cephadm/cephadm | |
sudo mv cephadm /usr/local/bin | |
sudo chmod +x /usr/local/bin/cephadm | |
sudo mkdir -p /etc/ceph |
This file contains hidden or 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
Make bucket | |
s3cmd mb s3://BUCKET | |
Remove bucket | |
s3cmd rb s3://BUCKET | |
List objects or buckets | |
s3cmd ls [s3://BUCKET[/PREFIX]] | |
List all object in all buckets | |
s3cmd la | |
Put file into bucket | |
s3cmd put FILE [FILE...] s3://BUCKET[/PREFIX] |
This file contains hidden or 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
version: "3.5" | |
services: | |
ceph: | |
image: ceph/daemon:v5.0.8-stable-5.0-octopus-centos-8 | |
container_name: demo-ceph | |
command: demo | |
hostname: ceph-demo | |
ports: | |
- 5000:5000 | |
- 8000:8000 |
This file contains hidden or 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
##this is in for loop for testing purpose | |
for i in {1..100000}; do ffmpeg -re -i VIDEO-FILE.mp4 -vcodec libx264 -vprofile baseline -g 30 -acodec aac -strict -2 -f flv rtmp://IP:1935/stone1/age2; done |
This file contains hidden or 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
ffmpeg -re -i VIDEO-FILE.mp4 -vcodec libx264 -vprofile baseline -g 30 -acodec aac -strict -2 -f flv rtmp://IP/key01/value01 |
This file contains hidden or 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
docker build -t nginx-rtmp . | |
docker run -itd -p 1935:1935 -p 8080:80 -p 443:443 --rm nginx-rtmp |
This file contains hidden or 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
βββ Dockerfile <<<<<<< have to edit | |
βββ Dockerfile.cuda | |
βββ LICENSE | |
βββ README.md | |
βββ certs | |
βΒ Β βββ example.com.crt <<<<<<< have to edit | |
βΒ Β βββ example.com.key <<<<<<< have to edit | |
βββ docker-compose.yml | |
βββ nginx-cuda.conf | |
βββ nginx.conf <<<<<<< have to edit |
This file contains hidden or 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
git clone https://github.com/alfg/docker-nginx-rtmp.git |
This file contains hidden or 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
sudo apt update | |
sudo apt install -y ffmpeg | |
ffmpeg -version | |
sudo apt install -y docker.io | |
docker -v |