The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

TAGS
AUG Leaders

Atlassian Community Events