Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
c08d8bb
Update the script for reslove the config files
yingxgu Apr 27, 2020
c45c8b6
Update to Kubernetes 1.18.2
yingxgu Apr 28, 2020
9b0b2c6
remove docker sudo & move kubectl out of python code
xwu2git May 13, 2020
3dfafb7
fix deliminator
xwu2git May 13, 2020
ded963d
cdn working in helm
xwu2git May 16, 2020
39d0c9f
vod working
xwu2git May 16, 2020
ba5eec0
added live
xwu2git May 16, 2020
baee66c
add README
xwu2git May 16, 2020
1a723b4
no wait in kubectl delete
xwu2git May 16, 2020
0ca6e00
add more configuration options
xwu2git May 16, 2020
51176d2
change stream location
xwu2git May 16, 2020
4d085b9
change default values
xwu2git May 17, 2020
611baed
fix svt preset
xwu2git May 17, 2020
aec5ca5
add guard if helm is not available
xwu2git May 17, 2020
869db89
support pushing images to private registry after each build
xwu2git May 18, 2020
c285d11
add registry prefix to the signing image
xwu2git May 18, 2020
aa71641
Revert "add registry prefix to the signing image"
xwu2git May 18, 2020
994bbbe
Enable PV and PVC
May 25, 2020
42b45bb
fix helm
xwu2git May 25, 2020
2e8f966
fix docker-swarm
xwu2git May 25, 2020
e97f5de
fix kuberebetes
xwu2git May 26, 2020
91d9524
fix k8s
xwu2git May 26, 2020
78d420d
docker swarm only
xwu2git May 26, 2020
161a94e
Merge pull request #150 from xwu2git/master
xwu2git May 26, 2020
726beb3
guard kubectl & helm
xwu2git May 26, 2020
e8ec90b
Merge pull request #151 from xwu2git/master
xwu2git May 26, 2020
651a109
fix helm & cdn user
xwu2git May 29, 2020
66d4c8d
Merge pull request #152 from xwu2git/master
xwu2git May 29, 2020
90f2645
fix script to discover kubernete workers
xwu2git May 29, 2020
0e06f10
Merge pull request #153 from xwu2git/master
xwu2git May 29, 2020
373e011
fix arch diagram
xwu2git Jun 8, 2020
9146a65
Merge pull request #155 from xwu2git/master
xwu2git Jun 8, 2020
19f0895
fix nlives=0 deployment issue
xwu2git Jun 9, 2020
dfaa5e0
Merge pull request #157 from xwu2git/master
xwu2git Jun 9, 2020
9a31a8f
one adaptation_sets for all the resolution in dash mode
Jun 9, 2020
2c591a8
one adaptation_sets for all the resolution in dash mode
Jun 9, 2020
4b3bd57
add make update for pushing images to worker nodes without private re…
xwu2git Jun 10, 2020
2355a0e
Merge pull request #161 from xwu2git/master
xwu2git Jun 10, 2020
39563de
Merge branch 'master' of https://github.com/OpenVisualCloud/CDN-Trans…
Jun 19, 2020
7439011
fix to scripte mkvolume.sh
Jun 19, 2020
539b711
fix to scripte mkvolume.sh
Jun 19, 2020
75e467c
run CDN as non-root
xwu2git Aug 4, 2020
125adc7
Merge pull request #164 from xwu2git/master
xwu2git Aug 4, 2020
9b040bd
change kafka to use regular user uid/gid
xwu2git Aug 4, 2020
024a496
Merge pull request #165 from xwu2git/master
xwu2git Aug 4, 2020
24048be
Revert "change kafka to use regular user uid/gid"
xwu2git Aug 6, 2020
4fd8efb
add runAsUser
xwu2git Aug 6, 2020
4f4b1e6
Merge pull request #166 from xwu2git/master
xwu2git Aug 6, 2020
e887cfc
upgrade to v20.7
xwu2git Aug 6, 2020
909d271
Merge pull request #167 from xwu2git/v20.7
xwu2git Aug 6, 2020
9871d6b
Merge pull request #168 from OpenVisualCloud/v20.7
xwu2git Aug 17, 2020
5621e07
update README
xwu2git Oct 8, 2020
2cc83aa
update README.md
xwu2git Oct 8, 2020
6251611
Merge pull request #169 from xwu2git/master
xwu2git Oct 8, 2020
a7ef410
Update README.md
xwu2git Oct 15, 2020
4765b23
Merge branch 'master' of https://github.com/OpenVisualCloud/CDN-Trans…
Dec 16, 2020
d6ad4ab
add batch service to trigger transcoding only
Dec 16, 2020
fe48322
add common image
Dec 18, 2020
8941ba0
refine the transcode service
Dec 18, 2020
47368f4
minor fix
Dec 21, 2020
f7e592e
add the live streaming in batch mode
Dec 21, 2020
d58e163
refine the swarm and helm
Dec 21, 2020
78203dd
Merge pull request #170 from QuPengfei/transcoding-measurement
xwu2git Jan 7, 2021
ee2a409
misc changes to support simple transcode
xwu2git Jan 12, 2021
0437109
update docs
xwu2git Jan 12, 2021
99e1f47
update README.md
xwu2git Jan 12, 2021
8161137
Merge pull request #171 from xwu2git/master
xwu2git Jan 12, 2021
b9ae28c
fix image name
xwu2git Jan 13, 2021
97aa07f
Merge pull request #172 from xwu2git/master
xwu2git Jan 13, 2021
60b4d0f
rename batch to benchmark; fix benchmark startup in the cdn scenario
xwu2git Jan 16, 2021
c8f7e63
Merge pull request #175 from xwu2git/master
xwu2git Jan 16, 2021
d42b324
fix helm
xwu2git Jan 16, 2021
f3c4af3
Merge pull request #176 from xwu2git/master
xwu2git Jan 16, 2021
93d7233
remove unused
xwu2git Jan 16, 2021
08dabe0
Merge pull request #177 from xwu2git/master
xwu2git Jan 16, 2021
3948180
first version of measurement
Jan 15, 2021
c436382
refine the transcoding parameters
Jan 18, 2021
b45cb02
enable performance and format the output
Jan 19, 2021
3f620d5
Merge pull request #174 from QuPengfei/master
xwu2git Jan 19, 2021
a3b5e96
download more clips
xwu2git Jan 19, 2021
0944aa9
Merge pull request #178 from xwu2git/master
xwu2git Jan 19, 2021
e00e500
Update README.md
xwu2git Jan 19, 2021
621848f
update arch
xwu2git Jan 22, 2021
ac9922b
Merge pull request #180 from xwu2git/master
xwu2git Jan 22, 2021
1797a83
add more resolutions and bitrates
xwu2git Jan 22, 2021
380cbc5
Merge pull request #182 from xwu2git/master
xwu2git Jan 22, 2021
6d33543
update README.md
xwu2git Jan 22, 2021
4e0a82a
Merge pull request #183 from xwu2git/master
xwu2git Jan 22, 2021
e27aad3
minor fix
Jan 22, 2021
4c1ba6d
Merge pull request #181 from QuPengfei/master
xwu2git Jan 22, 2021
53acd9e
update README.md
xwu2git Jan 22, 2021
e8c514f
Merge pull request #184 from xwu2git/master
xwu2git Jan 22, 2021
c40f2c2
refine the script to generate the transcoding command
Jan 26, 2021
4e7f204
Merge pull request #185 from QuPengfei/master
xwu2git Jan 27, 2021
e8be61c
enable hw transcoding on XeonE3 on benchmark mode
Jan 28, 2021
c325adc
enable cdn on XeonE3 with HW HLS/DASH transcoding
Jan 29, 2021
85add91
Merge pull request #186 from QuPengfei/master
xwu2git Jan 29, 2021
cf0893b
Update README.md
xwu2git Feb 1, 2021
00663ce
minor fix
Feb 7, 2021
2a14f6b
Merge pull request #188 from QuPengfei/master
xwu2git Feb 8, 2021
f9265bc
add qsv support
Feb 25, 2021
35e8df0
multi device support
Feb 25, 2021
99b81ef
Merge pull request #189 from QuPengfei/multi-device
xwu2git Mar 2, 2021
1476c80
add SG1
Feb 25, 2021
41e6e35
minor fix
Mar 12, 2021
68ff507
update the doc
Mar 12, 2021
2033fb7
add attribution file
Mar 17, 2021
9183f2a
Merge pull request #192 from dpatel257/master
Mar 18, 2021
b2bc54a
upgrade to 21.3
Mar 19, 2021
1747551
live fix as 21.3
Mar 19, 2021
e4a378a
volume access fix
Mar 19, 2021
b46f188
Update README.md
xwu2intel Mar 26, 2021
3bc9d03
Update README.md
xwu2intel Mar 26, 2021
b2b298d
Merge pull request #191 from dpatel257/master
xwu2git Mar 26, 2021
208b35c
Merge pull request #194 from xwu2intel/patch-1
xwu2git Mar 26, 2021
33241d9
Merge pull request #195 from xwu2intel/patch-2
xwu2git Mar 26, 2021
628f1e5
Merge pull request #190 from QuPengfei/multi-device
xwu2git Mar 26, 2021
35a6d36
Update README.md
jhou5 Apr 12, 2021
3d7a199
change the transcode service name as xcode
Jun 7, 2021
20cc38f
add scenario encode to measure the quality with vmaf
Jun 10, 2021
52d8420
Merge pull request #199 from QuPengfei/vmaf
Jun 30, 2021
a4b3838
adding vmaf to attribution file
Aug 20, 2021
b6e5f9d
Merge pull request #205 from dpatel257/attrib_vmaf
jhou5 Aug 20, 2021
7086f82
adding attribution for boostrap js & magnific popup
Aug 20, 2021
d1800e9
Merge pull request #207 from dpatel257/attrib_boot
jhou5 Aug 20, 2021
de8f568
Avoid auto-archive
Jan 3, 2023
1866b90
Archiving Notice
sfblackl-intel Jan 25, 2023
b6bd85d
Update README.md
sfblackl-intel Jan 30, 2023
110ccdf
Fix build issue
czhou26 Nov 10, 2023
7e87068
Fix build issue
czhou26 Nov 10, 2023
093ecc7
Archiving Notice
sfblackl-intel Nov 11, 2024
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ volume/video/*
deployment/docker-swarm/dhparam.pem
deployment/docker-swarm/self.crt
deployment/docker-swarm/self.key
deployment/kubernetes/*.yaml
deployment/kubernetes/yaml/*.yaml
deployment/certificate/self.crt
deployment/certificate/self.key
51 changes: 51 additions & 0 deletions ATTRIBUTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
Component: Apache python3-kazoo
Repository: https://github.com/python-zk/kazoo
License: Apache License 2.0 (https://github.com/python-zk/kazoo/blob/master/LICENSE)

Component: BeautifulSoup4
Repository: https://github.com/il-vladislav/BeautifulSoup4/
License: MIT (https://pypi.org/project/beautifulsoup4/)

Component: confluentinc/cp-docker-images
Repository: https://github.com/confluentinc/cp-docker-images
License: Apache License 2.0 (https://github.com/confluentinc/cp-docker-images/blob/5.3.3-post/LICENSE)

Component: dashjs-tmp-nicky
Repository: https://github.com/Dash-Industry-Forum/dash.js/
License: BSD 3-clause "New" or "Revised" License (https://github.com/Dash-Industry-Forum/dash.js/blob/development/LICENSE.md)

Component: jQuery (New Wave JavaScript)
Repository: https://github.com/jquery/jquery
License: MIT (https://github.com/jquery/jquery/blob/master/LICENSE.txt)

Component: kafka-python
Repository: https://github.com/dpkp/kafka-python/
License: MIT (https://github.com/dpkp/kafka-python/blob/master/LICENSE)

Component: What Input
Repository: https://github.com/ten1seven/what-input
License: MIT (https://github.com/ten1seven/what-input/blob/master/LICENSE)

Component: Tornado Tornado Web Server
Repository: https://github.com/tornadoweb/tornado
License: Apache License 2.0 (https://github.com/tornadoweb/tornado/blob/master/LICENSE)

Component: video-dev hls.js
Repository: https://github.com/video-dev/hls.js
License: Apache License 2.0 (https://github.com/video-dev/hls.js/blob/master/LICENSE)

Component: Foundation for Sites
Repository: https://github.com/zurb/foundation-sites-6
License: MIT (https://github.com/zurb/foundation-sites-6/blob/develop/LICENSE)

Component: Netflix/vmaf
Repository: https://github.com/Netflix/vmaf
License: BSD-2-Clause-Patent (https://github.com/Netflix/vmaf/blob/master/LICENSE)

Component: Jquery-Magnific-Popup
Repository: https://github.com/dimsemenov/Magnific-Popup
License: MIT (https://github.com/dimsemenov/Magnific-Popup/blob/master/LICENSE)

Component: bootstrap.min.js
Repository: https://github.com/twbs/bootstrap
License: MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
29 changes: 28 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
cmake_minimum_required (VERSION 2.8)

Project(OVC NONE)
Project(CDNTranscodeSample NONE)

if (NOT DEFINED REGISTRY)
set(REGISTRY "")
elseif (NOT ${REGISTRY} MATCHES "/$")
set(REGISTRY "${REGISTRY}/")
endif()
if (NOT DEFINED NVODS)
set(NVODS "2")
endif()
if (NOT DEFINED NLIVES)
set(NLIVES "1")
endif()

if (NOT DEFINED PLATFORM)
set(PLATFORM "Xeon")
endif()

if (NOT DEFINED SCENARIO)
set(SCENARIO "transcode")
endif()

if (NOT (SCENARIO STREQUAL "cdn"))
set(NLIVES "0")
endif()

file(GLOB dirs "deployment" "*")
list(REMOVE_DUPLICATES dirs)
Expand All @@ -12,3 +36,6 @@ endforeach()

# legal message
execute_process(COMMAND printf "\nThis script will build third party components licensed under various open source licenses into your container images. The terms under which those components may be used and distributed can be found with the license document that is provided with those components. Please familiarize yourself with those terms to ensure your distribution of those components complies with the terms of those licenses.\n\n")
execute_process(COMMAND printf "\n-- Setting: PLATFORM=${PLATFORM} SCENARIO=${SCENARIO}\n")
execute_process(COMMAND printf "-- Setting: NVODS=${NVODS}, NLIVES=${NLIVES}\n")
execute_process(COMMAND printf "-- Setting: REGISTRY=${REGISTRY}\n")
166 changes: 83 additions & 83 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,108 +1,108 @@
# Open Visual Cloud CDN Transcode Sample
# PROJECT NOT UNDER ACTIVE MANAGEMENT #
This project will no longer be maintained by Intel.
Intel has ceased development and contributions including, but not limited to, maintenance, bug fixes, new releases, or updates, to this project.
Intel no longer accepts patches to this project.
If you have an ongoing need to use this project, are interested in independently developing it, or would like to maintain patches for the open source software community, please create your own fork of this project.



### Open Visual Cloud CDN Transcode Sample

[![Travis Build Status](https://travis-ci.com/OpenVisualCloud/CDN-Transcode-Sample.svg?branch=master)](https://travis-ci.com/OpenVisualCloud/CDN-Transcode-Sample)
[![Stable release](https://img.shields.io/badge/latest_release-v1.0-green.svg)](https://github.com/OpenVisualCloud/CDN-Transcode-Sample/releases/tag/v1.0)
[![License](https://img.shields.io/badge/license-BSD_3_Clause-green.svg)](https://github.com/OpenVisualCloud/CDN-Transcode-Sample/blob/master/LICENSE)
[![Contributions](https://img.shields.io/badge/contributions-welcome-blue.svg)](https://github.com/OpenVisualCloud/CDN-Transcode-Sample/wiki)

Table of Contents
=================
* [Open Visual Cloud CDN Transcode Sample](#open-visual-cloud-cdn-transcode-sample)
* [Architecture](#architecture)
* [What's in this project](#whats-in-this-project)
* [System requirements](#system-requirements)
* [Operating system](#operating-system)
* [How to setup The CDN Transcode Sample](#how-to-setup-the-cdn-transcode-sample)
* [Setup the CDN Transcode Sample OS environment(Both of master and slave nodes)](#setup-the-cdn-transcode-sample-os-environmentboth-of-master-and-slave-nodes)
* [Install ubuntu18.04.2/CentOS 7.6](#install-ubuntu18042centos-76)
* [Setup CDN environment(Both of master and slave nodes)](#setup-cdn-environmentboth-of-master-and-slave-nodes)
* [Install the third-party dependency Libraries and tools](#install-the-third-party-dependency-libraries-and-tools)
* [Setup docker proxy as follows if you are behind a firewall](#setup-docker-proxy-as-follows-if-you-are-behind-a-firewall)
* [Build(Both of master and slave nodes)](#buildboth-of-master-and-slave-nodes)
* [Deploy](#deploy)
* [Auto deployment using Kubernetes](#auto-deployment-using-kubernetes)
* [See Also](#see-also)

The CDN Transcode Sample is an Open Visual Cloud software stack with all required open source ingredients well integrated to provide out-of-box CDN media transcode service, including live streaming and video on demand. It also provides Docker-based media delivery software development environment upon which developer can easily build their specific applications.

# Architecture

The sample implements a reference server-side transcode system over CDN infrastructure, which features `live streaming` and `VOD`.

<IMG src="https://github.com/OpenVisualCloud/CDN-Transcode-Sample/blob/master/volume/html/image/CDN-Transcode-Sample-Arch.png" height="450">

# What's in this project
The CDN Transcode Sample contains below components:
- Dockerfiles
- Python web services source code
- BASH glue scripts
- HTML web pages
- CMakefiles
- Configuration files
- Documents

# System requirements
## Operating system
The CDN Transcode Sample may run on Linux* 64 bit operating systems. The list below represents the operating systems that the transcode application and library were tested and validated on:
- Ubuntu* 18.04.2 Server LTS
- CentOS* 7.6

# How to setup The CDN Transcode Sample
## Setup the CDN Transcode Sample OS environment(Both of master and slave nodes)
Install Ubuntu 18.04.2/CentOS 7.6 on CDN-Transcode Server, and configure the IP address & proxy properly.
### Install ubuntu18.04.2/CentOS 7.6
- [Download Ubuntu and Install](https://ubuntu.com/download)
- [Download CentOS and install](https://www.centos.org/download/)

## Setup CDN environment(Both of master and slave nodes)
### Install the third-party dependency Libraries and tools
The CDN Transcode Sample is an Open Visual Cloud software stack with all required open source ingredients well integrated to provide out-of-box simple transcode or transcode+CDN service, including live streaming and video on demand. It also provides Docker-based media delivery software development environment upon which developer can easily build their specific applications.

### Architecture

The sample implements a reference server-side transcode system over CDN infrastructure, which features `live streaming` and `VOD`. Among them, the `VOD` service can run independently to provide a simple transcode service.

<IMG src="doc/CDN-Transcode-Sample-Arch.png" height="450">

### Software Stacks

The sample is powered by the following Open Visual Cloud software stacks:

- Media transcoding software stack:

The FFmpeg-based media transcoding stack is used to transcode media content from a higher resolution/quality to a lower resolution/quality. The software stack is optimized for Intel Xeon Scalable Processors and Intel XeonE3 Scalable Processors.

- Media streaming and Web Hosting software stack:

The NGINX-based software stack is used to host web services, video content and provide video streaming services. The software stack is optimized for Intel Xeon Scalable Processors.

### Install Prerequisites:

- **Time Zone**: Check that the timezone setting of your host machine is correctly configured. Timezone is used during build. If you plan to run the sample on a cluster of machines, please make sure to synchronize time among the controller node and worker nodes.

- **Build Tools**: Install `cmake`, `make`, `m4`, `wget` and `gawk` if they are not available on your system.

- **Docker Engine**:

- Install [docker engine](https://docs.docker.com/get-docker). Minimum version required: `17.05`. Make sure you setup docker to run as a regular user.
- Setup `Kubernetes`. See [Kubernetes Setup](deployment/kubernetes/README.md) for additional setup details.
- Setup docker proxy as follows if you are behind a firewall:

```
sudo -E ./script/install_dependency.sh
sudo mkdir -p /etc/systemd/system/docker.service.d
printf "[Service]\nEnvironment=\"HTTPS_PROXY=$https_proxy\" \"NO_PROXY=$no_proxy\"\n" | sudo tee /etc/systemd/system/docker.service.d/proxy.conf
sudo systemctl daemon-reload
sudo systemctl restart docker
```
### Setup docker proxy as follows if you are behind a firewall

### Build the Sample

Run the following command to run the sample as a simple transcoder:
```
sudo mkdir -p /etc/systemd/system/docker.service.d
printf "[Service]\nEnvironment=\"HTTPS_PROXY=$https_proxy\" \"NO_PROXY=$no_proxy\"\n" | sudo tee /etc/systemd/system/docker.service.d/proxy.conf
sudo systemctl daemon-reload
sudo systemctl restart docker
mkdir build
cd build
cmake ..
make
```
## Build(Both of master and slave nodes)
Run below commands to build docker images

Run the following command to run the sample as transcode+CDN:
```
cd CDN-Transcode-Sample
mkdir build
cd build
cmake ..
cmake -DSCENARIO=cdn ..
make
```

## Deploy
### Auto deployment using Kubernetes
---

If you deploy the sample to a cluster, please configure the sample, as `cmake -DREGISTRY=<registry-url> ..`, to push the sample images to the private docker registry after each build.

To deploy without a private registry, run `make update` after each build to push the sample images to the cluster nodes (which requires passwordless access from the master node to the worker nodes.)

**Tips:** It divides into two parts: master or slave ones
- [Setup Kubernetes master environment for CentOS](https://github.com/OpenVisualCloud/CDN-Transcode-Sample/wiki/Setup-Kubernetes-master-environment-for-CentOS)
- [Setup Kubernetes master environment for Ubuntu](https://github.com/OpenVisualCloud/CDN-Transcode-Sample/wiki/Setup-Kubernetes-master-environment-for-Ubuntu)
- [Setup Kubernetes slave environment](https://github.com/OpenVisualCloud/CDN-Transcode-Sample/wiki/Setup-Kubernetes-slave-environment)
- [Setup NFS environment](https://github.com/OpenVisualCloud/CDN-Transcode-Sample/wiki/Setup-NFS-environment)
---

### Deploy the Sample

Start/stop the sample with Kubernetes [yaml configurations](deployment/kubernetes/yaml):

Start CDN transcode service
```
make volume
make start_kubernetes
...
make stop_kubernetes
```
**Tips:** [Configuration example for Kubernetes deploy](https://github.com/OpenVisualCloud/CDN-Transcode-Sample/wiki/Configuration-example-for-Kubernetes-deploy)

Stop CDN transcode service
Start/stop the sample with Kubernetes [Helm charts](deployment/kubernetes/helm):

```
make stop_kubernetes
make volume
make start_helm
...
make stop_helm
```

____
### See Also
- [Deploy on Xeon E5 using docker swarm](https://github.com/OpenVisualCloud/CDN-Transcode-Sample/wiki/Deploy-on-Xeon-E5-using-docker-swarm)
- [Deploy on Xeon E5 using Kubernetes](https://github.com/OpenVisualCloud/CDN-Transcode-Sample/wiki/Deploy-on-Xeon-E5-using-Kubernetes)
- [Deploy on Xeon E3 with Gen GFX using Kubernetes](https://github.com/OpenVisualCloud/CDN-Transcode-Sample/wiki/Deploy-on-Xeon-E3-with-Gen-GFX-using-Kubernetes)
- [Deploy on VCA2 with Gen GFX using Kubernetes](https://github.com/OpenVisualCloud/CDN-Transcode-Sample/wiki/Deploy-on-VCA2-with-Gen-GFX-using-Kubernetes)
- [Setup proxy server](https://github.com/OpenVisualCloud/CDN-Transcode-Sample/wiki/Setup-proxy-server)
- [Setup Kubernetes Logging](https://github.com/OpenVisualCloud/CDN-Transcode-Sample/wiki/Setup-Kubernetes-logging-environment)
- [Setup Kubernetes Monitoring](https://github.com/OpenVisualCloud/CDN-Transcode-Sample/wiki/Setup-Kubernetes-monitoring-environment)
- [Remove Kubernetes environment](https://github.com/OpenVisualCloud/CDN-Transcode-Sample/wiki/Remove-Kubernetes-environment)
For the `transcode` scenario, look at the logs of the `benchmark` pod for the batch transcoding summary. For the `cdn` scenario, point your browser to `https://<your-host>` to watch the list of video clips via `DASH` or `HLS`.

# See Also

- [Kubernetes Setup](deployment/kubernetes/README.md)
- [Build Options](doc/cmake.md)
- [Reference Architecture](https://networkbuilders.intel.com/solutionslibrary/container-bare-metal-for-2nd-generation-intel-xeon-scalable-processor)

3 changes: 3 additions & 0 deletions benchmark/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CMakeLists.txt
*.m4
test/*
5 changes: 5 additions & 0 deletions benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if (SCENARIO STREQUAL "transcode")
set(service "tc_benchmark_service")
include("${CMAKE_SOURCE_DIR}/script/service.cmake")
add_dependencies(build_${service} build_tc_common)
endif()
15 changes: 15 additions & 0 deletions benchmark/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

FROM tc_common

Run apt-get update -q && apt-get install -y -q python3-kafka python3-kazoo && rm -rf /var/lib/apt/lists/*

COPY *.py /home/
COPY *.json /home/
CMD ["/bin/bash","-c","/home/main.py"]
WORKDIR /home

####
ARG UID
RUN mkdir -p /var/www/archive
USER ${UID}
####
6 changes: 6 additions & 0 deletions benchmark/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash -e

IMAGE="tc_benchmark_service"
DIR=$(dirname $(readlink -f "$0"))

. "${DIR}/../script/build.sh"
Loading