Skip to content

Instantly share code, notes, and snippets.

@buonzz
Last active April 3, 2021 03:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save buonzz/737137ec92570c53e1498872747abdd8 to your computer and use it in GitHub Desktop.
Save buonzz/737137ec92570c53e1498872747abdd8 to your computer and use it in GitHub Desktop.
Install Bamboo in Ubuntu 18
sudo apt update
sudo apt install openjdk-8-jdk openjdk-8-jre
wget https://www.atlassian.com/software/bamboo/downloads/binary/atlassian-bamboo-7.0.3.tar.gz
cat >> /etc/environment <<EOL
JAVA_HOME= /usr/lib/jvm/java-8-openjdk-amd64
JRE_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre
EOL
tar xvzf atlassian-bamboo-7.0.3.tar.gz
# create user and home directory for bamboo
sudo /usr/sbin/useradd --create-home --home-dir /usr/local/bamboo --shell /bin/bash bamboo
vi atlassian-bamboo-7.0.3/atlassian-bamboo/WEB-INF/classes/bamboo-init.properties
# uncomment the following line and place the following
bamboo.home=/usr/local/bamboo
# start it
./bin/start-bamboo.sh
# enable modules
a2enmod proxy
a2enmod proxy_http
a2enmod proxy_ajp
a2enmod rewrite
a2enmod deflate
a2enmod headers
a2enmod proxy_balancer
a2enmod proxy_connect
a2enmod proxy_html
# create entry for apache web server
<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass / http://127.0.0:8085/
ProxyPassReverse / http://127.0.0:8085/
ServerName bamboo.buonzz.com
ErrorLog ${APACHE_LOG_DIR}/bamboo-error.log
CustomLog ${APACHE_LOG_DIR}/bamboo-access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment