Skip to content

Commit f57a521

Browse files
committed
refactor: rename image to curl-edge; set ENTRYPOINT; parallel cargo; update README and CI tags
1 parent ce758f6 commit f57a521

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
if: inputs.push != true && github.event_name != 'push' && env.ACT == 'true'
9191
run: |
9292
DOCKER_BUILDKIT=1 docker build --platform linux/amd64 --load \
93-
-t curl-http3:${IMAGE_TAG} -t curl-http3:latest .
93+
-t curl-edge:${IMAGE_TAG} -t curl-edge:latest .
9494
9595
- name: Build (no push)
9696
if: inputs.push != true && github.event_name != 'push' && env.ACT != 'true'
@@ -101,25 +101,25 @@ jobs:
101101
platforms: linux/amd64
102102
load: true
103103
tags: |
104-
curl-http3:${{ env.IMAGE_TAG }}
105-
curl-http3:latest
104+
curl-edge:${{ env.IMAGE_TAG }}
105+
curl-edge:latest
106106
107107
- name: Test curl -V
108108
if: inputs.push != true && github.event_name != 'push'
109-
run: docker run --rm curl-http3:${IMAGE_TAG} curl -V
109+
run: docker run --rm curl-edge:${IMAGE_TAG} -V
110110

111111
- name: Test HTTP/3 to Cloudflare
112112
if: inputs.push != true && github.event_name != 'push'
113113
run: |
114-
docker run --rm --network host curl-http3:${IMAGE_TAG} \
115-
curl -I --http3 https://cloudflare-quic.com/ || \
116-
docker run --rm --network host curl-http3:${IMAGE_TAG} \
117-
curl -I --http3 https://www.cloudflare.com/ --connect-timeout 10 || true
114+
docker run --rm --network host curl-edge:${IMAGE_TAG} \
115+
-I --http3 https://cloudflare-quic.com/ || \
116+
docker run --rm --network host curl-edge:${IMAGE_TAG} \
117+
-I --http3 https://www.cloudflare.com/ --connect-timeout 10 || true
118118
119119
- name: Test httpstat script
120120
if: inputs.push != true && github.event_name != 'push'
121121
run: |
122-
docker run --rm --network host curl-http3:${IMAGE_TAG} \
122+
docker run --rm --network host curl-edge:${IMAGE_TAG} \
123123
/opt/httpstat.sh -I --http3 https://cloudflare-quic.com/ || true
124124
125125
- name: Build and push
@@ -130,5 +130,5 @@ jobs:
130130
push: true
131131
platforms: linux/amd64
132132
tags: |
133-
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.GITHUB_REPOSITORY_NAME_PART }}:${{ env.IMAGE_TAG }}
134-
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.GITHUB_REPOSITORY_NAME_PART }}:latest
133+
getpagespeed/curl-edge:${{ env.IMAGE_TAG }}
134+
getpagespeed/curl-edge:latest

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN mkdir -p /opt/quiche-src && \
1313
tar -xzf /opt/quiche.tar.gz -C /opt/quiche-src --strip-components=1 && \
1414
rm /opt/quiche.tar.gz
1515
RUN cd /opt/quiche-src && \
16-
PATH="$HOME/.cargo/bin:$PATH" cargo build --package quiche --release --features ffi,pkg-config-meta,qlog && \
16+
PATH="$HOME/.cargo/bin:$PATH" cargo build --package quiche --release --features ffi,pkg-config-meta,qlog --jobs $(nproc) && \
1717
mkdir -p quiche/deps/boringssl/src/lib && \
1818
ln -vnf $(find target/release -name libcrypto.a -o -name libssl.a) quiche/deps/boringssl/src/lib/
1919

@@ -35,4 +35,4 @@ WORKDIR /opt
3535
COPY _dl/httpstat.sh /opt/httpstat.sh
3636
RUN chmod +x /opt/httpstat.sh
3737

38-
CMD ["curl"]
38+
ENTRYPOINT ["curl"]

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# curl-http3
2-
[![](https://img.shields.io/docker/pulls/ymuski/curl-http3?style=flat-square)](https://hub.docker.com/r/ymuski/curl-http3)
1+
# curl-edge
2+
[![](https://img.shields.io/docker/pulls/getpagespeed/curl-edge?style=flat-square)](https://hub.docker.com/r/getpagespeed/curl-edge)
33

4-
Docker image of `curl` compiled with `BoringSSL` and `quiche/0.17.2` for **HTTP3 support**, `httpstat` for visualization.
4+
Bleeding‑edge Docker image of `curl` with `BoringSSL` and `quiche` (HTTP/3), plus `httpstat` for visualization.
55

66
Link for [curl + http3 manual](https://github.com/curl/curl/blob/master/docs/HTTP3.md#quiche-version)
77

88
## Usage
99

10-
`docker run -it --rm ymuski/curl-http3 curl -V`
10+
`docker run -it --rm getpagespeed/curl-edge -V`
1111
```
1212
curl 8.1.2-DEV (x86_64-pc-linux-gnu) libcurl/8.1.2-DEV BoringSSL quiche/0.17.2
1313
Release-Date: [unreleased]
@@ -16,9 +16,9 @@ Features: alt-svc AsynchDNS HSTS HTTP3 HTTPS-proxy IPv6 Largefile NTLM NTLM_WB S
1616
```
1717

1818

19-
`docker run -it --rm ymuski/curl-http3 curl -IL https://blog.cloudflare.com --http3`
19+
`docker run -it --rm getpagespeed/curl-edge -IL https://blog.cloudflare.com --http3`
2020

21-
`docker run -it --rm ymuski/curl-http3 curl -IL https://yurets.pro --http3`
21+
`docker run -it --rm getpagespeed/curl-edge -IL https://yurets.pro --http3`
2222

2323
```
2424
@@ -39,19 +39,19 @@ alt-svc: h3=":443"; ma=86400
3939

4040
### httpstat support
4141

42-
`docker run -it --rm ymuski/curl-http3 ./httpstat.sh -ILv https://blog.cloudflare.com --http3`
42+
`docker run -it --rm getpagespeed/curl-edge ./httpstat.sh -ILv https://blog.cloudflare.com --http3`
4343

44-
`docker run -it --rm ymuski/curl-http3 ./httpstat.sh -ILv https://yurets.pro --http3`
44+
`docker run -it --rm getpagespeed/curl-edge ./httpstat.sh -ILv https://yurets.pro --http3`
4545

4646
![](httpstat.png?raw=true "HTTPSTAT H3")
4747

4848

4949
## Build
5050

5151
```
52-
docker buildx build --platform linux/amd64 -t ymuski/curl-http3:latest -t ymuski/curl-http3:8.1.2 . --push
52+
docker buildx build --platform linux/amd64 -t getpagespeed/curl-edge:latest -t getpagespeed/curl-edge:8.1.2 . --push
5353
5454
# quiche fails to compile for arm
55-
docker buildx build --platform linux/arm,linux/arm64,linux/amd64 -t ymuski/curl-http3:latest -t ymuski/curl-http3:8.1.2 . --push
55+
docker buildx build --platform linux/arm,linux/arm64,linux/amd64 -t getpagespeed/curl-edge:latest -t getpagespeed/curl-edge:8.1.2 . --push
5656
5757
```

0 commit comments

Comments
 (0)