summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2023-05-11 03:37:13 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2023-05-11 03:44:42 +0200
commitc6347caf060af0cda24eee809207aa308d55232e (patch)
treeb4c77eb2d79fd1043a9e85f357c73440a51998b1
parentc0332deae03dc39b1e6700d6093ffe27f29f487f (diff)
hello: fix docker image
Without that fix we only have a tarball with the binary inside. We can now use it with docker: $ sudo docker load < /usr/share/docker-images/hello/hello.tar.xz Loaded image: hello:latest $ sudo docker run hello:latest Hello, world! Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--hello/PKGBUILD9
1 files changed, 6 insertions, 3 deletions
diff --git a/hello/PKGBUILD b/hello/PKGBUILD
index c3ccdc0..266e293 100644
--- a/hello/PKGBUILD
+++ b/hello/PKGBUILD
@@ -4,7 +4,7 @@
# Maintainer: Parabola Hackers <dev@lists.parabola.nu>
pkgname="hello"
pkgver=2.12.1
-pkgrel=1
+pkgrel=2
pkgdesc="GNU Hello (example GNU package)"
arch=('x86_64')
url='https://www.gnu.org/software/hello/'
@@ -31,8 +31,11 @@ build(){
./configure --prefix=/ LDFLAGS=-static
make
- sudo docker buildx build --output type=tar,dest=hello.tar .
- sudo xz -f -9e --verbose -T 0 hello.tar
+ sudo docker build --tag=hello .
+ sudo docker save -o hello.tar hello
+ sudo chmod 777 hello.tar
+ sudo chown "$(id -u):$(id -g)" hello.tar
+ xz -f -9e --verbose -T 0 hello.tar
}
check(){