From 1957d37f9c9b973820fa8459640332cb3fd1d0f4 Mon Sep 17 00:00:00 2001 From: Lincoln Sherpa <87706210+linsherpa@users.noreply.github.com> Date: Mon, 4 Mar 2024 09:22:04 +0100 Subject: [PATCH] Update Dockerfile [FileConverterCommand: Access to nonroot user without creation of header 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 : https://github.com/ProteoWizard/container/pull/23 and https://github.com/BioContainers/containers/pull/524 --- openms/2.2.0/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openms/2.2.0/Dockerfile b/openms/2.2.0/Dockerfile index 4b07107a..43b30a3d 100644 --- a/openms/2.2.0/Dockerfile +++ b/openms/2.2.0/Dockerfile @@ -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" @@ -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 && \