Last active
December 27, 2017 18:53
-
-
Save Kelfitas/0fff3e455d0c3e14d24dcec371fbed70 to your computer and use it in GitHub Desktop.
teamcity server + agent docker compose file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM jetbrains/teamcity-agent | |
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -; \ | |
apt-get install -y nodejs make build-essential gcc g++ php7.0 php7.0-cli; \ | |
npm install -g bower gulp yarn; \ | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"; \ | |
php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"; \ | |
php composer-setup.php; \ | |
php -r "unlink('composer-setup.php');"; \ | |
mv composer.phar /usr/bin/composer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
server: | |
image: jetbrains/teamcity-server | |
ports: | |
- 8111:8111 | |
volumes: | |
- /opt/teamcity_server/data:/data/teamcity_server/datadir | |
- /opt/teamcity_server/logs:/opt/teamcity/logs | |
agent1: | |
build: | |
- context: . | |
- dockerfile: Agent.Dockerfile | |
links: | |
- server | |
environment: | |
SERVER_URL: http://server:8111 | |
volumes: | |
- /opt/teamcity_agent/conf1:/data/teamcity_agent/conf | |
agent2: | |
build: | |
- context: . | |
- dockerfile: Agent.Dockerfile | |
links: | |
- server | |
environment: | |
SERVER_URL: http://server:8111 | |
volumes: | |
- /opt/teamcity_agent/conf2:/data/teamcity_agent/conf | |
agent3: | |
build: | |
- context: . | |
- dockerfile: Agent.Dockerfile | |
links: | |
- server | |
environment: | |
SERVER_URL: http://server:8111 | |
volumes: | |
- /opt/teamcity_agent/conf3:/data/teamcity_agent/conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment