Coder Social home page Coder Social logo

joseluisq / alpine-curl Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 23 KB

An unofficial multi-arch cURL Docker image using latest Alpine Linux with Zstandard support.

License: Apache License 2.0

Dockerfile 89.20% Makefile 6.76% Shell 4.04%
386 alpine-linux amd64 arm64 armv6 armv7 docker-image linux ppc64le s390x

alpine-curl's Introduction

Alpine cURL devel Docker Image Version (tag latest semver) Docker Image Size (tag) Docker Image

An unofficial Curl Docker image using latest Alpine Linux with Zstandard support.

Note: This Docker image exists to help test static-web-server using Zstandard. 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.

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 compression algorithm.

Note the accept-encoding and content-encoding headers below.

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:

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 or file an issue.

License

This work is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).

© 2023-present Jose Quintana

alpine-curl's People

Contributors

gaby avatar joseluisq avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

zazamilham

alpine-curl's Issues

Upgrade base image to latest alpine

I noticed the image is using alpine 3.16.5, which only supports zstd 1.5.2

Upgrading to 3.17.3 will add support for zstd 1.5.5 which supports async decompression.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.