-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Publish docker container with key dependencies included #3091
Comments
fprime-docker.txt
Key Changes and Additions: Security Enhancements:
Build Optimizations:
Usability Improvements:
|
My team runs rootless containers. Running as a non-root user within the container is not necessary for security, and it breaks our software's ability to write to bind mounts. No objections to any of the other proposed changes. |
updated-dockerfile.txt
The container will now work better with rootless setups while still providing all the benefits of the optimized build process and proper dependency management. This should allow for proper bind mount access while running in a rootless container environment. |
It's also worth noting (I just found this out today) that we should use |
Feature Description
I'd like to suggest that F Prime publish a base docker container image that includes the Python dependencies for F Prime and a few other key dependencies.
Here's an example Dockerfile/Containerfile that you could use to build such a container:
There is no urgency to this request; I'd just like to record it for consideration on the F Prime roadmap.
Rationale
I build a container that contains a variety of open-source and closed-source development tools (including a special build of the clang toolchain) that the developers on my team need. This is very effective to let everyone use the same toolchain and make sure that bugs are reproducible, without requiring a detailed setup guide or providing a standardized virtual machine.
It would be helpful for me if I had a base image from the upstream F Prime project that already included the common/unchanging pieces of this container. This would reduce container build times for my project and make it easier for other users of F Prime to adopt similar approaches where appropriate.
I recommend
rockylinux:9
as the base image, because Rocky Linux is a bug-for-bug compatible rebuild of RHEL, and that makes it more acceptable from a cybersecurity perspective than many of the alternatives. I intentionally do not include a C compiler in the proposed list of dependencies because different projects are likely to want to use different C compilers, and I would have to uninstall the default compiler when building my derived container.The text was updated successfully, but these errors were encountered: