Skip to content

Commit

Permalink
no-firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrehagen committed Oct 5, 2023
1 parent 66a2e89 commit d9aae3c
Showing 1 changed file with 31 additions and 24 deletions.
55 changes: 31 additions & 24 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
RUN apt-get update -qq && \
DEBIAN_FRONTEND=noninteractive apt-get install -qq --fix-missing \
acpi \
alacritty \
alsa-utils \
apt-file \
apt-utils \
Expand All @@ -50,6 +49,7 @@ RUN apt-get update -qq && \
bat \
bc \
build-essential \
cargo \
cmake \
cmatrix \
curl \
Expand Down Expand Up @@ -142,6 +142,15 @@ RUN apt-get update -qq && \
zsh && \
apt-file update

# Install alacritty
RUN apt-get update -qq && \
apt-get install -qq cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3 && \
git clone --depth 1 https://github.com/alacritty/alacritty /opt/alacritty && \
cd /opt/alacritty && \
cargo build --release --no-default-features --features=x11 && \
install target/release/alacritty /usr/local/bin && \
cargo clean

# Install arc
RUN wget -O /usr/local/bin/arc -q https://github.com/mholt/archiver/releases/download/v3.5.0/arc_3.5.0_linux_amd64 && \
chmod +x /usr/local/bin/arc
Expand Down Expand Up @@ -179,14 +188,8 @@ RUN apt-get update -qq && \
apt-get install -qq libdbus-1-dev libnotify-dev libsdl-pango-dev libxinerama-dev libxrandr-dev libxss-dev && \
git clone https://github.com/sabrehagen/dunst /opt/dunst && \
cd /opt/dunst && \
make all && \
make install

# Install firefox
RUN add-apt-repository -y ppa:mozillateam/ppa && \
echo '\nPackage: *\nPin: release o=LP-PPA-mozillateam\nPin-Priority: 1001' | tee /etc/apt/preferences.d/mozilla-firefox && \
echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:${distro_codename}";' | tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox && \
apt-get install -qq firefox
make WAYLAND=0 all && \
make WAYLAND=0 install

# Install gotop
RUN git clone --depth 1 https://github.com/xxxserxxx/gotop /opt/gotop && \
Expand All @@ -197,14 +200,11 @@ RUN git clone --depth 1 https://github.com/xxxserxxx/gotop /opt/gotop && \
install gotop /usr/local/bin

# Install gping
RUN apt-get update -qq && \
apt-get install -qq cargo && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
git clone --depth 1 https://github.com/orf/gping /opt/gping && \
RUN git clone --depth 1 https://github.com/orf/gping /opt/gping && \
cd /opt/gping && \
cargo install --locked --path ./gping && \
install target/release/gping /usr/local/bin && \
yes | $HOME/.cargo/bin/rustup self uninstall
cargo clean

# Install i3lock
RUN apt-get update -qq && \
Expand Down Expand Up @@ -274,13 +274,7 @@ RUN git clone --depth 10 https://github.com/gsamokovarov/jump /opt/jump && \

# Install kdenlive
RUN apt-get update -qq && \
apt-get install -qq \
frei0r-plugins \
kde-style-breeze \
kdenlive \
knewstuff-dialog \
mediainfo \
--no-install-recommends
apt-get install -qq frei0r-plugins kde-style-breeze kdenlive knewstuff-dialog mediainfo --no-install-recommends

# Install lazyvim
RUN git clone --depth 1 https://github.com/LazyVim/starter $HOME/.config/nvim && \
Expand All @@ -304,6 +298,15 @@ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
RUN git clone --depth 1 https://github.com/cloud-computer/noVNC.git /opt/noVNC && \
git clone --depth 1 https://github.com/novnc/websockify /opt/noVNC/utils/websockify

# Install op
RUN curl -sS https://downloads.1password.com/linux/keys/1password.asc | gpg --dearmor --output /usr/share/keyrings/1password-archive-keyring.gpg && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/1password-archive-keyring.gpg] https://downloads.1password.com/linux/debian/$(dpkg --print-architecture) stable main" | tee /etc/apt/sources.list.d/1password.list && \
mkdir -p /etc/debsig/policies/AC2D62742012EA22 /usr/share/debsig/keyrings/AC2D62742012EA22 && \
curl -sS https://downloads.1password.com/linux/debian/debsig/1password.pol | tee /etc/debsig/policies/AC2D62742012EA22/1password.pol && \
curl -sS https://downloads.1password.com/linux/keys/1password.asc | gpg --dearmor --output /usr/share/debsig/keyrings/AC2D62742012EA22/debsig.gpg && \
apt-get update -qq && \
apt-get install -qq 1password-cli

# Install picom
RUN apt-get update -qq && \
apt-get install -qq libconfig-dev libdbus-1-dev libegl-dev libev-dev libgl-dev libpcre3-dev libpixman-1-dev libx11-xcb-dev libxcb1-dev libxcb-composite0-dev libxcb-damage0-dev libxcb-dpms0-dev libxcb-glx0-dev libxcb-image0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-shape0-dev libxcb-util-dev libxcb-xfixes0-dev libxext-dev meson ninja-build uthash-dev && \
Expand Down Expand Up @@ -360,8 +363,7 @@ RUN apt-get update -qq && \
cmake .. -DCMAKE_BUILD_TYPE=Debug -DINCLUDE_DIRS=lib/iniparser/src -DCMAKE_INSTALL_PREFIX=/usr -DWAYLAND=OFF && \
make -j$(nproc) && \
make install && \
cp /usr/lib/xava/out_x11_cairo.so /usr/lib/xava/out_x11_opengl.so && \
rm -rf ../../xava
cp /usr/lib/xava/out_x11_cairo.so /usr/lib/xava/out_x11_opengl.so

# Install yarn
RUN curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
Expand All @@ -382,6 +384,11 @@ RUN yarn global add \
rebase-editor && \
rm -rf $HOME/.cache/yarn

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

# Configure openvpn
RUN mkdir -p $HOME/.config/openvpn && \
mknod $HOME/.config/openvpn/tun c 10 200 && \
Expand Down Expand Up @@ -416,7 +423,7 @@ USER $USER
WORKDIR $HOME

# Clone the desktop environment
RUN git clone https://github.com/sabrehagen/desktop-environment
RUN git clone https://github.com/sabrehagen/desktop-environment /opt/desktop-environment

# If the DOTFILES_CACHEBUST build arg is supplied, rebuild from static dotfiles onwards
ARG DOTFILES_CACHEBUST
Expand Down

0 comments on commit d9aae3c

Please sign in to comment.