Docker fix RunOnce

This commit is contained in:
Pavel Zilke 2024-09-01 18:12:12 +03:00
parent 01574aa03a
commit 5a93e2bf48
2 changed files with 11 additions and 6 deletions

View file

@ -15,8 +15,10 @@ RUN chmod +x /root/entrypoint.sh
ENV PATH=$PDI_HOME/data-integration:$PATH
ENTRYPOINT ["/root/entrypoint.sh"]
FROM main AS runonce
CMD ["bash", "-c", ". /root/.env.sh; /opt/pentaho-di/data-integration/kitchen.sh /file:////opt/pentaho-di/mappings/job_general.kjb > /proc/1/fd/1 2>&1"]
ENV RUNONCE=true
FROM main AS cron
ENTRYPOINT ["/root/entrypoint.sh"]
ENV RUNONCE=false