Skip to content

Commit 3f4b2f7

Browse files
committed
rust-mopidy-i3cleanup-xava
1 parent 94566de commit 3f4b2f7

File tree

1 file changed

+19
-42
lines changed

1 file changed

+19
-42
lines changed

docker/Dockerfile

Lines changed: 19 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ RUN apt-get update -qq && \
4949
bat \
5050
bc \
5151
build-essential \
52-
cargo \
5352
cava \
5453
cmake \
5554
cmatrix \
@@ -144,15 +143,18 @@ RUN apt-get update -qq && \
144143
zsh && \
145144
apt-file update
146145

146+
# Install rust
147+
RUN apt-get update -qq && \
148+
curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path && \
149+
ln -s $HOME/.cargo/bin/cargo /usr/local/bin && \
150+
ln -s $HOME/.cargo/bin/rustup /usr/local/bin && \
151+
rustup install 1.79.0
152+
147153
# Install aider
148154
RUN pipx install aider-chat
149155

150156
# Install alacritty
151-
RUN apt-get update -qq && \
152-
apt-get install -qq libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3 && \
153-
curl https://sh.rustup.rs -sSf | sh -s -- -y && \
154-
. $HOME/.cargo/env && \
155-
rustup install 1.79.0 && \
157+
RUN apt-get install -qq libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3 && \
156158
git clone --depth 1 https://github.com/sabrehagen/alacritty /opt/alacritty && \
157159
cd /opt/alacritty && \
158160
cargo build --release --no-default-features --features=x11 && \
@@ -243,16 +245,16 @@ RUN git clone --depth 1 https://github.com/xxxserxxx/gotop /opt/gotop && \
243245
install gotop /usr/local/bin
244246

245247
# Install gping
246-
RUN git clone --depth 100 https://github.com/orf/gping /opt/gping && \
248+
RUN git clone --depth 1 https://github.com/orf/gping /opt/gping && \
247249
cd /opt/gping && \
248-
git checkout fd1eccb && \
250+
# git checkout fd1eccb && \
249251
cargo install --locked --path ./gping && \
250252
install target/release/gping /usr/local/bin && \
251253
cargo clean
252254

253255
# Install i3
254256
RUN apt-get update -qq && \
255-
apt-get install -qq libev-dev libpango1.0-dev libstartup-notification0-dev libxcb-cursor-dev libxcb-icccm4-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-util0-dev libxcb-xinerama0-dev libxcb-xkb-dev libxcb-xrm-dev libxcb-xrm0 libxcb1-dev libxkbcommon-dev libxkbcommon-x11-dev libyajl-dev meson ninja-build && \
257+
apt-get install -qq dmenu libev-dev libpango1.0-dev libstartup-notification0-dev libxcb-cursor-dev libxcb-icccm4-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-util0-dev libxcb-xinerama0-dev libxcb-xkb-dev libxcb-xrm-dev libxcb-xrm0 libxcb1-dev libxkbcommon-dev libxkbcommon-x11-dev libyajl-dev meson ninja-build && \
256258
git clone --depth 1 https://github.com/i3/i3 /opt/i3 && \
257259
cd /opt/i3 && \
258260
mkdir build && \
@@ -270,22 +272,7 @@ RUN git clone --depth 1 https://github.com/vivien/i3blocks /opt/i3blocks && \
270272

271273
# Install i3lock
272274
RUN apt-get update -qq && \
273-
apt-get install -qq \
274-
libpam0g-dev \
275-
libcairo2-dev \
276-
libfontconfig1-dev \
277-
libxcb-composite0-dev \
278-
libev-dev \
279-
libx11-xcb-dev \
280-
libxcb-xkb-dev \
281-
libxcb-xinerama0-dev \
282-
libxcb-randr0-dev \
283-
libxcb-image0-dev \
284-
libxcb-util-dev \
285-
libxcb-xrm-dev \
286-
libxkbcommon-dev \
287-
libxkbcommon-x11-dev \
288-
libjpeg-dev && \
275+
apt-get install -qq libpam0g-dev libcairo2-dev libfontconfig1-dev libxcb-composite0-dev libx11-xcb-dev libjpeg-dev && \
289276
git clone --depth 1 https://github.com/Raymo111/i3lock-color /opt/i3lock && \
290277
cd /opt/i3lock && \
291278
sed -i 's/Num Lock//' i3lock.c && \
@@ -342,14 +329,6 @@ RUN git clone --depth 1 https://github.com/LazyVim/starter $HOME/.config/nvim &&
342329
tar xf lazygit.tar.gz lazygit && \
343330
install lazygit /usr/local/bin
344331

345-
# Install mopidy
346-
RUN mkdir -p /etc/apt/keyrings && \
347-
wget -qnv -O /etc/apt/keyrings/mopidy-archive-keyring.gpg https://apt.mopidy.com/mopidy.gpg && \
348-
wget -qnv -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/bullseye.list && \
349-
apt-get update -qq && \
350-
apt-get install -qq mopidy && \
351-
pip3 install Mopidy-Tidal --break-system-packages
352-
353332
# Install nerd fonts
354333
RUN wget -qnv https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/DejaVuSansMono.zip && \
355334
unzip -p DejaVuSansMono.zip DejaVuSansMNerdFont-Regular.ttf > /usr/share/fonts/truetype/dejavu/DejaVuSansMNerdFont-Regular.ttf && \
@@ -418,7 +397,7 @@ RUN curl -fsSL https://telegram.org/dl/desktop/linux | \
418397
# Install terraform
419398
RUN wget -qnv -O terraform.zip https://releases.hashicorp.com/terraform/1.1.0/terraform_1.1.0_linux_amd64.zip && \
420399
unzip terraform.zip && \
421-
mv terraform /usr/local/bin && \
400+
install terraform /usr/local/bin && \
422401
rm terraform.zip
423402

424403
# Install thorium
@@ -467,13 +446,11 @@ RUN git clone --depth 1 https://github.com/spieglt/whatfiles /opt/whatfiles && \
467446

468447
# Install xava
469448
RUN apt-get update -qq && \
470-
apt-get install -qq \
471-
libasound2-dev \
472-
libfftw3-dev \
473-
libiniparser1 \
474-
libpulse-dev \
475-
libsdl2-dev \
476-
libx11-dev && \
449+
apt-get install -qq libasound2-dev libcairo2-dev libfftw3-dev libglew-dev libiniparser1 libpipewire-0.3-dev libpulse-dev librsvg2-bin libsdl2-dev portaudio19-dev && \
450+
wget -qnv -O imagemagick.appimage https://download.imagemagick.org/ImageMagick/download/binaries/magick && \
451+
chmod +x imagemagick.appimage && \
452+
./imagemagick.appimage --appimage-extract && \
453+
cp -r squashfs-root/usr/* /usr/local && \
477454
git clone --depth 1 https://github.com/nikp123/xava && \
478455
mkdir xava/build && \
479456
cd xava/build && \
@@ -511,7 +488,7 @@ RUN yarn global add nativefier && \
511488
# Nativefy claude
512489
RUN nativefier https://claude.ai /opt --name claude --single-instance && \
513490
mv /opt/claude* /opt/claude && \
514-
ln -s /opt/claude/claude /usr/local/bin/claude
491+
ln -s /opt/claude/claude /usr/local/bin
515492

516493
# Install vs code wal theme
517494
RUN git clone --depth 1 https://github.com/sabrehagen/vscode-wal /opt/vscode-wal && \

0 commit comments

Comments
 (0)