I'm in the process of writing container features and I want to be able to install package on debian:latest, ubuntu:latest and alpine:latest. To do so, I'm willing to leverage pacapt, a pure shell cross-os solution.
First, I need to be able to download the script itself and that's where is become tricky. The base images have little to offer (no curl, wget or telnet), see available package on bare images:
Constraints
Shell
I'm looking for a POSIX solution.
Available command
Here is what is missing (prefixed by -) and what is present (prefixed by +) on all of them.
-curl
-wget
-openssl
-telnet
-git
-nc
-netcat
+awk
HTTPS
The file I aim to download is pacapt script hosted on GitHub, located at
Questions
How to download file from docker container image without curl / wget?
Related: