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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Change the tempDir folder on Bamboo Elastic Custom Images

Hi all.

I've been working on creating a elastic custom image to be used on my AWS account but I'm not able to change the tempDir property configured on the SystemInfoImpl class.

Since my base AMI do not allow scripts being executed from /tmp, I've been facing some issues to spin up my elastic agents.

 

Does anyone have faced this issue before and knows how to change the tempDir path to a different directory?

Thank you!

 

Felipe

1 answer

1 vote

You need to follow solution how to change memory settings: https://confluence.atlassian.com/bamkb/outofmemory-errors-in-bamboo-elastic-agent-826899144.html and update it to include setting of java.io.tmpdir 

For example this code set Temp folder to /tmp/bamboo

 

sed -i 's@.*MARKER.*@sed -i "s/-Xmx256m/-Xmx256m -Djava\\\\.io\\\\.tmpdir=\\/tmp\\/bamboo\\//" $startupScript@' /opt/bamboo-elastic-agent/bin/bamboo-elastic-agent

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

969 views 4 7
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