Video Develop Environment

ffmpeg-develop: vscode + docker + ssh

Dockerfile

1FROM vonsago/ffmpeg-devel
2RUN mkdir /var/run/sshd && apt-get  install -y openssh-server  --allow-unauthenticated && echo 'root:root' | chpasswd && sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && useradd -ms /bin/bash debugger && echo 'debugger:pwd' | chpasswd
3RUN wget "http://ftp.gnu.org/gnu/gdb/gdb-7.11.tar.gz" && tar -xvzf gdb-7.11.tar.gz && cd gdb-7.11 && ./configure && make && make install 
4RUN apt-get install -y --allow-unauthenticated clang
5CMD ["/usr/sbin/sshd", "-D"]
 1docker build -f Dockerfil.dev --no-cache -t vonsago/ffmpeg-dev .
 2docker run -d --cap-add sys_ptrace -p127.0.0.1:2222:22 vonsago/ffmpeg-dev
 3
 4FAQ: if nessary, Debug:
 51.ps -e|grep ssh
 6*the remote ip should not in ~/.ssh/known_hosts*
 7/usr/sbin/sshd
 8/etc/init.d/ssh restart
 92.WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! - vim ~/.ssh/known_hosts , rm 2222 port
10Ssh-keygen -f "/root/.ssh/known_hosts" -R "[127.0.0.1]:2233"
11use vscode: https://code.visualstudio.com/docs/containers/ssh
12
13---
14
15>>> import requests
16>>> req = requests.Request('GET', 'https://httpbin.org/get')
17>>> r = req.prepare()
18>>> r
19<PreparedRequest [GET]>
20
21>>> s = requests.Session()
22>>> s.send(r)
23<Response [200]>
24
25./configure --extra-libs=-lpthread --extra-libs=-lm --enable-gpl --enable-libfdk_aac --enable-libx264 --enable-nonfree --disable-asm
26


流媒体词汇表
Linux Path Description
comments powered by Disqus