ervu-dashboard-etl/Dockerfile

23 lines
574 B
Text
Raw Normal View History

2024-09-01 17:59:14 +03:00
FROM repo.micord.ru/tools/pdi-ce:8.3.0.0-371 AS main
2024-08-29 11:49:52 +03:00
ENV TZ=Europe/Moscow
ENV PDI_RELEASE=8.3 \
PDI_VERSION=8.3.0.0-371 \
PDI_HOME=/opt/pentaho-di \
KETTLE_HOME=/pentaho-di
COPY crontab /root/
COPY entrypoint.sh /root/
COPY mappings $PDI_HOME/mappings
RUN chmod +x /root/entrypoint.sh
ENV PATH=$PDI_HOME/data-integration:$PATH
2024-09-01 17:59:14 +03:00
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"]
FROM main AS cron
2024-08-29 11:49:52 +03:00
ENTRYPOINT ["/root/entrypoint.sh"]