cloudadc/cafe

By cloudadc

Updated over 1 year ago

Image
0

1.1K

cloudadc/cafe repository overview

About Cafe

A Cafe service that exposed on both 8080 and 8443.

https://github.com/kylinsoong/nginx-devops.git

Build Image

docker buildx create --use
docker buildx inspect --bootstrap
docker buildx build --platform linux/amd64,linux/arm64  -t cloudadc/cafe:2.0 --push -f Dockerfile.cafe .

Run

docker run -it --rm --name nginx -p 8080:8080 -p 8443:8443 cloudadc/cafe:2.0

Test

% curl http://127.0.0.1:8080

            request: GET / HTTP/1.1
                uri: /
         request id: 0bcb6480e00fdebeb0c6ef4d1c6d640a
               host: 127.0.0.1
               date: 18/Sep/2024:05:15:06 +0000

        server name: 941ad795b0c1
        client addr: 192.168.65.1:26476
        server addr: 172.17.0.3:8080

             cookie: 
                xff: 
         user agent: curl/8.7.1
% curl --cacert tls/example.com.crt --resolve example.com:8443:127.0.0.1 https://example.com:8443

            request: GET / HTTP/1.0
                uri: /
         request id: 22c751f929a2cb0e028788aa38957bb8
               host: 127.0.0.1
               date: 18/Sep/2024:05:15:25 +0000

        server name: 941ad795b0c1
        client addr: 127.0.0.1:44046
        server addr: 127.0.0.1:8080

             cookie: 
                xff: 
         user agent: curl/8.7.1

Tag summary

Content type

Image

Digest

sha256:80fe49b9f

Size

67.7 MB

Last updated

over 1 year ago

docker pull cloudadc/cafe:2.0