Public Repository

Last pushed: 4 months ago
Short Description
A script for interactively controlling a Bravia TV.
Full Description

Run using the following command after setting the TV_IP and AUTHKEY environment variables locally:
docker run -it --rm -e AUTHKEY -e TV_IP craigrhodes/tv

ENV VARS:
TV_IP (IP Address of TV)
AUTHKEY (4 digit keycode to TV)

Dockerfile:
FROM ubuntu:17.04
ARG user=tv
ENV TV_IP=""
ENV AUTHKEY=""
RUN apt-get update && apt-get -y install sudo
RUN echo "$user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN adduser --disabled-password --shell /bin/bash --ingroup sudo --gecos "$user,,," $user
WORKDIR /home/$user
USER $user
RUN sudo apt-get -y install curl
COPY send_command /usr/local/bin/
COPY tv /usr/local/bin/
CMD ["/usr/local/bin/tv"]

Docker Pull Command
Owner
craigrhodes

Comments (0)