TeamCity: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 20: Line 20:
<source lang="bash">
<source lang="bash">
docker run -it --rm \
docker run -it --rm \
--publish 9050:80 \
--publish 8111:8111 \
--publish 4321:22 \
jetbrains/teamcity-server:2020.1.4 \
--publish 4430:443 \
gitlab/gitlab-ce:13.2.3-ce.0 \
bin/bash
bin/bash
id; exit
id; exit
Line 34: Line 32:


==Docker==
==Docker==
<source lang="bash">
docker run --detach \
--volume $JETBRAINS_HOME/teamcity/server/datadir:/data/teamcity_server/datadir \
--volume $JETBRAINS_HOME/teamcity/server/logs:/opt/teamcity/logs \
--publish 8111:8111 \
--name teamcity \
jetbrains/teamcity-server:2020.1.4
</source>
===Debian===
===Debian===
<source lang="bash" highlight="2,6" line>
<source lang="bash" highlight="2,5,6" line>
docker run --detach \
docker run --detach \
--env TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:MaxPermSize=270m -XX:ReservedCodeCacheSize=350m" \
--env TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:MaxPermSize=270m -XX:ReservedCodeCacheSize=350m" \
Line 41: Line 48:
--volume $JETBRAINS_HOME/teamcity/server/logs:/opt/teamcity/logs \
--volume $JETBRAINS_HOME/teamcity/server/logs:/opt/teamcity/logs \
--volume $JETBRAINS_HOME/teamcity/server/conf:/opt/teamcity/conf \
--volume $JETBRAINS_HOME/teamcity/server/conf:/opt/teamcity/conf \
--env TEAMCITY_CONTEXT=/teamcity
--env TEAMCITY_CONTEXT=/teamcity \
--publish 8111:8111 \
--publish 8111:8111 \
--name teamcity \
--name teamcity \
jetbrains/teamcity-server:2020.1.4
jetbrains/teamcity-server:2020.1.4
</source>
</source>


===CentOS===
===CentOS===
<source lang="bash" highlight="2,6" line>
<source lang="bash" highlight="2,5,6" line>
docker run --detach \
docker run --detach \
--env TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:MaxPermSize=270m -XX:ReservedCodeCacheSize=350m" \
--env TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:MaxPermSize=270m -XX:ReservedCodeCacheSize=350m" \
Line 54: Line 61:
--volume $JETBRAINS_HOME/teamcity/server/logs:/opt/teamcity/logs:Z \
--volume $JETBRAINS_HOME/teamcity/server/logs:/opt/teamcity/logs:Z \
--volume $JETBRAINS_HOME/teamcity/server/conf:/opt/teamcity/conf:Z \
--volume $JETBRAINS_HOME/teamcity/server/conf:/opt/teamcity/conf:Z \
--env TEAMCITY_CONTEXT=/teamcity
--env TEAMCITY_CONTEXT=/teamcity \
--publish 8111:8111 \
--publish 8111:8111 \
--name teamcity \
--name teamcity \
jetbrains/teamcity-server:2020.1.4
jetbrains/teamcity-server:2020.1.4
</source>
</source>


==Admin==
<source lang="bash">
ssh -L 8111:localhost:8111 [email protected]
http://localhost:8111
</source>


==References==
==References==

Latest revision as of 22:20, 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 8111:8111 \
jetbrains/teamcity-server:2020.1.4 \
bin/bash
id; exit
mkdir -p $JETBRAINS_HOME/teamcity/server/{conf,datadir,logs}
#chown -R 0:0 $JETBRAINS_HOME/teamcity/server/

Docker

docker run --detach \
--volume $JETBRAINS_HOME/teamcity/server/datadir:/data/teamcity_server/datadir \
--volume $JETBRAINS_HOME/teamcity/server/logs:/opt/teamcity/logs \
--publish 8111:8111 \
--name teamcity \
jetbrains/teamcity-server:2020.1.4

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

Admin

ssh -L 8111:localhost:8111 [email protected]
http://localhost:8111

References