Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
ZLMediaKit
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
张翔宇
ZLMediaKit
Commits
43579a56
Commit
43579a56
authored
4 years ago
by
xiongziliang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
b169f94c
84be3fbf
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
28 行增加
和
22 行删除
+28
-22
README.md
+3
-4
build_docker_images.sh
+5
-2
docker/ubuntu16.04/Dockerfile.devel
+4
-3
docker/ubuntu16.04/Dockerfile.runtime
+6
-5
docker/ubuntu18.04/Dockerfile.devel
+4
-3
docker/ubuntu18.04/Dockerfile.runtime
+6
-5
没有找到文件。
README.md
查看文件 @
43579a56
...
...
@@ -140,12 +140,11 @@
## Docker 镜像
你可以从Docker Hub下载已经编译好的镜像并启动它:
```
bash
docker run
-id
-p
1935:1935
-p
8080:80 gemfield/zlmediakit
docker run
-id
-p
1935:1935
-p
8080:80 gemfield/zlmediakit
:20.04-runtime-ubuntu18.04
```
你
要可以在Ubuntu 16.04下
根据Dockerfile编译镜像:
你
也可以
根据Dockerfile编译镜像:
```
bash
cd
docker
docker build
-t
zlmediakit
.
bash build_docker_images.sh
```
## 使用方法
...
...
This diff is collapsed.
Click to expand it.
build_docker_images.sh
查看文件 @
43579a56
#!/bin/bash
docker build
-t
gemfield/zlmediakit:20.01-runtime-ubuntu18.04
-f
docker/ubuntu18.04/Dockerfile.runtime
.
#docker build -t gemfield/zlmediakit:20.01-devel-ubuntu18.04 -f docker/ubuntu18.04/Dockerfile.devel .
set
-e
docker build
-t
gemfield/zlmediakit:20.04-runtime-ubuntu18.04
-f
docker/ubuntu18.04/Dockerfile.runtime
.
docker build
-t
gemfield/zlmediakit:20.04-devel-ubuntu18.04
-f
docker/ubuntu18.04/Dockerfile.devel
.
docker build
-t
gemfield/zlmediakit:20.04-runtime-ubuntu16.04
-f
docker/ubuntu16.04/Dockerfile.runtime
.
docker build
-t
gemfield/zlmediakit:20.04-devel-ubuntu16.04
-f
docker/ubuntu16.04/Dockerfile.devel
.
This diff is collapsed.
Click to expand it.
docker/ubuntu16.04/Dockerfile.devel
查看文件 @
43579a56
...
...
@@ -23,9 +23,10 @@ RUN apt-get update && \
libmysqlclient-dev \
libx264-dev \
libfaac-dev \
ffmpeg \
libmp4v2-dev && \
apt autoremove -y && \
apt clean -y && \
apt
-get
autoremove -y && \
apt
-get
clean -y && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /opt/media
...
...
@@ -37,7 +38,7 @@ RUN git clone --depth=1 https://github.com/xiongziliang/ZLMediaKit && \
WORKDIR /opt/media/ZLMediaKit/build
RUN cmake -DCMAKE_BUILD_TYPE=Release .. && \
make
-j4
make
ENV PATH /opt/media/ZLMediaKit/release/linux/Release/:$PATH
CMD MediaServer
This diff is collapsed.
Click to expand it.
docker/ubuntu16.04/Dockerfile.runtime
查看文件 @
43579a56
...
...
@@ -24,8 +24,8 @@ RUN apt-get update && \
libx264-dev \
libfaac-dev \
libmp4v2-dev && \
apt autoremove -y && \
apt clean -y && \
apt
-get
autoremove -y && \
apt
-get
clean -y && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /opt/media
...
...
@@ -37,7 +37,7 @@ RUN git clone --depth=1 https://github.com/xiongziliang/ZLMediaKit && \
WORKDIR /opt/media/ZLMediaKit/build
RUN cmake -DCMAKE_BUILD_TYPE=Release .. && \
make
-j4
make
FROM ubuntu:16.04
LABEL maintainer "Gemfield <gemfield@civilnet.cn>"
...
...
@@ -51,9 +51,10 @@ RUN apt-get update && \
libssl-dev \
libx264-dev \
libfaac-dev \
ffmpeg \
libmp4v2-dev && \
apt autoremove -y && \
apt clean -y && \
apt
-get
autoremove -y && \
apt
-get
clean -y && \
rm -rf /var/lib/apt/lists/*
WORKDIR /opt/media/bin/
...
...
This diff is collapsed.
Click to expand it.
docker/ubuntu18.04/Dockerfile.devel
查看文件 @
43579a56
...
...
@@ -24,9 +24,10 @@ RUN apt-get update && \
libmysqlclient-dev \
libx264-dev \
libfaac-dev \
ffmpeg \
libmp4v2-dev && \
apt autoremove -y && \
apt clean -y && \
apt
-get
autoremove -y && \
apt
-get
clean -y && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /opt/media
...
...
@@ -38,7 +39,7 @@ RUN git clone --depth=1 https://github.com/xiongziliang/ZLMediaKit && \
WORKDIR /opt/media/ZLMediaKit/build
RUN cmake -DCMAKE_BUILD_TYPE=Release .. && \
make
-j4
make
ENV PATH /opt/media/ZLMediaKit/release/linux/Release:$PATH
CMD MediaServer
This diff is collapsed.
Click to expand it.
docker/ubuntu18.04/Dockerfile.runtime
查看文件 @
43579a56
...
...
@@ -24,8 +24,8 @@ RUN apt-get update && \
libx264-dev \
libfaac-dev \
libmp4v2-dev && \
apt autoremove -y && \
apt clean -y && \
apt
-get
autoremove -y && \
apt
-get
clean -y && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /opt/media
...
...
@@ -37,7 +37,7 @@ RUN git clone --depth=1 https://github.com/xiongziliang/ZLMediaKit && \
WORKDIR /opt/media/ZLMediaKit/build
RUN cmake -DCMAKE_BUILD_TYPE=Release .. && \
make
-j4
make
FROM ubuntu:18.04
LABEL maintainer "Gemfield <gemfield@civilnet.cn>"
...
...
@@ -51,9 +51,10 @@ RUN apt-get update && \
libssl-dev \
libx264-dev \
libfaac-dev \
ffmpeg \
libmp4v2-dev && \
apt autoremove -y && \
apt clean -y && \
apt
-get
autoremove -y && \
apt
-get
clean -y && \
rm -rf /var/lib/apt/lists/*
WORKDIR /opt/media/bin/
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论