Dear Step forum community,
We use a dockerized version of sen2cor based on mundialis docker-sen2cor.
Below is the Dockerfile we are using to upgrade to sen2cor v2.12
FROM geographica/gdal2
RUN apt-get update -y && apt-get install -y \
python-pip \
python-dev \
curl \
unzip \
wget && \
rm -rf /var/lib/apt/lists/*
# Upgrade pip
RUN pip install --upgrade pip
# Set the working directory to /app
WORKDIR /app
### Sen2cor Version 2.12.0
RUN wget http://step.esa.int/thirdparties/sen2cor/2.12.0/Sen2Cor-02.12.03-Linux64.run && \
chmod +x Sen2Cor-02.12.03-Linux64.run && \
bash /app/Sen2Cor-02.12.03-Linux64.run --target /home && \
rm /app/Sen2Cor-02.12.03-Linux64.run
ENV PATH $PATH:/home/bin/
# Setting environment variables
ENV PYTHONUNBUFFERED 1
The container is initializing well but, as soon as we try to launch a calibration process we are having an “Illegal instruction (core dumped)”
root@c25af48beb79:/app# /home/bin/L2A_Process --resolution 10 S2A_MSIL1C_20240730T201911_N0511_R085_T05KRA_20240731T010644.SAFE
Sen2Cor. Version: 02.12.03, created: 2024.09.09, supporting Level-1C product version 14.2 - 15.0 started …
Product version: 15.0
Operation mode: TOOLBOX
Processing baseline: 99.99
Progress[%]: 0.00 : Generating datastrip metadata
L2A datastrip successfully generated
Selected resolution: 10 m
Progress[%]: 0.62 : PID-12770, L2A_ProcessTile: 20 m resolution must be processed first, elapsed time[s]: 14.777, total: 0:00:48.012287
Progress[%]: 0.81 : PID-12770, L2A_ProcessTile: processing with resolution 20 m, elapsed time[s]: 4.698, total: 0:00:52.710357
Progress[%]: 0.81 : PID-12770, L2A_ProcessTile: start of pre processing, elapsed time[s]: 0.001, total: 0:00:52.711235
Progress[%]: 0.92 : PID-12770, L2A_Tables: start import, elapsed time[s]: 2.571, total: 0:00:55.282067
Illegal instruction (core dumped)
Does anyone have any idea where the problem might be coming from?