Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add custom modules to Caddy Image? #2485

Open
rajasekhar-gundala opened this issue Apr 12, 2024 · 0 comments
Open

How to add custom modules to Caddy Image? #2485

rajasekhar-gundala opened this issue Apr 12, 2024 · 0 comments
Labels
needs-triage applied to all new customer/user issues. Removed after triage occurs.

Comments

@rajasekhar-gundala
Copy link

rajasekhar-gundala commented Apr 12, 2024

Which image/versions are related to this issue/feature request?

Hello,
Thank you very much for the project.

I am searching for documentation to add custom modules to Chainguard Caddy Image. We need DNS modules (like Cloudflare) in order to work with TLS.

I know how to extend the base Caddy Image with custom modules. There is a section called Adding custom Caddy modules that explains well to achieve it.

Can you please guide me how to add custom modules to Chainguard Caddy Image?

Issue/Feature description

I was able to build the custom image using below Dockerfile.
After that I used the image in my docker compose file. But not able to access the sites.

Am I doing anything wrong?

FROM cgr.dev/chainguard/caddy:latest-dev AS builder

USER root

RUN apk add bash ca-certificates git libcap mailcap xcaddy go

RUN xcaddy build \
    --with github.com/caddy-dns/cloudflare \
    --with github.com/abiosoft/caddy-hmac \
    --with github.com/lolPants/caddy-requestid
    
FROM cgr.dev/chainguard/caddy:latest-dev

COPY --from=builder /caddy /usr/bin/caddy
@rajasekhar-gundala rajasekhar-gundala added the needs-triage applied to all new customer/user issues. Removed after triage occurs. label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage applied to all new customer/user issues. Removed after triage occurs.
Projects
None yet
Development

No branches or pull requests

1 participant