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

How to get Docker Runner to execute a script file

Tom
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 19, 2018

I am trying to run a script, simply at the moment echo "Hello World", as a test in a Docker Container. 

 

However everytime I run it, I get this error: /tmp/runInDocker3175335587790858575.sh: line 4: /var/atlassian/application-data/bamboo/temp/-ScriptBuildTask-5210433219306556827.sh: not found 

 

2 answers

0 votes
Foong
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 20, 2018

Is the default mount volume at Plan Configuration > Stage & jobs > jobName > Docker tab edited?

The error happens because the default mount volume for ${bamboo.tmp.directory} is removed.

0 votes
Edwin Kyalangalilwa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 19, 2018

Hi @Tom,

Look into using the Bamboo Docker task.

Screen Shot 2018-06-19 at 14.34.16.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events