teleport/build.assets/charts/fetch-debs
Trent Clarke a992e6fded
Distroless dockerfile and smoke tests for same (#21860)
* Distroless dockerfile and smoke tests for same

This patch adds a Dockerfile to `build.assets/charts` that will construct
a docker image for teleport based on the Distroless Debian images
published by Google. The actual workflows used to construct and publish
these images are defined in `teleport.e` for security reasons.

The Smoke Testing framework exists to make some quick assertions about
the resulting images: will Teleport even start in this context, etc. See
the included README for more details.

* Update README.md

* Linter appeasement

* Revert spurious submodule update

* Rename release component var

* Smoke test docs

* Smoke test docs

* Revert spurious subrepo update
2023-03-02 09:51:28 +00:00

11 lines
302 B
Bash
Executable file

#!/bin/bash
mkdir -p /opt/staging/root
mkdir -p /opt/staging/status
for pkg in "$@"; do
apt-get download "$pkg" && dpkg-deb -R $pkg*.deb /tmp/$pkg
cp /tmp/$pkg/DEBIAN/control /opt/staging/status/$pkg
rm -r /tmp/$pkg/DEBIAN
cp -r /tmp/$pkg/* /opt/staging/root
rm -rf /tmp/$pkg
done