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

Commit ccf5304

Browse files
author
QuPengfei
authored
Merge pull request #193 from QuPengfei/multi-device
upgrade docker image to 21.3
2 parents 9183f2a + e4a378a commit ccf5304

File tree

7 files changed

+14
-6
lines changed

7 files changed

+14
-6
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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:

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/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)