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 internal CA certificates to the container #31

Closed
mikevolzer opened this issue Oct 30, 2018 · 2 comments
Closed

How to add internal CA certificates to the container #31

mikevolzer opened this issue Oct 30, 2018 · 2 comments

Comments

@mikevolzer
Copy link

What is the best way to add an internal corporate CA to this image?

I would like to do this automatically so that it can be incorporated into our CI build.

Thanks!

@rewitt1
Copy link
Contributor

rewitt1 commented Oct 30, 2018

Hi @mikevolzer,

You'd need to create a new Dockerfile that is derivative, or modify the current one, and then build your own image to be used with your CI.

If you need root access to do your configuration(which I really need to document), it would be similar to the fragment below:

FROM crops/poky

# Let's say the commands you use to add whatever configuration you need require root
USER root

RUN some-commands-to-configure-container

# This line is needed if you want the container to continue to automatically create users for you
# based on the workdir.
USER usersetup

@mikevolzer
Copy link
Author

Hi @rewitt1

Thank you so much for your help. This worked perfectly!

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