Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

When running a pipe where do the docker images files get placed?

tyler_k August 7, 2020

Creating a custom pipe docker image. In my docker image I have saved some files by including in my dockerfile.

COPY pipe.sh /
COPY some.file/

ENTRYPOINT ["/pipe.sh"]

 

I've noticed when running the command in my pipeline

pipe: mydocker.image

It sets the working directory to the main pipeline one

--workdir=$(pwd) \

I've tried using

cd $BITBUCKET_PIPE_STORAGE_DIR

but some.file from the docker image isn't there

 

How can I access some.file from my pipe.sh script?

 

 

 

1 answer

1 accepted

2 votes
Answer accepted
tyler_k August 7, 2020

Took me a little bit but I realized everything gets put into the root of the container, I'll blame my trouble on it being a friday.

 

So the location of some.file will be 

/some.file

 

Hope this can help someone else on a Friday as well

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events