static-curl | fully static builds of curl | Command Line Interface library
kandi X-RAY | static-curl Summary
kandi X-RAY | static-curl Summary
These are a couple simple scripts to build a fully static curl binary using alpine linux docker containers. Currently it is a featureful build with OpenSSL, libssh2, nghttp2, and zlib, supporting most protocols. Tweak configure options in build.sh if you need something else (and/or suggest or PR).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of static-curl
static-curl Key Features
static-curl Examples and Code Snippets
Community Discussions
Trending Discussions on static-curl
QUESTION
I'm trying to create a very simple docker image, it must have lua, luarocks, and a few other executables pre-installed on it, dockerfile below:
...ANSWER
Answered 2021-Oct-17 at 19:20TL;DR:
The error lua: not found
is a symptom of a dynamic linking failure, and is common when trying to run mainland Linux binaries on musl-libc based Linux, such as Alpine Linux and the busybox based image.
To fix this, switch to a lightweight glibc based image (e.g. Debian Slim) or install glibc on the Alpine container. Making this work for BusyBox is unpractical.
Full Explanation:
A bit of background. libc, the standard C library, provides the C and POSIX APIs to Linux programs and is an intrinsic part of the Linux system. Most Linux distributions are based on glibc, the GNU C library. However, both Alpine Linux and BusyBox images are based on musl standard C library, which is generally incompatible with glibc. Consequently, executables that are built on glibc-based distros such as Ubuntu, Debian or Arch Linux, won't work out of the box on Alpine Linux or BusyBox.
The linking error is manifested when trying to run the glibc executable. You could verify this by switching the image to alpine
and running ldd
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install static-curl
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page