Skip to content

Instantly share code, notes, and snippets.

@Halkyonbird
Last active December 15, 2016 10:59
Show Gist options
  • Save Halkyonbird/5b51007b6f4f6ce79c838d6e55378a34 to your computer and use it in GitHub Desktop.
Save Halkyonbird/5b51007b6f4f6ce79c838d6e55378a34 to your computer and use it in GitHub Desktop.
docker pull jetbrains/teamcity-server
docker run -it --name teamcity-server-instance -v /mnt/hd3tb/teamcity_server/datadir:/data/teamcity_server/datadir -v /mnt/hd3tb/teamcity/logs:/opt/teamcity/logs -p 8111:8111 jetbrains/teamcity-server
docker pull jetbrains/teamcity-agent
docker run -it -e SERVER_URL="http://10.1.0.21/:8111" -e AGENT_NAME="tc-aws-agent" -v /mnt/hd3tb/teamcity/teamcity_agent/conf:/data/teamcity_agent/conf jetbrains/teamcity-agent
# inside teamcity agent do following:
apt-get -y update;
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev;
cd /tmp;
apt-get install wget;
wget http://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.4.tar.gz;
tar -xvzf ruby-2.2.4.tar.gz;
cd ruby-2.2.4/ && ./configure --prefix=/usr/local && make && make install
gem install bundler
#apt-get install nano
nano Gemfile
# Paste from tests/Gemfile
bundle install
# open http://10.1.0.21/:8111 and authorize agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment