diff --git a/entrypoint.sh b/entrypoint.sh index da95f54..4a2a819 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -43,6 +43,9 @@ for F in $(find . -type f); do sed -i "s/Encrypted 2beebdaaa1ac8978aaa54aa72ce93bcc9/$DB_SUBPOENA_PASSWORD/g" $F done; +#Запускаем job один раз при старте контейнера +bash -c ". /root/.env.sh; /opt/pentaho-di/data-integration/kitchen.sh /file:////opt/pentaho-di/mappings/info_recruits/job_info_recruits.kjb > /proc/1/fd/1 2>&1" + if [ $RUNONCE == true ]; then 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" exit $?