Gitlab CI/CD

Gitlab CI/CD For the development environment. Install with docker Read the official documentation for how to install docker. I installed docker on the MacOS. gitlab documentation sudo docker run --detach \ --hostname 192.168.8.226 \ --publish 443:443 --publish 80:80 --publish 8022:22 \ --name gitlab \ --restart always \ --volume ~/gitlab/config:/etc/gitlab \ --volume ~/gitlab/logs:/var/log/gitlab \ --volume ~/gitlab/data:/var/opt/gitlab \ gitlab/gitlab-ce:latest gitlab-runner Order of initialization: install register custom config documentation There is no difficulty to install gitlab and gitlab-runner in docker. ...

April 26, 2021 · 3 min · Peter

TeamCity 搭建CI/CD

Teamcity 搭建CI/CD install server mkdir teamcity_server docker run -it --name teamcity-server-instance \ -v /home/ubuntu/teamcity_server/datadir:/data/teamcity_server/datadir \ -v /home/ubuntu/teamcity_server/logs:/opt/teamcity/logs \ -p 8111:8111 \ jetbrains/teamcity-server agent, conf 有权限问题,最好在root运行 如果要使用docker-in-docker特性(sudo command not found),请使用linux-sudo tag的image sudo docker run -it -e SERVER_URL="http://10.200.160.4:8111" \ -u 0 \ -v docker_volumes:/var/lib/docker \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /opt/buildagent/work:/opt/buildagent/work \ -v /opt/buildagent/temp:/opt/buildagent/temp \ -v /opt/buildagent/tools:/opt/buildagent/tools \ -v /opt/buildagent/plugins:/opt/buildagent/plugins \ -v /opt/buildagent/system:/opt/buildagent/system \ --privileged -e DOCKER_IN_DOCKER=start \ -v /home/ubuntu/teamcity_agent/conf:/data/teamcity_agent/conf \ jetbrains/teamcity-agent register agent agent 安装好后,在server UI/Agents 中进行认证授权。待agent就绪后,可以添加需要的项目和操作等。 ...

July 22, 2020 · 1 min · Peter