nextflow icon indicating copy to clipboard operation
nextflow copied to clipboard

Fix -dockerized execution #3137

Open Kibubu opened this issue 2 years ago • 1 comments

Fix dockerize execution https://github.com/nextflow-io/nextflow/issues/3137

Amazon's Corretto docker image is missing basic user management utilities the entry script relies on.

Added utilities to Dockerfile Fixed execution of nextflow within docker Container

Squash

The utilities adduser and addgroup are not installed inside the container image

Changed to useradd and groupadd added their dependencies to Dockerfile

Fix could not create plugins folder

The permissions of /.nextflow were to restricted to

Fix Typo and move comments to correct location


Test script

#! /bin/bash

git clone  [email protected]:kibubu/nextflow.git fix-dockerize
cd fix-dockerize/docker || exit
git checkout Fix-dockerize
curl -s https://get.nextflow.io | bash
mkdir -p dist/linux/amd64
cp "$(which docker)" dist/linux/amd64
docker rmi nextflow/nextflow:22.04.5
docker build . -t nextflow/nextflow:22.04.5
mkdir tmp && cd tmp || exit
../nextflow -dockerize run nextflow-io/hello
sleep 5
which tree || exit
tree -a .
cd ..

asciicast

Kibubu avatar Aug 24 '22 12:08 Kibubu

I messed, totally forget that this PR was still open and deleted my fork, since I was to lazy to resolve merge conflicts.

Let's see what happens if I press reopen

...seriously embarrassed right now

Kibubu avatar Aug 31 '22 16:08 Kibubu

Thanks for this contribution

pditommaso avatar Nov 02 '22 18:11 pditommaso