Last active
December 31, 2019 01:21
-
-
Save Sighery/636a4cb05a59e12727ab08785a1d35dd to your computer and use it in GitHub Desktop.
Example usage of https://github.com/Sighery/arch-builder-docker
This file contains hidden or 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
| output/ |
This file contains hidden or 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
| docker build -t example-archbuilder . && | |
| docker create --name builder example-archbuilder && | |
| docker cp builder:/builds/output "$(pwd)" && | |
| docker rm -f builder |
This file contains hidden or 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
| FROM sighery/archbuilder:latest | |
| COPY --chown=builder PKGBUILD examplecommand ./ | |
| RUN makepkg -s --needed --noconfirm --noprogressbar | |
| CMD ["/bin/bash"] |
This file contains hidden or 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
| #!/bin/sh | |
| # /usr/bin/examplecommand | |
| printf "I do stuff!\n" | |
| exit 0 |
This file contains hidden or 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
| 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