Skip to content

[FIX] add "USER root" to top of every Dockerfile #306

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

Merged
merged 10 commits into from
Jan 9, 2020

Conversation

jdkent
Copy link
Contributor

@jdkent jdkent commented Nov 5, 2019

ref #249

first pass at forcing the user to be root.
Not going to say that this fixes #249 because this does not cover singularity builds.

I'm also unsure how this will interact with #270 if you want to primarily interact with the container as a user (not root).

@jdkent
Copy link
Contributor Author

jdkent commented Nov 20, 2019

ping to see if anyone can review this pull request.

@kaczmarj
Copy link
Collaborator

sorry for the delay @jdkent - things were busy at school. i will test out this pr tomorrow. i'll check for interactions with #270

@codecov-io
Copy link

codecov-io commented Nov 21, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@702fe0f). Click here to learn what that means.
The diff coverage is 37.14%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #306   +/-   ##
=========================================
  Coverage          ?   68.69%           
=========================================
  Files             ?       33           
  Lines             ?     1853           
  Branches          ?      241           
=========================================
  Hits              ?     1273           
  Misses            ?      490           
  Partials          ?       90
Impacted Files Coverage Δ
neurodocker/generators/singularity.py 29.54% <ø> (ø)
neurodocker/interfaces/tests/test_miniconda.py 70% <ø> (ø)
neurodocker/__init__.py 80% <100%> (ø)
neurodocker/_version.py 36.46% <36.46%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 702fe0f...fdee517. Read the comment docs.

@kaczmarj
Copy link
Collaborator

kaczmarj commented Nov 21, 2019

@jdkent - i added a commit to implement similar behavior for singularity recipes. now this should fix #249 . once the tests pass, i will merge unless you have reservations.

i spoke too soon... i'll figure out why the tests are failing.

Jakub Kaczmarzyk and others added 3 commits November 21, 2019 11:45
In ReproNim#306, the circleci tests were failing for minc. This commit is an attempt to fix that, because the problem was not reproducible on jakub's local installation.
@jdkent
Copy link
Contributor Author

jdkent commented Jan 9, 2020

The singularity issue for the miniconda test appears to be related to ContinuumIO/anaconda-issues#11163

@jdkent
Copy link
Contributor Author

jdkent commented Jan 9, 2020

changed the singularity test to work with a previous version of miniconda, I suppose building a singularity with a newer version of miniconda will be defunct until some upstream changes are put into place.

@kaczmarj I believe this ready for review.

@kaczmarj
Copy link
Collaborator

kaczmarj commented Jan 9, 2020 via email

@kaczmarj kaczmarj merged commit d890e05 into ReproNim:master Jan 9, 2020
@kaczmarj
Copy link
Collaborator

kaczmarj commented Jan 9, 2020

thank you @jdkent

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.

BUG: cannot build images when base is non-root
3 participants