Enable backdoor in all services, and add telnet to containers

mike/backdoor
Mike Lang 6 years ago
parent f9aa6ef0e4
commit df73225a5b

@ -1,6 +1,7 @@
FROM alpine:3.7 FROM alpine:3.7
# dependencies needed for compiling c extensions # dependencies needed for compiling c extensions
RUN apk --update add py2-pip gcc python-dev musl-dev # also busybox-extras for telnet for easier use of backdoor
RUN apk --update add py2-pip gcc python-dev musl-dev busybox-extras
# Install common lib first as it changes less # Install common lib first as it changes less
COPY common /tmp/common COPY common /tmp/common

@ -29,6 +29,10 @@
backfiller: 8002, backfiller: 8002,
}, },
// The local port within each container to bind the backdoor server on.
// You can exec into the container and telnet to this port to get a python shell.
backdoor_port:: 1234,
// Other nodes to backfill from. You should not include the local node. // Other nodes to backfill from. You should not include the local node.
peers:: [ peers:: [
"http://wubloader.codegunner.com/" "http://wubloader.codegunner.com/"
@ -47,6 +51,7 @@
command: [ command: [
$.channel, $.channel,
"--qualities", std.join(",", $.qualities), "--qualities", std.join(",", $.qualities),
"--backdoor-port", std.toString($.backdoor_port),
], ],
// Mount the segments directory at /mnt // Mount the segments directory at /mnt
volumes: ["%s:/mnt" % $.segments_path], volumes: ["%s:/mnt" % $.segments_path],
@ -66,6 +71,9 @@
// Expose on the configured host port by mapping that port to the default // Expose on the configured host port by mapping that port to the default
// port for restreamer, which is 8000. // port for restreamer, which is 8000.
ports: ["%s:8000" % $.ports.restreamer], ports: ["%s:8000" % $.ports.restreamer],
command: [
"--backdoor-port", std.toString($.backdoor_port),
],
}, },
backfiller: { backfiller: {
@ -75,6 +83,7 @@
"--stream", $.channel, "--stream", $.channel,
"-v", std.join(",", $.qualities), "-v", std.join(",", $.qualities),
"--nodes", std.join(",", $.peers), "--nodes", std.join(",", $.peers),
"--backdoor-port", std.toString($.backdoor_port),
], ],
// Mount the segments directory at /mnt // Mount the segments directory at /mnt
volumes: ["%s:/mnt" % $.segments_path], volumes: ["%s:/mnt" % $.segments_path],

@ -1,6 +1,7 @@
FROM alpine:3.7 FROM alpine:3.7
# dependencies needed for compiling c extensions # dependencies needed for compiling c extensions
RUN apk --update add py2-pip gcc python-dev musl-dev # also busybox-extras for telnet for easier use of backdoor
RUN apk --update add py2-pip gcc python-dev musl-dev busybox-extras
# Install common lib first as it changes less # Install common lib first as it changes less
COPY common /tmp/common COPY common /tmp/common

@ -1,6 +1,7 @@
FROM alpine:3.7 FROM alpine:3.7
# dependencies needed for compiling c extensions, plus ffmpeg for cutting # dependencies needed for compiling c extensions, plus ffmpeg for cutting
RUN apk --update add py2-pip gcc python-dev musl-dev ffmpeg # also busybox-extras for telnet for easier use of backdoor
RUN apk --update add py2-pip gcc python-dev musl-dev ffmpeg busybox-extras
# Install common lib first as it changes less # Install common lib first as it changes less
COPY common /tmp/common COPY common /tmp/common

Loading…
Cancel
Save