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

Add instruction for custom root certificate #671

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

Conversation

agutenkunst
Copy link
Contributor

Add section to doc describing how to run industrial_ci locally if a root certificate needs to be used.

I am aware of DOCKER_RUN_OPTS="-v /etc/ssl/certs:/etc/ssl/certs:ro" also mentioned in the Readme.
This however did not work for me since the certificate installation on the local machine would fail during the
init-step with

Setting up ca-certificates (20210119~20.04.1) ...
Updating certificates in /etc/ssl/certs...
rm: cannot remove 'ca-certificates.crt': Read-only file system
dpkg: error processing package ca-certificates (--configure):
 installed ca-certificates package post-installation script subprocess returned error exit status 1

...
Errors were encountered while processing:
 ca-certificates
E: Sub-process /usr/bin/dpkg returned an error code (1)
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
'init' returned with code '100' after 1 min 19 sec
Tests failed exit code '100'

this seems to be due to the existing ca-certificates.crt which originates from the installation of the certificate on the local system.

Not sure if to many have this problem but I think it is worth writing down the solution.

Open for suggestions / better solutions!

Add section to doc describing how to run industrial_ci locally if a root certificate needs to be used.
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