mappings_old
This commit is contained in:
parent
09f9c53064
commit
12b623bdba
3 changed files with 5 additions and 5 deletions
|
|
@ -9,7 +9,7 @@ ENV PDI_RELEASE=8.3 \
|
|||
|
||||
COPY crontab /root/
|
||||
COPY entrypoint.sh /root/
|
||||
COPY mappings $PDI_HOME/mappings
|
||||
COPY mappings_old $PDI_HOME/mappings_old
|
||||
|
||||
RUN chmod +x /root/entrypoint.sh
|
||||
|
||||
|
|
|
|||
4
crontab
4
crontab
|
|
@ -1,2 +1,2 @@
|
|||
*/10 * * * * 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"
|
||||
0 1 * * * 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"
|
||||
*/10 * * * * bash -c ". /root/.env.sh; /opt/pentaho-di/data-integration/kitchen.sh /file:////opt/pentaho-di/mappings_old/job_general.kjb > /proc/1/fd/1 2>&1"
|
||||
0 1 * * * bash -c ". /root/.env.sh; /opt/pentaho-di/data-integration/kitchen.sh /file:////opt/pentaho-di/mappings_old/info_recruits/job_info_recruits.kjb > /proc/1/fd/1 2>&1"
|
||||
|
|
|
|||
|
|
@ -45,11 +45,11 @@ done;
|
|||
|
||||
#Запускаем job один раз при старте контейнера
|
||||
echo "---- Run info_recruits/job_info_recruits.kjb ----"
|
||||
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"
|
||||
bash -c ". /root/.env.sh; /opt/pentaho-di/data-integration/kitchen.sh /file:////opt/pentaho-di/mappings_old/info_recruits/job_info_recruits.kjb > /proc/1/fd/1 2>&1"
|
||||
|
||||
if [ $RUNONCE == true ]; then
|
||||
echo "---- Run job_general.kjb ----"
|
||||
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"
|
||||
bash -c ". /root/.env.sh; /opt/pentaho-di/data-integration/kitchen.sh /file:////opt/pentaho-di/mappings_old/job_general.kjb > /proc/1/fd/1 2>&1"
|
||||
exit $?
|
||||
else
|
||||
cat /root/crontab | crontab -
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue