Last active
June 21, 2024 05:20
-
-
Save bitscoper/0a87365830d804c316fb0304637459a5 to your computer and use it in GitHub Desktop.
Mixxx inside Docker to Use Icecast TLS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
# Go to: https://github.com/mixxxdj/mixxx/actions/runs/9238476537?pr=13285 | |
# Download and Extract "Ubuntu 22.04 Qt6 DEB.zip": https://github.com/mixxxdj/mixxx/actions/runs/9238476537/artifacts/1537877751 | |
# 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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment