Merge pull request #12526 from cevich/remove_static

[CI:DOCS] Cirrus: Remove remnants of nix-based static build
This commit is contained in:
OpenShift Merge Robot
2021-12-07 11:03:58 +00:00
committed by GitHub
2 changed files with 0 additions and 24 deletions

View File

@ -166,13 +166,3 @@ familiar container cli commands. For more details, see the
Podman formerly offered a Varlink-based API for remote management of containers. However, this API
was replaced by the REST API. Varlink support has been removed as of the 3.0 release.
For more details, you can see [this blog](https://podman.io/blogs/2020/01/17/podman-new-api.html).
## Static Binary Builds
The Cirrus CI integration within this repository contains a `Static_Build` job
which produces static Podman binaries for testing purposes. Please note that
these binaries are not officially supported with respect to feature-completeness
and functionality and should be only used for testing. To download these binaries,
load the build link with the commit SHA at
[main](https://cirrus-ci.com/github/containers/podman/main) or
`https://cirrus-ci.com/github/containers/podman/pull/<selected PR>`
and open the artifacts folder within `Static Build`.

View File

@ -259,20 +259,6 @@ function _run_altbuild() {
make podman-release-${arch}.tar.gz GOARCH=$arch
done
;;
*Static*)
req_env_vars CTR_FQIN
[[ "$UID" -eq 0 ]] || \
die "Static build must execute nixos container as root on host"
podman run -i --rm \
-e CACHIX_AUTH_TOKEN \
-v $PWD:$PWD:Z -w $PWD $CTR_FQIN sh -c \
"nix-env -iA cachix -f https://cachix.org/api/v1/install && \
cachix use podman && \
nix-build nix && \
nix-store -qR --include-outputs \$(nix-instantiate nix/default.nix) | grep -v podman | cachix push podman && \
cp -R result/bin ."
rm result # makes cirrus puke
;;
*)
die "Unknown/Unsupported \$$ALT_NAME '$ALT_NAME'"
esac