crops / poky-container

A container image that is able to run bitbake/poky. It has helpers to create users and groups within the container. This is so that the output generated in the container will be readable by the user on the host.
GNU General Public License v2.0
206 stars 94 forks source link

How to add internal CA certificates to the container #31

Closed mikevolzer closed 5 years ago

mikevolzer commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

Hi @rewitt1

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