Skip to content

Commit

Permalink
Update Dockerfile [FileConverterCommand: Access to nonroot user witho…
Browse files Browse the repository at this point in the history
…ut creation of header (#560)

Addition of the command line (line number 60)

"echo '#!/bin/sh\nsudo -E -H -u root FileConverter "$@"' > /usr/bin/FileConverter_anyuser && "

problem:
when the output as a directory is specified, then .config files are also copied to the local machine from the docker.

Description: This will remove the .config folder generated.

The problem is similar to :
ProteoWizard/container#23

and 

#524
  • Loading branch information
linsherpa authored Mar 4, 2024
1 parent 8dc63e1 commit 2cc5b14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openms/2.2.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM biocontainers/biocontainers:v1.0.0_cv4

################## METADATA ######################
LABEL base_image="biocontainers:v1.0.0_cv4"
LABEL version="5"
LABEL version="6"
LABEL software="OpenMS"
LABEL software.version="2.2.0"
LABEL about.summary="C++ libraries ans tools for MS/MS data analysis"
Expand Down Expand Up @@ -59,6 +59,8 @@ RUN apt-get -y update && \
echo "ALL ALL=NOPASSWD: ALL" >> /etc/sudoers && \
echo '#!/bin/sh\nsudo -E -H -u root FileInfo "$@"' > /usr/local/bin/FileInfo_anyuser && \
chmod ugo+rx /usr/local/bin/FileInfo* && \
echo '#!/bin/sh\nsudo -E -H -u root FileConverter "$@"' > /usr/local/bin/FileConverter_anyuser && \
chmod ugo+rx /usr/local/bin/FileConverter* && \
/sbin/ldconfig -v && \
apt-get clean && \
apt-get purge && \
Expand Down

0 comments on commit 2cc5b14

Please sign in to comment.