File access for upload test works locally but file not found run in pipeline with docker container

Vincent Jong November 4, 2023

I've written an upload test that works locally but when run in a pipeline, it fails.

invalid argument: File not found : /app/assets/profile/avatar0.jpg

 The source is in the assets dir and is there in bitbucket according to running ls with system commands. I've looked at docker config which shows

volumes:
- $SOURCE_TEST_DIR:/app:ro

That doesn't seem to look like a permissions issue as looking at the system file structure, the file is there, and dir permissions seem to be 777 and file permissions seem to be 666, going through individually through each dir in the tree. Something, maybe I'm not understanding about the assets dir? Any ideas very much appreciated.

Screenshot 2023-11-03 at 9.20.02 PM.png

 

1 answer

1 accepted

0 votes
Answer accepted
Vincent Jong November 6, 2023

Figured it out. Docker config issue. Had a base container config that the driving container used and the volumes set in the base container needed to be exposed on the driving container.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events