Docker fix RunOnce
This commit is contained in:
parent
01574aa03a
commit
5a93e2bf48
2 changed files with 11 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue