这篇文章主要介绍Docker如何配置Runner容器,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!1.创建runner容器mk@mk-pc:~/桌面$ docker run -di&nb
这篇文章主要介绍Docker如何配置Runner容器,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
mk@mk-pc:~/桌面$ docker run -di --name my-runner --net my-gitlab-net gitlab/gitlab-runner:latestaddc6e08521a6f707494c7a05e63670331c76baaf261282bdd17e2e24268583b
root@addc6e08521a:/# gitlab-runner reGISterRuntime platfORM arch=amd64 os=linux pid=262 revision=4b9e985a version=14.4.0Running in system-mode. Enter the GitLab instance URL (for example, https://gitlab.com/):Http://192.168.88.2/Enter the registration token:MQL7CpxduBkV55pEwo7AEnter a description for the runner:[addc6e08521a]: my first runnerEnter tags for the runner (comma-separated):dockercicdRegistering runner... succeeded runner=mqL7CpxdEnter an executor: docker, parallels, ssh, custom, shell, virtualbox, docker+Machine, docker-ssh+machine, kubernetes, docker-ssh:dockerEnter the default Docker image (for example, ruby:2.6):appRunner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded! root@addc6e08521a:/#
.gitlab-ci.yml
stages: - build - deploybuild: stage: build tags: - build only: - dev script: - echo "mvn clean" - echo "mvn install"deploy: stage: deploy tags: - deploy only: - dev script: - echo "java -jar dxxx"
运行流水线
以上是“docker如何配置Runner容器”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注编程网精选频道!
--结束END--
本文标题: docker如何配置Runner容器
本文链接: https://lsjlt.com/news/304645.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0