nextflow
nextflow copied to clipboard
Fix -dockerized execution #3137
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 ..
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
Thanks for this contribution