Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
Use pacaur to install AUR packages instead yaourt
Browse files Browse the repository at this point in the history
  • Loading branch information
Kensuke Kosaka committed Oct 7, 2016
1 parent 47cec62 commit e55cb75
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 18 deletions.
36 changes: 29 additions & 7 deletions latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,41 @@ RUN ln -s /usr/lib/libncursesw.so.6 /usr/lib/libncursesw.so.5
RUN pacman-db-upgrade > /dev/null
RUN trust extract-compat

# Install yaourt
RUN pacman -Syu --noconfirm patch > /dev/null
COPY patches/pacman.conf.patch /tmp/pacman.conf.patch
RUN patch -u /etc/pacman.conf < /tmp/pacman.conf.patch && rm -f /tmp/pacman.conf.patch
RUN pacman -Syu yaourt --noconfirm > /dev/null

# Add normal user who can escalate to root without a password
RUN pacman -Syu --noconfirm sudo > /dev/null
RUN pacman -Syu --noconfirm base-devel &> /dev/null
COPY patches/sudoers.patch /tmp/sudoers.patch
RUN patch -u /etc/sudoers < /tmp/sudoers.patch && rm -f /tmp/sudoers.patch
RUN chown root:root /etc/sudoers && chmod 440 /etc/sudoers
RUN pacman -Syu --noconfirm util-linux &> /dev/null
RUN useradd -m -d /home/user -s /bin/bash -g users -G users,wheel user

# INSTALL pacaur
## Install git
RUN pacman -Syu --noconfirm git > /dev/null
## Install cower
USER user
RUN curl -L -o /tmp/cower.tar.gz --silent https://aur.archlinux.org/cgit/aur.git/snapshot/cower.tar.gz && \
tar -zxvf /tmp/cower.tar.gz -C /tmp/ > /dev/null && \
cd /tmp/cower && \
gpg --recv-keys --keyserver hkp://pgp.mit.edu 1EB2638FF56C0C53 2> /dev/null && \
export PATH=/usr/bin/core_perl:$PATH && \
makepkg -sri --noconfirm &> /dev/null && \
rm -rf /tmp/cower* && \
cd /
USER root
## Install expac
RUN pacman -Syu --noconfirm expac > /dev/null
# Install pacaur
USER user
RUN curl -L -o /tmp/pacaur.tar.gz --silent https://aur.archlinux.org/cgit/aur.git/snapshot/pacaur.tar.gz && \
tar -zxvf /tmp/pacaur.tar.gz -C /tmp/ > /dev/null && \
cd /tmp/pacaur && \
export PATH=/usr/bin/core_perl:$PATH && \
makepkg -sri --noconfirm &> /dev/null && \
rm -rf /tmp/pacaur* && \
cd /
USER root


RUN pacman -Scc --noconfirm > /dev/null
ONBUILD RUN pacman -Syu --noconfirm &> /dev/null
11 changes: 0 additions & 11 deletions latest/patches/pacman.conf.patch

This file was deleted.

0 comments on commit e55cb75

Please sign in to comment.