Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have followed the official tutorial of Talend/job2Docker : https://github.com/Talend/job2docker.
The HelloWord example works good (although the project has a bug - it does not allow Capitalized letters in job name) but this is not the question.
When I dockerized a more complex job, where I have to reach some files in my local file system. It does not work.
On the Talend Console the job perfectly works, and I know that it is an issue with how to mount the dockers volumes.
And this is my test job :
When I run my docker :
"/data/work/Talend_Projets/POC_TALEND_DOCKER/start.txt" is not reachable and the job stops running.
Do you know how to fix that ?
Best Regards,
Safus
Hi,
I found the solution and I put it here in case it interests someone else :
You should mount the volume when running the docker like this :
docker run -v /data/work/Talend_Projets/POC_TALEND_DOCKER:/data/work/Talend_Projets/POC_TALEND_DOCKER safus/jobtest:0.1
Best regards,
Safus
Hi,
I found the solution and I put it here in case it interests someone else :
You should mount the volume when running the docker like this :
docker run -v /data/work/Talend_Projets/POC_TALEND_DOCKER:/data/work/Talend_Projets/POC_TALEND_DOCKER safus/jobtest:0.1
Best regards,
Safus
Hello,
Thanks for letting us know you've resolved this issue by yourself and sharing solution with us on community.
Best regards
Sabrina