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

Running FROST as non-root in Docker #237

Merged

Conversation

FabianWilms
Copy link
Contributor

It's widley considered best practice to not let docker containers run with root priviliges. And while the official Tomcat-Image maintainers seem to be of a different opinion (docker-library/tomcat#14) this should not stop other projects from fixing this flaw.

As we want to use the FROST-Server in an Openshift-Cluster, it is vital to not be using the root user, as OS by default restricts this behaviour.

With this PR both Dockerfiles of the HTTP and MQTTP variant of FROST are extended by creating a new "tomcat"-User with the belonging group. This user then gets access rights to CATALINA_HOME and finally we switch to the user so that the container is running as non-root.

@hylkevds hylkevds merged commit ccfaa15 into FraunhoferIOSB:master Jun 18, 2020
@hylkevds
Copy link
Member

Cool, Thanks for the PR!

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.

2 participants