Skip to content

Commit

Permalink
Fixed locale and moved all files to tree structure
Browse files Browse the repository at this point in the history
  • Loading branch information
CaderIdris committed Mar 25, 2024
1 parent 96f689b commit 0b798a8
Show file tree
Hide file tree
Showing 8 changed files with 520 additions and 13 deletions.
16 changes: 6 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,32 @@ RUN \
usermod -L build && \
echo "build ALL = NOPASSWD: /usr/bin/pacman" >> /etc/sudoers

# Copy package lists
COPY packages/*.pkg /tmp/

RUN tree /tmp/
# Copy files lists
COPY files/ /

# Upgrade packages
RUN \
pacman -Syu --noconfirm
RUN \
while IFS= read -r pkg; do pacman -S --verbose --noconfirm $pkg; done < /tmp/pacman.pkg
# Copy scripts
COPY ./scripts/ /tmp/scripts
while IFS= read -r pkg; do pacman -S --verbose --noconfirm $pkg; done < /tmp/packages/pacman.pkg

# Install yay as temp user and install packages
RUN mkdir -p /home/build/{.gnupg,.config/pacman} && chown -R build:users /home/build
USER build
RUN \
bash /tmp/scripts/install_yay.sh
RUN \
while IFS= read -r pkg; do yay -S --noconfirm $pkg; done < /tmp/yay.pkg
while IFS= read -r pkg; do yay -S --noconfirm $pkg; done < /tmp/packages/yay.pkg

USER root
# Install pipx packages
RUN \
while IFS= read -r pkg; do PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin pipx install $pkg; done < /tmp/pipx.pkg
while IFS= read -r pkg; do PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin pipx install $pkg; done < /tmp/packages/pipx.pkg


# Install npm packages
RUN \
while IFS= read -r pkg; do npm install -g $pkg; done < /tmp/npm.pkg
while IFS= read -r pkg; do npm install -g $pkg; done < /tmp/packages/npm.pkg

# Delete temp user
RUN \
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ It is intended to be used with distrobox but can be used as a docker or podman c
|bottom|pacman|CLI process/system monitor with graphs|
|zathura|pacman|PDF viewer|
|zathura-pdf-poppler|pacman|PDF plugin for Zathura|
|kitty|pacman|Terminal|
|wezterm|pacman|Terminal|
|sqlitebrowser|pacman|View sqlite files|
|direnv|pacman|Automatically loads environmental variables from whitelisted .env files when switching directories in terminal|
|just|pacman|Alternative to make|
Expand Down Expand Up @@ -85,7 +85,6 @@ It is intended to be used with distrobox but can be used as a docker or podman c
|python|pacman|Python|
|rustup|pacman|Rust|
|lua|pacman|Lua|
|powershell-bin|aur|Powershell scripting language|
|processing|aur|Processing 4 + IDE|
|python39|pacman|Python 3.9|
|python310|pacman|Python 3.10|
Expand Down
Loading

0 comments on commit 0b798a8

Please sign in to comment.