Package Details: source-to-image-bin 1.3.9-2

Git Clone URL: https://aur.archlinux.org/source-to-image-bin.git (read-only, click to copy)
Package Base: source-to-image-bin
Description: A tool for building artifacts from source and injecting into container images
Upstream URL: https://github.com/openshift/source-to-image
Keywords: s2i source-to-image sti
Licenses: Apache-2.0
Submitter: EvaristeGalois11
Maintainer: EvaristeGalois11
Last Packager: EvaristeGalois11
Votes: 3
Popularity: 0.003545
First Submitted: 2023-07-26 10:06 (UTC)
Last Updated: 2024-04-04 22:36 (UTC)

Latest Comments

gangelop commented on 2017-11-04 10:55 (UTC) (edited on 2017-11-04 11:46 (UTC) by gangelop)

One more improvement: s2i can generate bash and zsh completion files. We can make that part of the package. --- PKGBUILD.old 2017-11-04 11:51:48.947022371 +0100 +++ PKGBUILD 2017-11-04 12:44:51.888859102 +0100 @@ -3,7 +3,7 @@ _release=v1.1.7 _commit=226afa1 pkgver=1.1.7 -pkgrel=4 +pkgrel=5 pkgdesc="A tool for building/building artifacts from source and injecting into docker images" arch=('i686' 'x86_64') url="https://github.com/openshift/source-to-image" @@ -12,10 +12,13 @@ md5sums=('e23e47bdef21a82e091512cc83080d4e') build() { - echo "Installing source-to-image" + $srcdir/s2i completion bash > $srcdir/s2i.bash + $srcdir/s2i completion zsh > $srcdir/s2i.zsh } package() { install -D -m755 $srcdir/s2i $pkgdir/usr/bin/s2i + install -D -m755 $srcdir/s2i.bash $pkgdir/usr/share/bash-completion/completions/s2i + install -D -m755 $srcdir/s2i.zsh $pkgdir/usr/share/zsh/site-functions/_s2i ln -s s2i $pkgdir/usr/bin/sti }

gangelop commented on 2017-11-03 22:59 (UTC)

> I didn't know how to handle symbolic links in PKGBUILD. Me neither, apparently :) Now to find out how to create docker images with s2i......

drejmar commented on 2017-11-03 22:51 (UTC)

Hi George. Thanks for your advice. I didn't know how to handle symbolic links in PKGBUILD.

gangelop commented on 2017-11-03 22:44 (UTC)

Also, I made an error in my initial comment. If you use "install" as I suggested, it will install a copy of the actual binary and not a symlink. So just simply create the symlink with ln. package() { install -D -m755 $srcdir/s2i $pkgdir/usr/bin/s2i ln -s s2i $pkgdir/usr/bin/sti }

gangelop commented on 2017-11-03 22:40 (UTC)

I see you implemented my suggestions. But now there is another issue. ==> Starting build()... Installing source-to-image /home/george/aur/openshift-source-to-image/PKGBUILD: line 16: s2i: command not found ==> ERROR: A failure occurred in build(). Aborting... build() { echo "Installing source-to-image" s2i <====== why? }

gangelop commented on 2017-11-03 16:48 (UTC)

Hi Andrej. Some feedback: You don't need the .install script to create a symlink in post_install. You can do it within the PKGBUILD in the package() function. Also, upstream currently provides the symlink in the tar, so you can just copy it along with the executable, like this: package() { install -D -m755 $srcdir/s2i $pkgdir/usr/bin/s2i install -D -m755 $srcdir/sti $pkgdir/usr/bin/sti } and completely remove the install=${pkgname}.install