forked from mixxxdj/mixxx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
61178b6
commit cebc3a9
Showing
5 changed files
with
115 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM ubuntu:24.04 | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get update && \ | ||
apt-get install -y \ | ||
build-essential \ | ||
git \ | ||
gdb \ | ||
sudo \ | ||
python3-pip \ | ||
pulseaudio-utils \ | ||
pipewire-alsa \ | ||
pipewire \ | ||
alsa-utils \ | ||
adwaita-qt \ | ||
libadwaitaqt1 \ | ||
udev \ | ||
vim \ | ||
clangd && \ | ||
pip3 install pre-commit --break-system-packages | ||
|
||
COPY tools/debian_buildenv.sh /tmp/ | ||
|
||
RUN /tmp/debian_buildenv.sh setup | ||
|
||
RUN userdel -f -r ubuntu && \ | ||
mkdir /home/developer && echo "developer ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/developer && \ | ||
mkdir -p \ | ||
/home/developer/.cache/pre-commit \ | ||
/home/developer/.devcontainer \ | ||
/home/developer/.mixxx \ | ||
/tmp/ccache && \ | ||
touch /home/developer/.devcontainer/.bash_history && \ | ||
chown -R 1000:1000 /home/developer/ /tmp/ccache && \ | ||
echo ". /etc/bash_completion\nexport PROMPT_COMMAND='history -a'\nexport HISTFILE='/home/developer/.devcontainer/.bash_history'" >> /home/developer/.bashrc |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"name": "mixxx", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"context": ".." | ||
}, | ||
"securityOpt": ["label=type:container_runtime_t"], | ||
"runArgs": [ | ||
// Uncomment the following to enable HID controller support in the container. Make sure to replace `/dev/hidraw7` with your device address | ||
// "--device=/dev/bus/usb/003/049", | ||
// "--device=/dev/hidraw7", | ||
"--network=host" // This is needed for native X.org support | ||
], | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": "false", | ||
"username": "developer", | ||
"userUid": "1000", | ||
"userGid": "1000", | ||
"upgradePackages": "false" | ||
} | ||
}, | ||
"initializeCommand": "touch ${localEnv:HOME}${localEnv:USERPROFILE}/.gitignore", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["llvm-vs-code-extensions.vscode-clangd", "eamodio.gitlens"] | ||
} | ||
}, | ||
"remoteEnv": { | ||
"DISPLAY": "${localEnv:DISPLAY::0}", | ||
"XDG_SESSION_DESKTOP": "${localEnv:XDG_SESSION_DESKTOP:gnome}", | ||
"XDG_SESSION_TYPE": "${localEnv:XDG_SESSION_TYPE:wayland}", | ||
"XAUTHORITY": "${localEnv:XAUTHORITY}", | ||
"WAYLAND_DISPLAY": "${localEnv:WAYLAND_DISPLAY:wayland-0}", | ||
"XDG_SESSION_CLASS": "${localEnv:XDG_SESSION_CLASS:user}", | ||
"XDG_RUNTIME_DIR": "${localEnv:XDG_RUNTIME_DIR:/run/user/1000}", | ||
"QT_QPA_PLATFORM": "${localEnv:QT_QPA_PLATFORM:wayland}" // Default to Wayland session, can also use 'xcb' to use X.org instead | ||
}, | ||
"remoteUser": "developer", | ||
"postCreateCommand": "git config --global core.excludesFile '/home/developer/.gitignore' && git config --global --add safe.directory ${containerWorkspaceFolder} && pre-commit install --overwrite --install-hooks", | ||
"mounts": [ | ||
"type=bind,source=${localEnv:HOME},target=${localEnv:HOME},rslave", | ||
"type=bind,source=${localEnv:XDG_RUNTIME_DIR},target=${localEnv:XDG_RUNTIME_DIR}", | ||
"type=bind,source=/var/run/dbus/system_bus_socket,target=/var/run/dbus/system_bus_socket", | ||
"type=bind,source=/dev/snd,target=/dev/snd", | ||
"type=bind,source=/media,target=/media,rslave", | ||
"type=bind,source=/mnt,target=/mnt,rslave", | ||
"type=bind,source=/run/media,target=/run/media,rslave", | ||
// Dev volumes used for persistence between containers | ||
"type=volume,source=mixxx-bashistory,target=/home/developer/.devcontainer", | ||
"type=volume,source=mixxx-precommit,target=/home/developer/.cache/pre-commit", | ||
"type=volume,source=mixxx-config,target=/home/developer/.mixxx", | ||
"type=volume,source=mixxx-ccache,target=/tmp/ccache" | ||
] | ||
} |
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
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
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