Skip to content

Instantly share code, notes, and snippets.

@Sighery
Last active December 31, 2019 01:21
Show Gist options
  • Save Sighery/636a4cb05a59e12727ab08785a1d35dd to your computer and use it in GitHub Desktop.
Save Sighery/636a4cb05a59e12727ab08785a1d35dd to your computer and use it in GitHub Desktop.
docker build -t example-archbuilder . &&
docker create --name builder example-archbuilder &&
docker cp builder:/builds/output "$(pwd)" &&
docker rm -f builder
FROM sighery/archbuilder:latest
COPY --chown=builder PKGBUILD examplecommand ./
RUN makepkg -s --needed --noconfirm --noprogressbar
CMD ["/bin/bash"]
#!/bin/sh
# /usr/bin/examplecommand
printf "I do stuff!\n"
exit 0
pkgname=example-archbuilder
pkgver=1.0.0
pkgrel=1
pkgdesc="Example usage of https://github.com/Sighery/arch-builder-docker"
arch=('any')
license=('MIT')
source=("examplecommand")
md5sums=("1ae674c23c211cc4286a68bf7a8854b6")
package() {
install -Dm755 $srcdir/examplecommand $pkgdir/usr/bin/examplecommand
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment