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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

425 views 13 14
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you