Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Commit 628f1e5

Browse files
authored
Merge pull request #190 from QuPengfei/multi-device
add SG1
2 parents 33241d9 + e4a378a commit 628f1e5

File tree

9 files changed

+36
-8
lines changed

9 files changed

+36
-8
lines changed

cdn-server/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
FROM openvisualcloud/xeon-ubuntu1804-media-nginx:20.7
2+
FROM openvisualcloud/xeon-ubuntu1804-media-nginx:21.3
33

44
Run DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y -q --no-install-recommends python3-setuptools python3-redis python-celery-common python3-tornado python3-kafka python3-kazoo openssh-server && rm -rf /var/lib/apt/lists/*
55

deployment/kubernetes/yaml/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ HOSTIP=$(ip route get 8.8.8.8 | awk '/ src /{split(substr($0,index($0," src ")),
1111
. "${DIR}/../volume-info.sh"
1212
echo "NVODS=${NVODS} NLIVES=${NLIVES} SCENARIO=${SCENARIO} PLATFORM=${PLATFORM}"
1313
for template in $(find "${DIR}" -maxdepth 1 -name "*.yaml.m4" -print); do
14-
m4 -DNVODS=${NVODS} -DNLIVES=${NLIVES} -DSCENARIO=${SCENARIO} -DPLATFORM=${PLATFORM} -DHOSTIP=${HOSTIP} -DREGISTRY_PREFIX=${REGISTRY} $(env | grep _VOLUME_ | sed 's/^/-D/') -I "${DIR}" "${template}" > "${template/.m4/}"
14+
m4 -DNVODS=${NVODS} -DNLIVES=${NLIVES} -DSCENARIO=${SCENARIO} -DPLATFORM=${PLATFORM} -DUSERID=$(id -u) -DGROUPID=$(id -g) -DHOSTIP=${HOSTIP} -DREGISTRY_PREFIX=${REGISTRY} $(env | grep _VOLUME_ | sed 's/^/-D/') -I "${DIR}" "${template}" > "${template/.m4/}"
1515
done

deployment/kubernetes/yaml/live.yaml.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
enableServiceLinks: false
2424
containers:
2525
- name: live-defn(`LIDX')
26-
image: defn(`REGISTRY_PREFIX')`tc_transcode_'defn(`PLATFORM_SUFFIX'):latest
26+
image: defn(`REGISTRY_PREFIX')tc_transcode_xeon:latest
2727
imagePullPolicy: IfNotPresent
2828
resources:
2929
limits:
@@ -57,7 +57,7 @@ loopifdef(KIDX,0,``LIVE_'defn(`LIDX')`_'defn(`KIDX')_PROTOCOL',`dnl
5757
"-an",
5858
"-f", "flv", "`rtmp://cdn-service/'defn(`LIVE_'defn(`LIDX')`_'defn(`KIDX')_PROTOCOL)`/media_'defn(`LIDX')`_'defn(`KIDX')",
5959
')dnl
60-
"-abr_pipeline"]
60+
]
6161
volumes:
6262
- name: video-archive
6363
persistentVolumeClaim:

deployment/kubernetes/yaml/vod.yaml.m4

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ ifelse(defn(`PLATFORM'),`Xeon',,`dnl
5252
name: video-archive
5353
readOnly: true
5454
defn(`PLATFORM_RESOURCES')dnl
55+
initContainers:
56+
- image: busybox:latest
57+
imagePullPolicy: IfNotPresent
58+
name: init
59+
command: ["sh", "-c", "chown -R 1000:1000 /var/www/video"]
60+
volumeMounts:
61+
- mountPath: /var/www/video
62+
name: video-cache
5563
volumes:
5664
- name: video-cache
5765
persistentVolumeClaim:

doc/cmake.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
Use the following definitions to customize the building process:
55
- **REGISTRY**: Specify the URL of the privcay docker registry.
6-
- **PLATFORM**: Specify the target platform: `Xeon` or `XeonE3`.
6+
- **PLATFORM**: Specify the target platform: `Xeon` , `XeonE3` or `SG1`.
77
- **SCENARIO**: Specify the sample scenario(s): `transcode` or `cdn`.
88
- **NLIVES**: Specify the number of live streaming services in the deployment.
99
- **NVODS**: Specify the number of vod transcoding services in the deployment.

streaming-server/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
FROM openvisualcloud/xeon-ubuntu1804-media-nginx:20.7
2+
FROM openvisualcloud/xeon-ubuntu1804-media-nginx:21.3
33
COPY *.conf /etc/nginx/
44
CMD ["/usr/sbin/nginx"]
55
WORKDIR /home

xcode-server/SG1/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# tc_transcode_sg1
2+
3+
FROM openvisualcloud/sg1-ubuntu1804-media-ffmpeg:21.3
4+
5+
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y -q --no-install-recommends python3-tornado python3-kafka python3-kazoo python3-psutil && rm -rf /var/lib/apt/lists/*
6+
7+
COPY --from=tc_common /home/ /home/
8+
COPY *.py /home/
9+
CMD ["/home/main.py"]
10+
WORKDIR /home
11+
12+
####
13+
ARG UID
14+
ARG GID
15+
## must use ; here to ignore user exist status code
16+
RUN [ ${GID} -gt 0 ] && groupadd -f -g ${GID} docker; \
17+
[ ${UID} -gt 0 ] && useradd -d /home/docker -g ${GID} -K UID_MAX=${UID} -K UID_MIN=${UID} docker; \
18+
chown -R ${UID}:${GID} /home
19+
USER ${UID}
20+
####

xcode-server/Xeon/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# tc_transcode_xeon
22

3-
FROM openvisualcloud/xeon-ubuntu1804-media-ffmpeg:20.7
3+
FROM openvisualcloud/xeon-ubuntu1804-media-ffmpeg:21.3
44
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y -q --no-install-recommends python3-tornado python3-kafka python3-kazoo python3-psutil && rm -rf /var/lib/apt/lists/*
55

66
COPY --from=tc_common /home/ /home/

xcode-server/XeonE3/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# tc_transcode_xeone3
22

3-
FROM openvisualcloud/xeone3-ubuntu1804-media-ffmpeg:20.7
3+
FROM openvisualcloud/xeone3-ubuntu1804-media-ffmpeg:21.3
44

55
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y -q --no-install-recommends python3-tornado python3-kafka python3-kazoo python3-psutil && rm -rf /var/lib/apt/lists/*
66

0 commit comments

Comments
 (0)