mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
add pptp-arm
This commit is contained in:
parent
a653c5d553
commit
fa2efbfdd6
29
murmur/README.md
Normal file
29
murmur/README.md
Normal file
@ -0,0 +1,29 @@
|
||||
murmur
|
||||
======
|
||||
|
||||
## docker-compose.yml
|
||||
|
||||
```yaml
|
||||
murmur:
|
||||
image: vimagick/murmur
|
||||
ports:
|
||||
- "64738:64738/tcp"
|
||||
- "64738:64738/udp"
|
||||
restart: always
|
||||
```
|
||||
|
||||
## Server Setup
|
||||
|
||||
```bash
|
||||
$ docker-compose up -d
|
||||
$ docker-compose logs
|
||||
```
|
||||
|
||||
> Superuser password was generated at startup.
|
||||
|
||||
## Client Setup
|
||||
|
||||
- Android: <https://play.google.com/store/apps/details?id=com.morlunk.mumbleclient.free>
|
||||
- IOS:
|
||||
- Windows:
|
||||
- MacOSX:
|
@ -1,5 +1,5 @@
|
||||
node-red:
|
||||
image: vimagick/node-red-arm
|
||||
image: easypi/node-red-arm
|
||||
ports:
|
||||
- "1880:1880"
|
||||
volumes:
|
||||
|
@ -2,13 +2,12 @@
|
||||
# Dockerfile for pptp
|
||||
#
|
||||
|
||||
FROM debian
|
||||
FROM alpine:edge
|
||||
MAINTAINER kev <noreply@easypi.info>
|
||||
|
||||
RUN set -xe \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y iptables pptp-linux \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN apk add --no-cache \
|
||||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
|
||||
pptpclient
|
||||
|
||||
COPY docker-entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
15
pptp/Dockerfile.debian
Normal file
15
pptp/Dockerfile.debian
Normal file
@ -0,0 +1,15 @@
|
||||
#
|
||||
# Dockerfile for pptp
|
||||
#
|
||||
|
||||
FROM debian
|
||||
MAINTAINER kev <noreply@easypi.info>
|
||||
|
||||
RUN set -xe \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y pptp-linux \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY docker-entrypoint.sh /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
14
pptp/arm/Dockerfile
Normal file
14
pptp/arm/Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
#
|
||||
# Dockerfile for pptp-arm
|
||||
#
|
||||
|
||||
FROM easypi/alpine-arm:edge
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
RUN apk add --no-cache \
|
||||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
|
||||
pptpclient
|
||||
|
||||
COPY docker-entrypoint.sh /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
10
pptp/arm/docker-compose.yml
Normal file
10
pptp/arm/docker-compose.yml
Normal file
@ -0,0 +1,10 @@
|
||||
pptp:
|
||||
image: easypi/pptp-arm
|
||||
environment:
|
||||
- SERVER=192.168.31.222
|
||||
- TUNNEL=vps
|
||||
- USERNAME=username
|
||||
- PASSWORD=password
|
||||
net: host
|
||||
privileged: yes
|
||||
restart: unless-stopped
|
25
pptp/arm/docker-entrypoint.sh
Executable file
25
pptp/arm/docker-entrypoint.sh
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
cat > /etc/ppp/peers/${TUNNEL} <<_EOF_
|
||||
pty "pptp ${SERVER} --nolaunchpppd"
|
||||
name "${USERNAME}"
|
||||
password "${PASSWORD}"
|
||||
remotename PPTP
|
||||
require-mppe-128
|
||||
file /etc/ppp/options.pptp
|
||||
ipparam "${TUNNEL}"
|
||||
_EOF_
|
||||
|
||||
cat > /etc/ppp/ip-up <<"_EOF_"
|
||||
#!/bin/sh
|
||||
ip route add 0.0.0.0/1 dev $1
|
||||
ip route add 128.0.0.0/1 dev $1
|
||||
_EOF_
|
||||
|
||||
cat > /etc/ppp/ip-down <<"_EOF_"
|
||||
#!/bin/sh
|
||||
ip route del 0.0.0.0/1 dev $1
|
||||
ip route del 128.0.0.0/1 dev $1
|
||||
_EOF_
|
||||
|
||||
exec pon ${TUNNEL} debug dump logfd 2 nodetach persist "$@"
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
cat > /etc/ppp/peers/${TUNNEL} <<_EOF_
|
||||
pty "pptp ${SERVER} --nolaunchpppd"
|
||||
@ -10,19 +10,16 @@ file /etc/ppp/options.pptp
|
||||
ipparam "${TUNNEL}"
|
||||
_EOF_
|
||||
|
||||
cat > /etc/ppp/ip-up.d/9999routes <<_EOF_
|
||||
#!/bin/bash
|
||||
ip route add 0.0.0.0/1 dev \$1
|
||||
ip route add 128.0.0.0/1 dev \$1
|
||||
cat > /etc/ppp/ip-up <<"_EOF_"
|
||||
#!/bin/sh
|
||||
ip route add 0.0.0.0/1 dev $1
|
||||
ip route add 128.0.0.0/1 dev $1
|
||||
_EOF_
|
||||
|
||||
cat > /etc/ppp/ip-down.d/9999routes <<_EOF_
|
||||
#!/bin/bash
|
||||
ip route del 0.0.0.0/1 dev \$1
|
||||
ip route del 128.0.0.0/1 dev \$1
|
||||
cat > /etc/ppp/ip-down <<"_EOF_"
|
||||
#!/bin/sh
|
||||
ip route del 0.0.0.0/1 dev $1
|
||||
ip route del 128.0.0.0/1 dev $1
|
||||
_EOF_
|
||||
|
||||
chmod +x /etc/ppp/ip-up.d/9999routes
|
||||
chmod +x /etc/ppp/ip-down.d/9999routes
|
||||
|
||||
exec pon ${TUNNEL} debug dump logfd 2 nodetach persist "$@"
|
||||
|
@ -29,7 +29,7 @@ client:
|
||||
image: easypi/rtmp-client-arm
|
||||
# command:
|
||||
# - ffmpeg -i $$RTMP_DEV -video_size 800x600 -vf "hflip,vflip" -f flv $$RTMP_URI
|
||||
# - ffmpeg -f alsa -i default -i $$RTMP_DEV -c:a aac -c:v libx264 -f flv $$RTMP_URI
|
||||
# - ffmpeg -f alsa -ac 1 -ar 22050 -i hw:1 -i $$RTMP_DEV -c:a aac -c:v flv1 -f flv $$RTMP_URI
|
||||
devices:
|
||||
# - /dev/snd
|
||||
- /dev/video0
|
||||
@ -94,10 +94,17 @@ URL: rtmp://192.168.31.254/live/
|
||||
Streaming key: webcam
|
||||
```
|
||||
|
||||
## Player Setup
|
||||
|
||||
- vlc
|
||||
- ffplay
|
||||
- [online](https://www.hlsplayer.net/rtmp-player)
|
||||
|
||||
## References
|
||||
|
||||
- https://github.com/arut/nginx-rtmp-module/wiki/Directives
|
||||
- https://trac.ffmpeg.org/wiki/StreamingGuide
|
||||
- https://trac.ffmpeg.org/wiki/Capture/Webcam
|
||||
- https://trac.ffmpeg.org/wiki/Capture/ALSA
|
||||
- https://trac.ffmpeg.org/wiki/EncodingForStreamingSites
|
||||
- http://apk-dl.com/vlc-for-android/org.videolan.vlc/
|
||||
|
Loading…
Reference in New Issue
Block a user