2023-05-13 02:19:16 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/containers/podman/archive/refs/tags/v{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: containers/podman/releases/tags
|
|
|
|
|
|
|
|
provides:
|
2023-11-07 23:04:00 +03:00
|
|
|
linux:
|
|
|
|
- bin/podman
|
|
|
|
- bin/podman-remote
|
|
|
|
darwin:
|
|
|
|
- bin/podman
|
|
|
|
- bin/podman-remote
|
|
|
|
- bin/podman-mac-helper
|
2023-05-13 02:19:16 +03:00
|
|
|
|
|
|
|
dependencies:
|
|
|
|
qemu.org: '*'
|
|
|
|
github.com/containers/gvisor-tap-vsock: '*'
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
go.dev: ^1.18
|
2023-10-31 21:42:06 +03:00
|
|
|
gnu.org/coreutils: '*'
|
2023-05-13 02:19:16 +03:00
|
|
|
script:
|
|
|
|
# podman searches a compile-time configured set of paths for helper binaries
|
|
|
|
# so we add a relative lookup for the major version of gvproxy we require
|
|
|
|
- run: |
|
|
|
|
sed -i.bak -f $PROP config_{darwin,linux}.go
|
|
|
|
rm config_{darwin,linux}.go.bak
|
2023-12-26 10:47:39 +03:00
|
|
|
working-directory:
|
|
|
|
vendor/github.com/containers/common/pkg/config
|
2023-05-13 02:19:16 +03:00
|
|
|
prop: |-
|
|
|
|
s_\(^var defaultHelperBinariesDir.*\)_\
|
2023-12-26 10:47:39 +03:00
|
|
|
\1\n "$BINDIR/../../../github.com/containers/gvisor-tap-vsock/v{{deps.github.com/containers/gvisor-tap-vsock.version.major}}/bin",_
|
2023-05-13 02:19:16 +03:00
|
|
|
|
|
|
|
- mkdir -p "{{ prefix }}"/bin
|
2023-11-07 23:04:00 +03:00
|
|
|
- make --jobs {{ hw.concurrency }} podman-remote
|
|
|
|
|
|
|
|
- run: |
|
|
|
|
mv bin/podman-remote "{{ prefix }}"/bin/
|
|
|
|
ln -s podman-remote "{{ prefix }}"/bin/podman
|
|
|
|
if: linux
|
|
|
|
|
|
|
|
- run: |
|
|
|
|
make --jobs {{ hw.concurrency }} podman-mac-helper
|
|
|
|
mv bin/darwin/podman{-mac-helper,} "{{ prefix }}"/bin/
|
|
|
|
ln -s podman "{{ prefix }}"/bin/podman-remote
|
|
|
|
if: darwin
|
2023-05-13 02:19:16 +03:00
|
|
|
env:
|
|
|
|
CGO_ENABLED: 1
|
2023-11-27 23:31:57 +03:00
|
|
|
linux:
|
|
|
|
EXTRA_LDFLAGS: -buildmode=pie
|
2023-05-13 02:19:16 +03:00
|
|
|
|
|
|
|
test:
|
2023-11-27 23:31:57 +03:00
|
|
|
script:
|
|
|
|
- podman-remote -v | grep "podman-remote version {{ version }}"
|
|
|
|
- (podman info 2>&1 || true) | grep "Cannot connect to Podman."
|
|
|
|
# won't run as root
|
|
|
|
- |
|
|
|
|
if test $(id -g) != 0; then
|
|
|
|
(podman machine init --image-path fake-testimage fake-testvm 2>&1 || true) | grep 'Error: open fake-testimage: no such file or directory'
|
|
|
|
fi
|