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

updated Dockerfile with current debian stable (bullseye) #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mfrey
Copy link

@mfrey mfrey commented Sep 7, 2021

I ran into an issue using the latest version of rust docker environment, i.e.

# RUST_LOG=cargo=debug cargo update
DEBUG:cargo::update: executing; cmd=cargo-update; args=["cargo", "update"]
DEBUG:cargo::core::workspace: find_root - trying /home/Cargo.toml
DEBUG:cargo::core::workspace: find_root - trying /Cargo.toml
DEBUG:cargo::core::workspace: find_members - only me as a member
DEBUG:cargo::core::registry: load/missing  file:///home/rust
DEBUG:cargo::sources::config: loading: file:///home/rust
DEBUG:cargo::core::resolver: initial activation: files v0.1.0 (file:///home/rust)
DEBUG:cargo::core::registry: load/missing  registry https://github.com/rust-lang/crates.io-index
DEBUG:cargo::sources::config: loading: registry https://github.com/rust-lang/crates.io-index
    Updating registry `https://github.com/rust-lang/crates.io-index`
DEBUG:cargo: handle_cli_error; err=CliError { error: Some(ChainedError { error: failed to load source
for a dependency on `url`, cause: ChainedError { error: Unable to update registry 
https://github.com/rust-lang/crates.io-index, cause: ChainedError { error: failed to fetch 
`https://github.com/rust-lang/crates.io-index`, cause: Error { code: -17, klass: 16, message: 
"The SSL certificate is invalid" } } } }), unknown: false, exit_code: 101 }

I think it is related to an outdated ca-certificates package. Since debian jessie is quite old, I updated the debian version from jessie to bullseye. I also had to add gpg to the build dependencies and also had to add a different key server (I ran into connection timeout issues). Build performed via:

docker build -t rust-docker-dev-env --build-arg rust_version=1.54.0 . 

P.S.: Thanks for the initial work! Great job!

@mfrey mfrey changed the title updated Dockerfile with current debain stable (bullseye) updated Dockerfile with current debian stable (bullseye) Sep 7, 2021
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

Successfully merging this pull request may close these issues.

1 participant