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

suggestion: add ca-certificates package to docker containers #18

Open
theodiem opened this issue Nov 13, 2023 · 1 comment
Open

suggestion: add ca-certificates package to docker containers #18

theodiem opened this issue Nov 13, 2023 · 1 comment

Comments

@theodiem
Copy link

Hello Mike,

I've been using oci-registry at my homelab happily. Lately I decided to switch to S3 storage, as my raspberry pi SD card has been not so fast. I don't use an AWS S3 bucket but instead I'm using a "compatible" provider - ceph radosgw. So please, disregard this ticket if it works fine with AWS.

When using s3 instead of filesystem, after setting up the S3_* environment variables, I get the following error:

thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-rustls-0.23.2/src/config.rs:48:9:
no CA certificates found
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

After running a apt install ca-certificates , oci-registry worked fine (my S3 endpoint have a valid certificate from let's encrypt).

Currently my Dockerfile have:

FROM docker.io/mcronce/oci-registry:v0.4.2
RUN apt-get update && apt-get install -y ca-certificates \
    && apt-get clean && rm -rf /var/lib/apt/lists/*

Cheers and thanks for all the effort put into this project.

@mcronce
Copy link
Owner

mcronce commented Mar 20, 2024

This is in master now, I'll get it released ASAP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants