In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces docker how to configure the Runner container, the article is very detailed, has a certain reference value, interested friends must read it!
1. Create the runner container mk@mk-pc:~/ desktop $docker run-di-- name my-runner-- net my-gitlab-net gitlab/gitlab-runner:latestaddc6e08521a6f707494c7a05e63670331c76baaf261282bdd17e2e24268583b2. Configure runner and gitlab to do an associated 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:/#
3. Write pipeline files
. 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"
Running assembly line
These are all the contents of the article "how to configure Runner containers for docker". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.