TeamCity: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==References== * [https://hub.docker.com/r/jetbrains/teamcity-server/ TeamCity Server in Docker Hub] * [https://hub.docker.com/r/jetbrains/teamcity-agent/ TeamCity Agent in Do...") |
No edit summary |
||
Line 1: | Line 1: | ||
{| | |||
| valign="top" | | |||
'''Linux:''' | |||
export JETBRAINS_HOME=/srv/jetbrains | |||
| valign="top" | | |||
'''MacOS:''' | |||
export JETBRAINS_HOME=$HOME/jetbrains | |||
|} | |||
{| class="wikitable sortable" | |||
|- | |||
! Local location !! Container location !! Usage | |||
|- | |||
| <code>$JETBRAINS_HOME/teamcity/server/datadir</code> || <code>/data/teamcity_server/datadir</code> || Application data | |||
|- | |||
| <code>$JETBRAINS_HOME/teamcity/server/logs</code> || <code>/opt/teamcity/logs</code> || Application Logs | |||
|- | |||
| <code>$JETBRAINS_HOME/teamcity/server/conf</code> || <code>/opt/teamcity/conf</code> || Configuration | |||
|} | |||
<source lang="bash"> | |||
docker run -it --rm \ | |||
--publish 9050:80 \ | |||
--publish 4321:22 \ | |||
--publish 4430:443 \ | |||
gitlab/gitlab-ce:13.2.3-ce.0 \ | |||
bin/bash | |||
id; exit | |||
</source> | |||
<source lang="bash"> | |||
mkdir -p $JETBRAINS_HOME/teamcity/server/{conf,datadir,logs} | |||
#chown -R 0:0 $JETBRAINS_HOME/teamcity/server/ | |||
</source> | |||
==Docker== | |||
===Debian=== | |||
<source lang="bash" highlight="2,6" line> | |||
docker run --detach \ | |||
--env TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:MaxPermSize=270m -XX:ReservedCodeCacheSize=350m" \ | |||
--volume $JETBRAINS_HOME/teamcity/server/datadir:/data/teamcity_server/datadir \ | |||
--volume $JETBRAINS_HOME/teamcity/server/logs:/opt/teamcity/logs \ | |||
--volume $JETBRAINS_HOME/teamcity/server/conf:/opt/teamcity/conf \ | |||
--env TEAMCITY_CONTEXT=/teamcity | |||
--publish 8111:8111 \ | |||
--name teamcity \ | |||
jetbrains/teamcity-server:2020.1.4 | |||
</source> | |||
===CentOS=== | |||
<source lang="bash" highlight="2,6" line> | |||
docker run --detach \ | |||
--env TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:MaxPermSize=270m -XX:ReservedCodeCacheSize=350m" \ | |||
--volume $JETBRAINS_HOME/teamcity/server/datadir:/data/teamcity_server/datadir:Z \ | |||
--volume $JETBRAINS_HOME/teamcity/server/logs:/opt/teamcity/logs:Z \ | |||
--volume $JETBRAINS_HOME/teamcity/server/conf:/opt/teamcity/conf:Z \ | |||
--env TEAMCITY_CONTEXT=/teamcity | |||
--publish 8111:8111 \ | |||
--name teamcity \ | |||
jetbrains/teamcity-server:2020.1.4 | |||
</source> | |||
==References== | ==References== | ||
* [https://hub.docker.com/r/jetbrains/teamcity-server/ TeamCity Server in Docker Hub] | * [https://hub.docker.com/r/jetbrains/teamcity-server/ TeamCity Server in Docker Hub] | ||
* [https://hub.docker.com/r/jetbrains/teamcity-agent/ TeamCity Agent in Docker Hub] | * [https://hub.docker.com/r/jetbrains/teamcity-agent/ TeamCity Agent in Docker Hub] | ||
* [https://www.jetbrains.com/teamcity/download/ Download TeamCity] | * [https://www.jetbrains.com/teamcity/download/ Download TeamCity] |
Revision as of 21:52, 20 September 2020
Linux: export JETBRAINS_HOME=/srv/jetbrains |
MacOS: export JETBRAINS_HOME=$HOME/jetbrains |
Local location | Container location | Usage |
---|---|---|
$JETBRAINS_HOME/teamcity/server/datadir |
/data/teamcity_server/datadir |
Application data |
$JETBRAINS_HOME/teamcity/server/logs |
/opt/teamcity/logs |
Application Logs |
$JETBRAINS_HOME/teamcity/server/conf |
/opt/teamcity/conf |
Configuration |
docker run -it --rm \
--publish 9050:80 \
--publish 4321:22 \
--publish 4430:443 \
gitlab/gitlab-ce:13.2.3-ce.0 \
bin/bash
id; exit
mkdir -p $JETBRAINS_HOME/teamcity/server/{conf,datadir,logs}
#chown -R 0:0 $JETBRAINS_HOME/teamcity/server/
Docker
Debian
docker run --detach \
--env TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:MaxPermSize=270m -XX:ReservedCodeCacheSize=350m" \
--volume $JETBRAINS_HOME/teamcity/server/datadir:/data/teamcity_server/datadir \
--volume $JETBRAINS_HOME/teamcity/server/logs:/opt/teamcity/logs \
--volume $JETBRAINS_HOME/teamcity/server/conf:/opt/teamcity/conf \
--env TEAMCITY_CONTEXT=/teamcity
--publish 8111:8111 \
--name teamcity \
jetbrains/teamcity-server:2020.1.4
CentOS
docker run --detach \
--env TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:MaxPermSize=270m -XX:ReservedCodeCacheSize=350m" \
--volume $JETBRAINS_HOME/teamcity/server/datadir:/data/teamcity_server/datadir:Z \
--volume $JETBRAINS_HOME/teamcity/server/logs:/opt/teamcity/logs:Z \
--volume $JETBRAINS_HOME/teamcity/server/conf:/opt/teamcity/conf:Z \
--env TEAMCITY_CONTEXT=/teamcity
--publish 8111:8111 \
--name teamcity \
jetbrains/teamcity-server:2020.1.4