Last active
June 20, 2018 14:01
-
-
Save philipp-classen/7605b055462a08befde7fe009deb6b83 to your computer and use it in GitHub Desktop.
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
# To build: | |
# $ docker build -t aur-cliqz . | |
# | |
# To run (experimental): | |
# $ xhost +local: | |
# $ export XSOCK=/tmp/.X11-unix/X0 | |
# $ docker run --rm -v $XSOCK:$XSOCK aur-cliqz cliqz | |
# | |
# To remove local X11 permissions again: | |
# $ xhost - | |
FROM base/archlinux | |
RUN pacman --noconfirm -Syu && pacman --noconfirm -S base-devel sudo | |
RUN useradd builduser -m && \ | |
passwd -d builduser && \ | |
printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers && \ | |
sudo -u builduser bash -c 'cd ~ && curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/cliqz.tar.gz && tar xzfv cliqz.tar.gz' | |
WORKDIR /home/builduser/cliqz | |
# workaround: pulseaudio is a missing build-dep | |
RUN pacman --noconfirm -S pulseaudio | |
RUN sudo -u builduser bash -c 'cd /home/builduser/cliqz && makepkg -s --noconfirm' | |
RUN ls -alhg | |
RUN ls cliqz*tar.xz && pacman --noconfirm -U cliqz*tar.xz | |
RUN useradd user -m | |
USER user | |
WORKDIR /home/user | |
ENV DISPLAY :0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment