Giter VIP home page Giter VIP logo

docker-arch-build-aur's Introduction

No longer maintained

Use valdar/docker-arch-build-aur instead.

It's pushing images to both quay.io and hub.docker.com.


CI

Build AUR packages

The following command will download AUR package and build it:

$ docker pull maximbaz/arch-build-aur
$ docker run --rm -v $(pwd):/pkg maximbaz/arch-build-aur /bin/bash -c '/build-aur <package>'

Build repo packages

The following command will download repo package and build it:

$ docker pull maximbaz/arch-build-aur
$ docker run --rm -v $(pwd):/pkg maximbaz/arch-build-aur /bin/bash -c '/build-repo <package>'

Build PKGBUILD

The following command will build local PKGBUILD file (must reside in a folder mounted to /build):

$ docker pull maximbaz/arch-build-aur
$ docker run --rm -v $(pwd):/pkg -v $(pwd):/build maximbaz/arch-build-aur /bin/bash -c '/build-pkgbuild'

.SRCINFO file will be updated/created in /build directory.

Compiled package location

The binary will be placed in the /pkg folder, which in the example above is mounted to the current directory on the host.


docker-arch-build-aur's People

Contributors

argymeg avatar jannikw avatar maximbaz avatar qnixsynapse avatar valdar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-arch-build-aur's Issues

Few tips & tricks regarding docker image

Hey.

Check out my fork of your repo. Everything is the same, except this part: https://github.com/erkexzcx/docker-arch-build-aur/blob/master/Dockerfile#L3L5

  • pacman -S --noconfirm pacman-mirrorlist is needed otherwise when I try to compile a kernel, it tries to download multiple dependencies. Some of them, for unknown reason, fail to retrieve (e.g. imagemagick). It turned out that I have to force reinstall pacman-mirrorlist so it's kind of forced mirrorlist refresh. This step fixed the problem to me.

  • sed -i 's/#MAKEFLAGS="-j2"/MAKEFLAGS="-j$(nproc)"/' /etc/makepkg.conf basically replaces #MAKEFLAGS="-j2" with MAKEFLAGS="-j$(nproc)" in /etc/makepkg.conf so docker image uses all available cores when compiling certain apps.

Error using `maximbaz/arch-build-aur:latest` build image on fedora

I get the following error if I try to use maximbaz/arch-build-aur:latest to build my AUR packages:

error: failed to initialize alpm library
(could not find or read directory: /var/lib/pacman/)

the error seems related to #12 in fact if I rebuild the image locally adding:

# WORKAROUND for glibc 2.33 and old Docker
# See https://github.com/actions/virtual-environments/issues/2658
# Thanks to https://github.com/lxqt/lxqt-panel/pull/1562
RUN patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst && \
    curl -LO "https://repo.archlinuxcn.org/x86_64/$patched_glibc" && \
    bsdtar -C / -xvf "$patched_glibc"

to the Dockerfile all works as expected...

Failed to build chromium-vaapi

Got a problem about absence of libffi.so during build.
Workaround (command to run): pacman -Syyuu --noconfirm && /build-aur chromium-vaapi

Sudo command not found

Running the following example:

$ docker run --rm -v $(pwd):/pkg maximbaz/arch-build-aur /bin/bash -c '/build-aur aurutils'

Results in

Unable to find image 'maximbaz/arch-build-aur:latest' locally
latest: Pulling from maximbaz/arch-build-aur
4fe7fb041cb7: Pull complete 
ee589992b846: Pull complete 
d2923bac2c82: Pull complete 
888a4a5c19b4: Pull complete 
054ac236916a: Pull complete 
f7aa77e18e8d: Pull complete 
Digest: sha256:f9d3accbd98c673471c89df3403044ecd499376440ad54a654e725b6d63b2816
Status: Downloaded newer image for maximbaz/arch-build-aur:latest
/build-aur: line 14: sudo: command not found

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.