Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joseluisq/alpine-curl
An unofficial multi-arch cURL Docker image using latest Alpine Linux with Zstandard support.
https://github.com/joseluisq/alpine-curl
386 alpine-linux amd64 arm64 armv6 armv7 curl docker-image libcurl linux ppc64le s390x zstandard zstd
Last synced: 23 days ago
JSON representation
An unofficial multi-arch cURL Docker image using latest Alpine Linux with Zstandard support.
- Host: GitHub
- URL: https://github.com/joseluisq/alpine-curl
- Owner: joseluisq
- License: apache-2.0
- Created: 2023-04-19T22:00:00.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-26T20:39:59.000Z (12 months ago)
- Last Synced: 2024-04-22T14:23:25.689Z (7 months ago)
- Topics: 386, alpine-linux, amd64, arm64, armv6, armv7, curl, docker-image, libcurl, linux, ppc64le, s390x, zstandard, zstd
- Language: Dockerfile
- Homepage:
- Size: 22.5 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Alpine cURL [![devel](https://github.com/joseluisq/alpine-curl/actions/workflows/devel.yml/badge.svg)](https://github.com/joseluisq/alpine-curl/actions/workflows/devel.yml) [![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/joseluisq/alpine-curl/latest)](https://hub.docker.com/r/joseluisq/alpine-curl/) [![Docker Image Size (tag)](https://img.shields.io/docker/image-size/joseluisq/alpine-curl/latest)](https://hub.docker.com/r/joseluisq/alpine-curl/tags) [![Docker Image](https://img.shields.io/docker/pulls/joseluisq/alpine-curl.svg)](https://hub.docker.com/r/joseluisq/alpine-curl/)
> An unofficial [Curl](https://github.com/curl/curl) Docker image using latest [Alpine Linux](https://www.alpinelinux.org/) with [Zstandard](http://facebook.github.io/zstd/) support.
>**Note:** This Docker image exists to help test [static-web-server](https://github.com/static-web-server/static-web-server) using [Zstandard](http://facebook.github.io/zstd/). If you are looking for the official one, then please visit https://github.com/curl/curl-container
## Usage
For example, print out the curl release version, protocols and features.
```sh
docker run --rm joseluisq/alpine-curl curl --version
# curl 8.2.0 (aarch64-unknown-linux-musl) libcurl/8.2.0 OpenSSL/3.1.1 zlib/1.2.13 brotli/1.0.9 zstd/1.5.5 libidn2/2.3.4 libssh2/1.10.0 nghttp2/1.55.1
# Release-Date: 2023-07-19
# Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
# Features: alt-svc AsynchDNS brotli HSTS HTTP2 HTTPS-proxy IDN IPv6 Largefile libz NTLM NTLM_WB SSL threadsafe TLS-SRP UnixSockets zstd
```Or perform a request. For instance, using the latest [Zstandard](http://facebook.github.io/zstd/) compression algorithm.
Note the `accept-encoding` and `content-encoding` headers below.
```sh
docker run --rm joseluisq/alpine-curl \
curl -I -H "accept-encoding: zstd" https://www.facebook.com# HTTP/2 200
# vary: Accept-Encoding
# content-encoding: zstd
# document-policy: force-load-at-top
# cross-origin-opener-policy: same-origin-allow-popups
# pragma: no-cache
# cache-control: private, no-cache, no-store, must-revalidate
# expires: Sat, 01 Jan 2000 00:00:00 GMT
# x-content-type-options: nosniff
# x-xss-protection: 0
# x-frame-options: DENY
# strict-transport-security: max-age=15552000; preload
# content-type: text/html; charset="utf-8"
# date: Sun, 23 Jul 2023 20:14:59 GMT
# alt-svc: h3=":443"; ma=8640
```## Dockerfile
You can also use the image as a base for your Dockerfile:
```Dockerfile
FROM joseluisq/alpine-curl
```## Contributions
Unless you explicitly state otherwise, any contribution you intentionally submitted for inclusion in current work, as defined in the Apache-2.0 license, shall be dual licensed as described below, without any additional terms or conditions.
Feel free to submit a [pull request](https://github.com/joseluisq/alpine-curl/pulls) or file an [issue](https://github.com/joseluisq/alpine-curl/issues).
## License
This work is primarily distributed under the terms of both the [MIT license](LICENSE-MIT) and the [Apache License (Version 2.0)](LICENSE-APACHE).
© 2023-present [Jose Quintana](https://joseluisq.net)