Mixxx with Icecast TLS Support Inside Docker

Go to https://github.com/mixxxdj/mixxx/actions/runs/9238476537?pr=13285 and download Ubuntu 22.04 Qt6 DEB.zip (https://github.com/mixxxdj/mixxx/actions/runs/9238476537/artifacts/1537877751). Extract the ZIP file to get the mixxx-2.5-alpha-397-g8c8c12eb20.deb file.

Dockerfile

# By Abdullah As-Sadeed

# Start from an Ubuntu 22.04 image
FROM ubuntu:22.04

# Update package list, upgrade installed packages, and install required packages
RUN apt update && apt dist-upgrade -y && apt install -y gdebi-core ca-certificates

# Copy the .deb package into the container
COPY mixxx-2.5-alpha-397-g8c8c12eb20.deb /tmp

# Install the .deb package
RUN gdebi -n /tmp/mixxx-2.5-alpha-397-g8c8c12eb20.deb

# Clean up
RUN apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Set the DISPLAY environment variable
ENV DISPLAY=unix$DISPLAY

# Run Mixxx
CMD ["mixxx"]

Start.sh

#!/bin/bash

# By Abdullah As-Sadeed

# Build container image
docker build -t mixxx .

# Allow docker to connect to X server
xhost +local:docker

# Run container
docker run -it --rm -e DISPLAY=$DISPLAY \
    -e XDG_RUNTIME_DIR=/tmp/runtime-root \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v /dev/snd:/dev/snd --privileged \
    -v ~/Music:/root/Music \
    -v /tmp/.mixxx:/root/.mixxx \
    mixxx
Abdullah As-Sadeed
Abdullah As-Sadeed

Prefers coding from scratch. Loves the Linux kernel.

Leave a Reply