Skip to content

add docker support (example included) #285

@grrvs

Description

@grrvs

Hi there, I just tried to run chansort in docker.

This is the Dockerfile:

FROM scottyhardy/docker-wine:latest
ARG CHANSORT_RELEASE="2021-10-24"
RUN xvfb-run winetricks -q dotnet48
RUN mkdir /app
RUN wget https://github.com/PredatH0r/ChanSort/releases/download/v${CHANSORT_RELEASE}/ChanSort_${CHANSORT_RELEASE}.zip -O /tmp/ChanSort_${CHANSORT_RELEASE}.zip
RUN unzip /tmp/ChanSort_${CHANSORT_RELEASE}.zip -d /app/
RUN rm -rf /tmp/ChanSort_*
ENV RUN_AS_ROOT=yes
WORKDIR /app/ChanSort_${CHANSORT_RELEASE}/
ENTRYPOINT ["/usr/bin/entrypoint", "wine", "ChanSort.exe"] 

And this is how I build and run (on ubuntu focal):

# build the image
docker build . -t chansort:latest

# run the container - please don't forget to update /path/to/channel_list wherever
docker run -it \
  --rm \
  --hostname="$(hostname)" \
  --env="DISPLAY" \
  --volume="${XAUTHORITY:-${HOME}/.Xauthority}:/root/.Xauthority:ro" \
  --volume="/tmp/.X11-unix:/tmp/.X11-unix:ro" \
  --volume="/path/to/channel_list:/data" \
  chansort:latest

Instructions were taken straight from scottyhardy/docker-wine.

Chansort is starting and I am able to edit and save a channel list but I did not test that list on a TV (yet).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions