Hi, I’m completely new to Nextflow and I would need some help please:
- I created a docker container using the following Dockerfile :
FROM python:3.10
LABEL image.author.name "..."
LABEL image.author.email "..."
# Install required packages including Bash and ps
RUN apt-get update && \
apt-get install -y bash procps && \
apt-get clean
# Set Bash as the default shell
SHELL ["/bin/bash", "-c"]
# Set working directory
WORKDIR /app
# Copy the requirements.txt file into the container
COPY requirements.txt .
# Install required packages using pip
RUN pip install --no-cache-dir -r requirements.txt
# Set Bash as the container entrypoint
ENTRYPOINT [ "/bin/bash", "-l", "-c" ]
with “requirements.txt” a list of python packages.
I build my container using
docker build -t myimage .
Using docker images
I can see that it has been created, and using docker run -i myimage "echo 'hello'"
I see that it works fine.
- in the nextflow.config I have:
process.container = 'myimage'
docker.enabled = true
- my workflow reads as
process sayHello {
output:
stdout
"""
echo Hello world!
"""
}
workflow {
sayHello | view { "I say... $it" }
}
- the output reads as
I say...
=> it seems that the stdout output is not accessible.
Similarly, I tried to create .csv file in the process using python code and they are not saved anywhere.
Would anyone know what I’m missing here? I’m working on macOS. As I don’t get any error messages and that I’m completely new to Nextflow, i’m a bit lost…
Thank you so much for your help!