{"id":32860,"date":"2019-10-31T21:49:21","date_gmt":"2019-10-31T18:49:21","guid":{"rendered":"https:\/\/prohoster.info\/blog\/gitlab-shell-runner-konkurentnyj-zapusk-testiruemyh-servisov-pri-pomoshhi-docker-compose\/"},"modified":"2019-10-31T21:49:21","modified_gmt":"2019-10-31T18:49:21","slug":"gitlab-shell-runner-konkurentnyj-zapusk-testiruemyh-servisov-pri-pomoshhi-docker-compose","status":"publish","type":"post","link":"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/gitlab-shell-runner-konkurentnyj-zapusk-testiruemyh-servisov-pri-pomoshhi-docker-compose","title":{"rendered":"GitLab Shell Runner. Gleichzeitige Ausf\u00fchrung von getesteten Services mit Docker Compose","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><noindex><a rel=\"nofollow\" href=\"https:\/\/hsto.org\/webt\/ub\/dc\/bf\/ubdcbfrlztg3eqofpqbs6w1u9sw.png\"><img decoding=\"async\" alt=\"GitLab Shell Runner. \u041a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Docker Compose\" src=\"\/wp-content\/uploads\/2019\/05\/b764499e86b6d068b85dd0439143d12b.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/a><\/noindex><\/p>\n<p><\/p>\n<p>\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u043a\u0430\u043a \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430\u043c, \u0442\u0430\u043a \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c, \u043d\u043e \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u0430 \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u043d\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 GitLab CI\/CD \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438\/\u0438\u043b\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u043e\u0440\u043a\u0435\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432. \u042f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 docker compose \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c GitLab shell \u0440\u0430\u043d\u043d\u0435\u0440\u0435 \u0438 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0443 \u043d\u0435 \u043c\u0435\u0448\u0430\u043b\u0438.<\/p>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\n<noindex><a rel=\"nofollow\" name=\"toc\"><\/a><\/noindex><\/p>\n<h2 id=\"soderzhanie\">\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435<\/h2>\n<p><\/p>\n<ul>\n<li><noindex><a rel=\"nofollow\" href=\"#prerequisites\">\u041f\u0440\u0435\u0434\u043f\u043e\u0441\u044b\u043b\u043a\u0438<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"#gitlab_shell_runner\">GitLab Shell Runner<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"#docker_compose_yml_preparation\">\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 docker-compose.yml<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"#makefile_preparation\">\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 Makefile<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"#gitlab_ci_yml_preparation\">\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 .gitlab-ci.yml<\/a><\/noindex>\n<ul>\n<li><noindex><a rel=\"nofollow\" href=\"#integration_tests_run\">\u0417\u0430\u043f\u0443\u0441\u043a \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"#clean_runner\">\u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u0440\u0430\u043d\u043d\u0435\u0440\u0430<\/a><\/noindex><\/li>\n<\/ul>\n<\/li>\n<li><noindex><a rel=\"nofollow\" href=\"#result\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/a><\/noindex><\/li>\n<\/ul>\n<p>\n<noindex><a rel=\"nofollow\" name=\"prerequisites\"><\/a><\/noindex><\/p>\n<h2 id=\"predposylki\">\u041f\u0440\u0435\u0434\u043f\u043e\u0441\u044b\u043b\u043a\u0438<\/h2>\n<p><\/p>\n<ol>\n<li>\n<p>\u0412 \u043c\u043e\u0435\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0447\u0430\u0441\u0442\u0435\u043d\u044c\u043a\u043e \u0441\u043b\u0443\u0447\u0430\u043b\u043e\u0441\u044c &#171;\u043b\u0435\u0447\u0438\u0442\u044c&#187; \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445. \u0418 \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u043f\u0435\u0440\u0432\u043e\u0439 \u0438 \u0441\u0430\u043c\u043e\u0439 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f CI pipeline, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 <strong>\u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c\u043e\u0433\u043e<\/strong> \u0441\u0435\u0440\u0432\u0438\u0441\u0430(\u043e\u0432) \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432 dev\/stage \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438. \u042d\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u043b\u043e \u043d\u0435 \u043c\u0430\u043b\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c:<\/p>\n<p><\/p>\n<ul>\n<li>\u0418\u0437-\u0437\u0430 \u0434\u0435\u0444\u0435\u043a\u0442\u043e\u0432 \u0432 \u0442\u043e\u043c \u0438\u043b\u0438 \u0438\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0435 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0443\u0440 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u0440\u0447\u0435\u043d \u0431\u0438\u0442\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u0411\u044b\u0432\u0430\u043b\u0438 \u0441\u043b\u0443\u0447\u0430\u0438, \u043a\u043e\u0433\u0434\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0441 \u0431\u0438\u0442\u044b\u043c JSON-\u0444\u043e\u0440\u043c\u0430\u0442\u043e\u043c \u0432\u0435\u0448\u0430\u043b \u0441\u0435\u0440\u0432\u0438\u0441, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043b\u043e \u0441\u0442\u0435\u043d\u0434 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0432 \u043d\u0435\u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. <\/li>\n<li>\u0417\u0430\u043c\u0435\u0434\u043b\u0435\u043d\u0438\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0443\u0440\u0430 \u0441 \u0440\u043e\u0441\u0442\u043e\u043c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u0414\u0443\u043c\u0430\u044e, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440 \u0441 \u043e\u0447\u0438\u0441\u0442\u043a\u043e\u0439\/\u043e\u0442\u043a\u0430\u0442\u043e\u043c \u0411\u0414 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430. \u0412 \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u044f \u043d\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0433\u0434\u0435 \u044d\u0442\u0430 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b\u0430 \u0431\u044b \u0433\u043b\u0430\u0434\u043a\u043e.<\/li>\n<li>\u0420\u0438\u0441\u043a \u043d\u0430\u0440\u0443\u0448\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0443\u0440\u0430 \u043f\u0440\u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043e\u0431\u0449\u0438\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, user\/group\/password\/application policy.<\/li>\n<li>\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0442 \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u043e\u0432 \u043c\u0435\u0448\u0430\u044e\u0442 \u0436\u0438\u0442\u044c \u0440\u0443\u0447\u043d\u044b\u043c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430\u043c. <\/li>\n<\/ul>\n<p><\/p>\n<p>\u041a\u0442\u043e-\u0442\u043e \u0441\u043a\u0430\u0436\u0435\u0442, \u0447\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u0435 \u0430\u0432\u0442\u043e\u0442\u0435\u0441\u0442\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0441\u043b\u0435 \u0441\u0435\u0431\u044f. \u0423 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u0440\u043e\u0442\u0438\u0432: <\/p>\n<p><\/p>\n<ul>\n<li>\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0442\u0435\u043d\u0434\u044b \u0432\u0435\u0441\u044c\u043c\u0430 \u0443\u0434\u043e\u0431\u043d\u044b \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438.<\/li>\n<li>\u041d\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0438\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0447\u0435\u0440\u0435\u0437 API. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0437\u043e\u0432 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u0442 \u0431\u0438\u0437\u043d\u0435\u0441 \u043b\u043e\u0433\u0438\u043a\u0435.<\/li>\n<li>\u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 API \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u043e.<\/li>\n<li>\u0415\u0441\u043b\u0438 \u0442\u0435\u0441\u0442\u044b \u0438\u043c\u0435\u044e\u0442 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439, \u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0433\u043e\u043b\u043e\u0432\u043d\u0443\u044e \u0431\u043e\u043b\u044c.<\/li>\n<li>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 (\u0438, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u043d\u0435 \u043e\u043f\u0440\u0430\u0432\u0434\u0430\u043d\u043d\u044b\u0435) \u0432\u044b\u0437\u043e\u0432\u044b \u043a API.<\/li>\n<li>\u0418 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442: \u043a\u043e\u0433\u0434\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u0447\u0438\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u044f\u043c\u043e \u0438\u0437 \u0411\u0414. \u042d\u0442\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 PK\/FK \u0446\u0438\u0440\u043a! \u041e\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0441\u043b\u044b\u0448\u043d\u043e: \u00ab\u042f \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0443 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\/\u0443\u0434\u0430\u043b\u0438\u043b\/\u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043b, \u043f\u043e\u0447\u0435\u043c\u0443 100500 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432 \u043f\u043e\u043f\u0430\u0434\u0430\u043b\u043e?\u00bb<\/li>\n<\/ul>\n<p><\/p>\n<p>\u041f\u043e \u043c\u043e\u0435\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u044e, \u0441\u0430\u043c\u043e\u0435 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u044d\u0442\u043e \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>\n<\/li>\n<li>\u041c\u043d\u043e\u0433\u043e \u043a\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 docker-compose \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f, \u043d\u043e \u043c\u0430\u043b\u043e \u043a\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 docker-compose \u043f\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 CI\/CD. \u0418 \u0442\u0443\u0442 \u044f \u043d\u0435 \u0431\u0435\u0440\u0443 \u0432 \u0440\u0430\u0441\u0447\u0435\u0442 kubernetes, swarm \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u043e\u0440\u043a\u0435\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432. \u041d\u0435 \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u043e\u043d\u0438 \u0435\u0441\u0442\u044c. \u0425\u043e\u0440\u043e\u0448\u043e \u0431\u044b \u0431\u044b\u043b\u043e, \u0435\u0441\u043b\u0438 \u0431\u044b docker-compose.yml \u0431\u044b\u043b \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439.<\/li>\n<li>\u0415\u0441\u043b\u0438 \u0434\u0430\u0436\u0435 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439 QA \u0440\u0430\u043d\u043d\u0435\u0440, \u043a\u0430\u043a \u043d\u0430\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 docker-compose \u043d\u0435 \u043c\u0435\u0448\u0430\u043b\u0438 \u0434\u0440\u0443\u0433-\u0434\u0440\u0443\u0433\u0443?<\/li>\n<li>\u041a\u0430\u043a \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u043b\u043e\u0433\u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432?<\/li>\n<li>\u041a\u0430\u043a \u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0440\u0430\u043d\u043d\u0435\u0440?<\/li>\n<\/ol>\n<p><\/p>\n<p>\u0423 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 GitLab \u0440\u0430\u043d\u043d\u0435\u0440 \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0438 \u0441 \u044d\u0442\u0438\u043c\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u044f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 <noindex><a rel=\"nofollow\" href=\"https:\/\/gitlab.com\/TouchBIT\/testrail4j\">Java \u043a\u043b\u0438\u0435\u043d\u0442\u0430<\/a><\/noindex> \u0434\u043b\u044f <noindex><a rel=\"nofollow\" href=\"https:\/\/www.gurock.com\/testrail\">TestRail<\/a><\/noindex>. \u0410 \u0442\u043e\u0447\u043d\u0435\u0435 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432. \u0412\u043e\u0442 \u0434\u0430\u043b\u0435\u0435 \u0438 \u0431\u0443\u0434\u0435\u043c \u0440\u0435\u0448\u0430\u0442\u044c \u044d\u0442\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u0438\u0437 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<p><\/p>\n<p><noindex><a rel=\"nofollow\" href=\"#toc\">\u041a \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044e<\/a><\/noindex><\/p>\n<p>\n<noindex><a rel=\"nofollow\" name=\"gitlab_shell_runner\"><\/a><\/noindex><\/p>\n<h3 id=\"gitlab-shell-runner\">GitLab Shell Runner<\/h3>\n<p><\/p>\n<p>\u0414\u043b\u044f \u0440\u0430\u043d\u043d\u0435\u0440\u0430 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043b\u0438\u043d\u0443\u043a\u0441\u043e\u0432\u0443\u044e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0443 \u0441 4 vCPU, 4 GB RAM, 50 GB HDD.<br \/>\n\u041d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 gitlab-runner, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043a\u043e\u0440\u043e\u0442\u043a\u043e:<\/p>\n<p><\/p>\n<ul>\n<li>\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u043a\u0443 \u043f\u043e SSH <\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043c\u0435\u043d\u0435\u0435 8 GB RAM, \u0442\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e <noindex><a rel=\"nofollow\" href=\"https:\/\/linuxize.com\/post\/how-to-add-swap-space-on-centos-7\/#creating-a-swap-file\">\u0441\u0434\u0435\u043b\u0430\u0442\u044c swap 10 GB<\/a><\/noindex>, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b OOM killer \u0438 \u043d\u0435 \u0443\u0431\u0438\u0432\u0430\u043b \u043d\u0430\u043c \u0437\u0430\u0434\u0430\u0447\u0438 \u0438\u0437-\u0437\u0430 \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0438 RAM. \u0422\u0430\u043a\u043e\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u0443\u0447\u0438\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0431\u043e\u043b\u0435\u0435 5 \u0437\u0430\u0434\u0430\u0447. \u0417\u0430\u0434\u0430\u0447\u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u043f\u043e\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435, \u0437\u0430\u0442\u043e \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e. <\/p>\n<p>\n<b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0441 OOM killer<\/b><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432 \u043b\u043e\u0433\u0430\u0445 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 <code>bash: line 82: 26474 Killed<\/code>, \u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043d\u0430 \u0440\u0430\u043d\u043d\u0435\u0440\u0435 <code>sudo dmesg | grep 26474<\/code><\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">[26474]  1002 26474  1061935   123806     339        0             0 java\nOut of memory: Kill process 26474 (java) score 127 or sacrifice child\nKilled process 26474 (java) total-vm:4247740kB, anon-rss:495224kB, file-rss:0kB, shmem-rss:0kB<\/code><\/pre>\n<p><\/p>\n<p>\u0418 \u0435\u0441\u043b\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a, \u0442\u043e \u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0439\u0442\u0435 swap, \u0438\u043b\u0438 \u0434\u043e\u043a\u0438\u0434\u044b\u0432\u0430\u0439\u0442\u0435 RAM.<\/p>\n<\/li>\n<\/ul>\n<p><\/p>\n<ul>\n<li>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c <noindex><a rel=\"nofollow\" href=\"https:\/\/docs.gitlab.com\/runner\/install\/\">gitlab-runner<\/a><\/noindex>, <noindex><a rel=\"nofollow\" href=\"https:\/\/docs.docker.com\/install\/\">docker<\/a><\/noindex>, <noindex><a rel=\"nofollow\" href=\"https:\/\/docs.docker.com\/compose\/install\/\">docker-compose<\/a><\/noindex>, make.<\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f <code>gitlab-runner<\/code> \u0432 \u0433\u0440\u0443\u043f\u043f\u0443 <code>docker<\/code>\n<pre><code class=\"bash\">sudo groupadd docker\nsudo usermod -aG docker gitlab-runner<\/code><\/pre>\n<\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/docs.gitlab.com\/runner\/register\/\">\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c<\/a><\/noindex> gitlab-runner.<\/li>\n<li>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043d\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 <code>\/etc\/gitlab-runner\/config.toml<\/code> \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">concurrent=20\n[[runners]]\n  request_concurrency = 10<\/code><\/pre>\n<p><\/p>\n<p>\u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0440\u0430\u043d\u043d\u0435\u0440\u0435. \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0447\u0438\u0442\u0430\u0442\u044c <noindex><a rel=\"nofollow\" href=\"https:\/\/docs.gitlab.com\/runner\/configuration\/advanced-configuration.html\">\u0442\u0443\u0442<\/a><\/noindex>.<br \/>\n\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043c\u0430\u0448\u0438\u043d\u043a\u0430 \u043f\u043e\u043c\u043e\u0449\u043d\u0435\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 8 vCPU, 16 GB RAM, \u0442\u043e \u044d\u0442\u0438 \u0446\u0438\u0444\u0440\u044b \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0432 2 \u0440\u0430\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0435. \u041d\u043e \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u0440\u0430\u043d\u043d\u0435\u0440\u0435 \u0438 \u0432 \u043a\u0430\u043a\u043e\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435.<\/p>\n<p>\n<\/li>\n<\/ul>\n<p><\/p>\n<p>\u042d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e.<\/p>\n<p><\/p>\n<p><noindex><a rel=\"nofollow\" href=\"#toc\">\u041a \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044e<\/a><\/noindex><\/p>\n<p>\n<noindex><a rel=\"nofollow\" name=\"docker_compose_yml_preparation\"><\/a><\/noindex><\/p>\n<h2 id=\"podgotovka-docker-composeyml\">\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 docker-compose.yml<\/h2>\n<p><\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u044d\u0442\u043e \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 docker-compose.yml, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438\/\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0438 \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e, \u0442\u0430\u043a \u0438 \u0432 CI pipeline.<\/p>\n<p><\/p>\n<p>\u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0434\u043b\u044f CI. \u041e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432 GitLab CI \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <code>CI_JOB_ID<\/code>. \u0415\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c <code>container_name<\/code> \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <code>\"service-${CI_JOB_ID:-local}\"<\/code>, \u0442\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435:<\/p>\n<p><\/p>\n<ul>\n<li>\u0435\u0441\u043b\u0438 <code>CI_JOB_ID<\/code> \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f,<br \/>\n\u0442\u043e \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0431\u0443\u0434\u0435\u0442 <code>service-local<\/code><\/li>\n<li>\u0435\u0441\u043b\u0438 <code>CI_JOB_ID<\/code> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 123),<br \/>\n\u0442\u043e \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0431\u0443\u0434\u0435\u0442 <code>service-123<\/code><\/li>\n<\/ul>\n<p><\/p>\n<p>\u0412\u043e \u0432\u0442\u043e\u0440\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u043e\u0431\u0449\u0443\u044e \u0441\u0435\u0442\u044c \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432. \u042d\u0442\u043e \u0434\u0430\u0435\u0442 \u043d\u0430\u043c \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u044e \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0441\u0435\u0442\u0438 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439.<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">networks:\n  default:\n    external:\n      name: service-network-${CI_JOB_ID:-local}<\/code><\/pre>\n<p><\/p>\n<p>\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u044d\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u0448\u0430\u0433 \u043a \u0443\u0441\u043f\u0435\u0445\u0443 =)<\/p>\n<p>\n<b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0435\u0433\u043e docker-compose.yml \u0441 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438<\/b><\/p>\n<pre><code class=\"plaintext\">version: \"3\"\n\n# \u0414\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b web (php) \u0438 fmt \u043d\u0443\u0436\u043d\u043e, \n# \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b \u0438\u043c\u0435\u043b\u0438 \u043e\u0431\u0449\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442.\n# \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u044d\u0442\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f \/var\/www\/testrail\nvolumes:\n  static-content:\n\n# \u0418\u0437\u043e\u043b\u0438\u0440\u0443\u0435\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0441\u0435\u0442\u0435\u0432\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435\nnetworks:\n  default:\n    external:\n      name: testrail-network-${CI_JOB_ID:-local}\n\nservices:\n  db:\n    image: mysql:5.7.22\n    # \u041a\u0430\u0436\u0434\u044b\u0439 container_name \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 ${CI_JOB_ID:-local}\n    container_name: \"testrail-mysql-${CI_JOB_ID:-local}\"\n    environment:\n      MYSQL_HOST: db\n      MYSQL_DATABASE: mydb\n      MYSQL_ROOT_PASSWORD: 1234\n      SKIP_GRANT_TABLES: 1\n      SKIP_NETWORKING: 1\n      SERVICE_TAGS: dev\n      SERVICE_NAME: mysql\n    networks:\n    - default\n\n  migration:\n    image: registry.gitlab.com\/touchbit\/image\/testrail\/migration:latest\n    container_name: \"testrail-migration-${CI_JOB_ID:-local}\"\n    links:\n    - db\n    depends_on:\n    - db\n    networks:\n    - default\n\n  fpm:\n    image: registry.gitlab.com\/touchbit\/image\/testrail\/fpm:latest\n    container_name: \"testrail-fpm-${CI_JOB_ID:-local}\"\n    volumes:\n    - static-content:\/var\/www\/testrail\n    links:\n    - db\n    networks:\n    - default\n\n  web:\n    image: registry.gitlab.com\/touchbit\/image\/testrail\/web:latest\n    container_name: \"testrail-web-${CI_JOB_ID:-local}\"\n    # \u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 TR_HTTP_PORT \u0438\u043b\u0438 TR_HTTPS_PORTS \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b,\n    # \u0442\u043e \u0441\u0435\u0440\u0432\u0438\u0441 \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043d\u0430 80 \u0438 443 \u043f\u043e\u0440\u0442\u0443 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.\n    ports:\n      - ${TR_HTTP_PORT:-80}:80\n      - ${TR_HTTPS_PORT:-443}:443\n    volumes:\n      - static-content:\/var\/www\/testrail\n    links:\n      - db\n      - fpm\n    networks:\n      - default<\/code><\/pre>\n<p><\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">docker-compose -f docker-compose.yml up -d\nStarting   testrail-mysql-local     ... done\nStarting   testrail-migration-local ... done\nStarting   testrail-fpm-local       ... done\nRecreating testrail-web-local       ... done<\/code><\/pre>\n<p><\/p>\n<p>\u041d\u043e \u043d\u0435 \u0432\u0441\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u0441 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u0432 CI. <\/p>\n<p><\/p>\n<p><noindex><a rel=\"nofollow\" href=\"#toc\">\u041a \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044e<\/a><\/noindex><\/p>\n<p>\n<noindex><a rel=\"nofollow\" name=\"makefile_preparation\"><\/a><\/noindex><\/p>\n<h2 id=\"podgotovka-makefile\">\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 Makefile<\/h2>\n<p><\/p>\n<p>\u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Makefile, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u0435\u0441\u044c\u043c\u0430 \u0443\u0434\u043e\u0431\u043d\u043e \u043a\u0430\u043a \u0434\u043b\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435\u043c, \u0442\u0430\u043a \u0438 \u0432 CI. \u0414\u0430\u043b\u0435\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0438\u043d\u043b\u0430\u0439\u043d<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\"># \u0423 \u043c\u0435\u043d\u044f \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0432\u0441\u0435 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u0449\u0438 \u043b\u0435\u0436\u0430\u0442 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 `.indirect`,\n# \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438 `docker-compose.yml`\n\n# \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c bash \u0441 \u043e\u043f\u0446\u0438\u0435\u0439 pipefail \n# pipefail - \u0444\u0435\u0439\u043b\u0438\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0430\u0439\u043f\u0430, \u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0430\u0441\u044c \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439\nSHELL=\/bin\/bash -o pipefail\n\n# \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b \u0438 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0441\u0435\u0442\u044c\ndocker-kill:\n    docker-compose -f $${CI_JOB_ID:-.indirect}\/docker-compose.yml kill\n    docker network rm network-$${CI_JOB_ID:-testrail} || true\n\n# \u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c docker-kill \ndocker-up: docker-kill\n    # \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0435\u0442\u044c \u0434\u043b\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \n    docker network create network-$${CI_JOB_ID:-testrail}\n    # \u0417\u0430\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0437\u044b \u0438\u0437 docker-registry\n    docker-compose -f $${CI_JOB_ID:-.indirect}\/docker-compose.yml pull\n    # \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435\n    # force-recreate - \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432\n    # renew-anon-volumes - \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c volumes \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432\n    docker-compose -f $${CI_JOB_ID:-.indirect}\/docker-compose.yml up --force-recreate --renew-anon-volumes -d\n    # \u041d\u0443 \u0438, \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439, \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0447\u0442\u043e \u0442\u0430\u043c \u0443 \u043d\u0430\u0441 \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043e \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u043a\u0435\n    docker ps\n\n# \u041a\u043e\u043b\u043b\u0435\u043a\u0442\u0438\u043c \u043b\u043e\u0433\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432\ndocker-logs:\n    mkdir .\/logs || true\n    docker logs testrail-web-$${CI_JOB_ID:-local}       &gt;&amp; logs\/testrail-web.log\n    docker logs testrail-fpm-$${CI_JOB_ID:-local}       &gt;&amp; logs\/testrail-fpm.log\n    docker logs testrail-migration-$${CI_JOB_ID:-local} &gt;&amp; logs\/testrail-migration.log\n    docker logs testrail-mysql-$${CI_JOB_ID:-local}     &gt;&amp; logs\/testrail-mysql.log\n\n# \u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u0440\u0430\u043d\u043d\u0435\u0440\u0430\ndocker-clean:\n    @echo \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0432\u0441\u0435 testrail-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b\n    docker kill $$(docker ps --filter=name=testrail -q) || true\n    @echo \u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u0434\u043e\u043a\u0435\u0440 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432\n    docker rm -f $$(docker ps -a -f --filter=name=testrail status=exited -q) || true\n    @echo \u041e\u0447\u0438\u0441\u0442\u043a\u0430 dangling \u043e\u0431\u0440\u0430\u0437\u043e\u0432\n    docker rmi -f $$(docker images -f \"dangling=true\" -q) || true\n    @echo \u041e\u0447\u0438\u0441\u0442\u043a\u0430 testrail \u043e\u0431\u0440\u0430\u0437\u043e\u0432\n    docker rmi -f $$(docker images --filter=reference='registry.gitlab.com\/touchbit\/image\/testrail\/*' -q) || true\n    @echo \u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u0432\u0441\u0435\u0445 \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 volume\n    docker volume rm -f $$(docker volume ls -q) || true\n    @echo \u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u0432\u0441\u0435\u0445 testrail \u0441\u0435\u0442\u0435\u0439\n    docker network rm $(docker network ls --filter=name=testrail -q) || true\n    docker ps\n<\/code><\/pre>\n<p><\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c<\/p>\n<p>\n<b class=\"spoiler_title\">make docker-up<\/b><\/p>\n<pre><code class=\"plaintext\">$ make docker-up \ndocker-compose -f ${CI_JOB_ID:-.indirect}\/docker-compose.yml kill\nKilling testrail-web-local   ... done\nKilling testrail-fpm-local   ... done\nKilling testrail-mysql-local ... done\ndocker network rm network-${CI_JOB_ID:-testrail} || true\nnetwork-testrail\ndocker network create network-${CI_JOB_ID:-testrail}\nd2ec063324081c8bbc1b08fd92242c2ea59d70cf4025fab8efcbc5c6360f083f\ndocker-compose -f ${CI_JOB_ID:-.indirect}\/docker-compose.yml pull\nPulling db        ... done\nPulling migration ... done\nPulling fpm       ... done\nPulling web       ... done\ndocker-compose -f ${CI_JOB_ID:-.indirect}\/docker-compose.yml up --force-recreate --renew-anon-volumes -d\nRecreating testrail-mysql-local ... done\nRecreating testrail-fpm-local       ... done\nRecreating testrail-migration-local ... done\nRecreating testrail-web-local       ... done\ndocker ps\nCONTAINER ID  PORTS                                     NAMES\na845d3cb0e5a  0.0.0.0:80-&gt;80\/tcp, 0.0.0.0:443-&gt;443\/tcp  testrail-web-local\n19d8ef001398  9000\/tcp                                  testrail-fpm-local\ne28840a2369c  3306\/tcp, 33060\/tcp                       testrail-migration-local\n0e7900c23f37  3306\/tcp                                  testrail-mysql-local\n<\/code><\/pre>\n<p>\n<b class=\"spoiler_title\">make docker-logs<\/b><\/p>\n<pre><code class=\"plaintext\">$ make docker-logs\nmkdir .\/logs || true\nmkdir: cannot create directory \u2018.\/logs\u2019: File exists\ndocker logs testrail-web-${CI_JOB_ID:-local}       &gt;&amp; logs\/testrail-web.log\ndocker logs testrail-fpm-${CI_JOB_ID:-local}       &gt;&amp; logs\/testrail-fpm.log\ndocker logs testrail-migration-${CI_JOB_ID:-local} &gt;&amp; logs\/testrail-migration.log\ndocker logs testrail-mysql-${CI_JOB_ID:-local}     &gt;&amp; logs\/testrail-mysql.log<\/code><\/pre>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"GitLab Shell Runner. \u041a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Docker Compose\" src=\"\/wp-content\/uploads\/2019\/05\/afdb9b87139c3dfcd67e346930e30309.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p><noindex><a rel=\"nofollow\" href=\"#toc\">\u041a \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044e<\/a><\/noindex><\/p>\n<p>\n<noindex><a rel=\"nofollow\" name=\"gitlab_ci_yml_preparation\"><\/a><\/noindex><\/p>\n<h2 id=\"podgotovka-gitlab-ciyml\">\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 .gitlab-ci.yml<\/h2>\n<p>\n<noindex><a rel=\"nofollow\" name=\"integration_tests_run\"><\/a><\/noindex><\/p>\n<h3 id=\"zapusk-integracionnyh-testov\">\u0417\u0430\u043f\u0443\u0441\u043a \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432<\/h3>\n<p><\/p>\n<pre><code class=\"plaintext\">Integration:\n  stage: test\n  tags:\n    - my-shell-runner\n  before_script:\n    # \u0410\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c\u0441\u044f \u0432 registry\n    - docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}\n    # \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043f\u0441\u0435\u0432\u0434\u043e\u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 TR_HTTP_PORT \u0438 TR_HTTPS_PORT\n    - export TR_HTTP_PORT=$(shuf -i10000-60000 -n1)\n    - export TR_HTTPS_PORT=$(shuf -i10000-60000 -n1)\n    # \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0441 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u0434\u0430\u0447\u0438\n    - mkdir ${CI_JOB_ID}\n    # \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u043d\u0430\u0448 docker-compose.yml\n    # \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0431\u044b\u043b \u0440\u0430\u0437\u043d\u044b\u0439 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438\n    - cp .indirect\/docker-compose.yml ${CI_JOB_ID}\/docker-compose.yml\n  script:\n    # \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c \u043d\u0430\u0448\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435\n    - make docker-up\n    # \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0442\u0435\u0441\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c jar (\u0443 \u043c\u0435\u043d\u044f \u0442\u0430\u043a)\n    - java -jar itest.jar --http-port ${TR_HTTP_PORT} --https-port ${TR_HTTPS_PORT}\n    # \u0438\u043b\u0438 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435\n    - docker run --network=testrail-network-${CI_JOB_ID:-local} --rm itest\n  after_script:\n    # \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043b\u043e\u0433\u0438\n    - make docker-logs\n    # \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435\n    - make docker-kill\n  artifacts:\n    # \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043b\u043e\u0433\u0438\n    when: always\n    paths:\n      - logs\n    expire_in: 30 days<\/code><\/pre>\n<p><\/p>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0442\u0430\u043a\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430\u0445 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f logs \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043b\u043e\u0433\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0438 \u0442\u0435\u0441\u0442\u043e\u0432. \u0427\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u043e\u0448\u0438\u0431\u043e\u043a. \u0423 \u043c\u0435\u043d\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0435\u0441\u0442 \u0432 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438 \u043f\u0438\u0448\u0435\u0442 \u0441\u0432\u043e\u0439 \u043b\u043e\u0433, \u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e. <\/p>\n<p><\/p>\n<p><img decoding=\"async\" alt=\"GitLab Shell Runner. \u041a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Docker Compose\" src=\"\/wp-content\/uploads\/2019\/05\/c88cfacc879ef92d801c3999fd37931e.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p><noindex><a rel=\"nofollow\" href=\"#toc\">\u041a \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044e<\/a><\/noindex><\/p>\n<p>\n<noindex><a rel=\"nofollow\" name=\"clean_runner\"><\/a><\/noindex><\/p>\n<h3 id=\"ochistka-rannera\">\u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u0440\u0430\u043d\u043d\u0435\u0440\u0430<\/h3>\n<p><\/p>\n<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e.<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">stages:\n- clean\n- build\n- test\n\nClean runner:\n  stage: clean\n  only:\n    - schedules\n  tags:\n    - my-shell-runner\n  script:\n    - make docker-clean<\/code><\/pre>\n<p><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0438\u0434\u0435\u043c \u0432 \u043d\u0430\u0448 GitLab \u043f\u0440\u043e\u0435\u043a\u0442 -&gt; CI\/CD -&gt; Schedules -&gt; New Schedule \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u043e\u0435 \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/p>\n<p><\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/hsto.org\/webt\/md\/40\/9y\/md409yjzjctken7qcjh5gkj0u4y.png\"><img decoding=\"async\" alt=\"GitLab Shell Runner. \u041a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Docker Compose\" src=\"\/wp-content\/uploads\/2019\/05\/ee00029d9a8c82d118daddd731b9f3a4.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/a><\/noindex><\/p>\n<p><\/p>\n<p><noindex><a rel=\"nofollow\" href=\"#toc\">\u041a \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044e<\/a><\/noindex><\/p>\n<p>\n<noindex><a rel=\"nofollow\" name=\"result\"><\/a><\/noindex><\/p>\n<h3 id=\"rezultat\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/h3>\n<p><\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c 4 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 GitLab CI<br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/hsto.org\/webt\/2t\/yt\/nt\/2tytntlg2we6ikmh4ef3p6noxwe.png\"><img decoding=\"async\" alt=\"GitLab Shell Runner. \u041a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Docker Compose\" src=\"\/wp-content\/uploads\/2019\/05\/1d66b8ebd62f2dc8d1ca35f120657774.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/a><\/noindex><\/p>\n<p><\/p>\n<p>\u0412 \u043b\u043e\u0433\u0430\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0441 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u043c\u0438 \u0442\u0435\u0441\u0442\u0430\u043c\u0438 \u0432\u0438\u0434\u0438\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b \u043e\u0442 \u0440\u0430\u0437\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 <\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">CONTAINER ID  NAMES\nc6b76f9135ed  testrail-web-204645172\n01d303262d8e  testrail-fpm-204645172\n2cdab1edbf6a  testrail-migration-204645172\n826aaf7c0a29  testrail-mysql-204645172\n6dbb3fae0322  testrail-web-204645084\n3540f8d448ce  testrail-fpm-204645084\n70fea72aa10d  testrail-mysql-204645084\nd8aa24b2892d  testrail-web-204644881\n6d4ccd910fad  testrail-fpm-204644881\n685d8023a3ec  testrail-mysql-204644881\n1cdfc692003a  testrail-web-204644793\n6f26dfb2683e  testrail-fpm-204644793\n029e16b26201  testrail-mysql-204644793\nc10443222ac6  testrail-web-204567103\n04339229397e  testrail-fpm-204567103\n6ae0accab28d  testrail-mysql-204567103\nb66b60d79e43  testrail-web-204553690\n033b1f46afa9  testrail-fpm-204553690\na8879c5ef941  testrail-mysql-204553690\n069954ba6010  testrail-web-204553539\ned6b17d911a5  testrail-fpm-204553539\n1a1eed057ea0  testrail-mysql-204553539<\/code><\/pre>\n<p>\n<b class=\"spoiler_title\">\u0411\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u043b\u043e\u0433<\/b><\/p>\n<pre><code class=\"plaintext\">$ docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}\nWARNING! Using --password via the CLI is insecure. Use --password-stdin.\nWARNING! Your password will be stored unencrypted in \/home\/gitlab-runner\/.docker\/config.json.\nConfigure a credential helper to remove this warning. See\nhttps:\/\/docs.docker.com\/engine\/reference\/commandline\/login\/#credentials-store\nLogin Succeeded\n$ export TR_HTTP_PORT=$(shuf -i10000-60000 -n1)\n$ export TR_HTTPS_PORT=$(shuf -i10000-60000 -n1)\n$ mkdir ${CI_JOB_ID}\n$ cp .indirect\/docker-compose.yml ${CI_JOB_ID}\/docker-compose.yml\n$ make docker-up\ndocker-compose -f ${CI_JOB_ID:-.indirect}\/docker-compose.yml kill\ndocker network rm testrail-network-${CI_JOB_ID:-local} || true\nError: No such network: testrail-network-204645172\ndocker network create testrail-network-${CI_JOB_ID:-local}\n0a59552b4464b8ab484de6ae5054f3d5752902910bacb0a7b5eca698766d0331\ndocker-compose -f ${CI_JOB_ID:-.indirect}\/docker-compose.yml pull\nPulling web       ... done\nPulling fpm       ... done\nPulling migration ... done\nPulling db        ... done\ndocker-compose -f ${CI_JOB_ID:-.indirect}\/docker-compose.yml up --force-recreate --renew-anon-volumes -d\nCreating volume \"204645172_static-content\" with default driver\nCreating testrail-mysql-204645172 ... \nCreating testrail-mysql-204645172 ... done\nCreating testrail-migration-204645172 ... done\nCreating testrail-fpm-204645172       ... done\nCreating testrail-web-204645172       ... done\ndocker ps\nCONTAINER ID        IMAGE                                                          COMMAND                  CREATED              STATUS              PORTS                                           NAMES\nc6b76f9135ed        registry.gitlab.com\/touchbit\/image\/testrail\/web:latest         \"nginx -g 'daemon of\u2026\"   13 seconds ago       Up 1 second         0.0.0.0:51148-&gt;80\/tcp, 0.0.0.0:25426-&gt;443\/tcp   testrail-web-204645172\n01d303262d8e        registry.gitlab.com\/touchbit\/image\/testrail\/fpm:latest         \"docker-php-entrypoi\u2026\"   16 seconds ago       Up 13 seconds       9000\/tcp                                        testrail-fpm-204645172\n2cdab1edbf6a        registry.gitlab.com\/touchbit\/image\/testrail\/migration:latest   \"docker-entrypoint.s\u2026\"   16 seconds ago       Up 13 seconds       3306\/tcp, 33060\/tcp                             testrail-migration-204645172\n826aaf7c0a29        mysql:5.7.22                                                   \"docker-entrypoint.s\u2026\"   18 seconds ago       Up 16 seconds       3306\/tcp                                        testrail-mysql-204645172\n6dbb3fae0322        registry.gitlab.com\/touchbit\/image\/testrail\/web:latest         \"nginx -g 'daemon of\u2026\"   36 seconds ago       Up 22 seconds       0.0.0.0:44202-&gt;80\/tcp, 0.0.0.0:20151-&gt;443\/tcp   testrail-web-204645084\n3540f8d448ce        registry.gitlab.com\/touchbit\/image\/testrail\/fpm:latest         \"docker-php-entrypoi\u2026\"   38 seconds ago       Up 35 seconds       9000\/tcp                                        testrail-fpm-204645084\n70fea72aa10d        mysql:5.7.22                                                   \"docker-entrypoint.s\u2026\"   40 seconds ago       Up 37 seconds       3306\/tcp                                        testrail-mysql-204645084\nd8aa24b2892d        registry.gitlab.com\/touchbit\/image\/testrail\/web:latest         \"nginx -g 'daemon of\u2026\"   About a minute ago   Up 53 seconds       0.0.0.0:31103-&gt;80\/tcp, 0.0.0.0:43872-&gt;443\/tcp   testrail-web-204644881\n6d4ccd910fad        registry.gitlab.com\/touchbit\/image\/testrail\/fpm:latest         \"docker-php-entrypoi\u2026\"   About a minute ago   Up About a minute   9000\/tcp                                        testrail-fpm-204644881\n685d8023a3ec        mysql:5.7.22                                                   \"docker-entrypoint.s\u2026\"   About a minute ago   Up About a minute   3306\/tcp                                        testrail-mysql-204644881\n1cdfc692003a        registry.gitlab.com\/touchbit\/image\/testrail\/web:latest         \"nginx -g 'daemon of\u2026\"   About a minute ago   Up About a minute   0.0.0.0:44752-&gt;80\/tcp, 0.0.0.0:23540-&gt;443\/tcp   testrail-web-204644793\n6f26dfb2683e        registry.gitlab.com\/touchbit\/image\/testrail\/fpm:latest         \"docker-php-entrypoi\u2026\"   About a minute ago   Up About a minute   9000\/tcp                                        testrail-fpm-204644793\n029e16b26201        mysql:5.7.22                                                   \"docker-entrypoint.s\u2026\"   About a minute ago   Up About a minute   3306\/tcp                                        testrail-mysql-204644793\nc10443222ac6        registry.gitlab.com\/touchbit\/image\/testrail\/web:latest         \"nginx -g 'daemon of\u2026\"   5 hours ago          Up 5 hours          0.0.0.0:57123-&gt;80\/tcp, 0.0.0.0:31657-&gt;443\/tcp   testrail-web-204567103\n04339229397e        registry.gitlab.com\/touchbit\/image\/testrail\/fpm:latest         \"docker-php-entrypoi\u2026\"   5 hours ago          Up 5 hours          9000\/tcp                                        testrail-fpm-204567103\n6ae0accab28d        mysql:5.7.22                                                   \"docker-entrypoint.s\u2026\"   5 hours ago          Up 5 hours          3306\/tcp                                        testrail-mysql-204567103\nb66b60d79e43        registry.gitlab.com\/touchbit\/image\/testrail\/web:latest         \"nginx -g 'daemon of\u2026\"   5 hours ago          Up 5 hours          0.0.0.0:56321-&gt;80\/tcp, 0.0.0.0:58749-&gt;443\/tcp   testrail-web-204553690\n033b1f46afa9        registry.gitlab.com\/touchbit\/image\/testrail\/fpm:latest         \"docker-php-entrypoi\u2026\"   5 hours ago          Up 5 hours          9000\/tcp                                        testrail-fpm-204553690\na8879c5ef941        mysql:5.7.22                                                   \"docker-entrypoint.s\u2026\"   5 hours ago          Up 5 hours          3306\/tcp                                        testrail-mysql-204553690\n069954ba6010        registry.gitlab.com\/touchbit\/image\/testrail\/web:latest         \"nginx -g 'daemon of\u2026\"   5 hours ago          Up 5 hours          0.0.0.0:32869-&gt;80\/tcp, 0.0.0.0:16066-&gt;443\/tcp   testrail-web-204553539\ned6b17d911a5        registry.gitlab.com\/touchbit\/image\/testrail\/fpm:latest         \"docker-php-entrypoi\u2026\"   5 hours ago          Up 5 hours          9000\/tcp                                        testrail-fpm-204553539\n1a1eed057ea0        mysql:5.7.22                                                   \"docker-entrypoint.s\u2026\"   5 hours ago          Up 5 hours          3306\/tcp                                        testrail-mysql-204553539<\/code><\/pre>\n<p>\n<b class=\"spoiler_title\">\u0412\u0441\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u044b<\/b><\/p>\n<p>\u0410\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0437\u0430\u0434\u0430\u0447\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043b\u043e\u0433\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0438 \u0442\u0435\u0441\u0442\u043e\u0432<br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/hsto.org\/webt\/xu\/gp\/kh\/xugpkhzugu-9olo8bz5qyorlbdc.png\"><img decoding=\"async\" alt=\"GitLab Shell Runner. \u041a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Docker Compose\" src=\"\/wp-content\/uploads\/2019\/05\/f98914051fbab7af0a28518ff2b24378.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/a><\/noindex><\/p>\n<p><\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/hsto.org\/webt\/1h\/cr\/b8\/1hcrb8n8awyjugdbbhvyn9axiv8.png\"><img decoding=\"async\" alt=\"GitLab Shell Runner. \u041a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Docker Compose\" src=\"\/wp-content\/uploads\/2019\/05\/23f3eb3adccd3b891826ad567dfcd67b.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/a><\/noindex><\/p>\n<p><\/p>\n<p>\u0412\u0440\u043e\u0434\u0435 \u0432\u0441\u0435 \u043f\u043e \u043a\u0440\u0430\u0441\u043e\u0442\u0435, \u043d\u043e \u0435\u0441\u0442\u044c \u043d\u044e\u0430\u043d\u0441. Pipeline \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u043c\u0435\u043d\u0435\u043d \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432, \u0438 \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b. \u0412\u0440\u0435\u043c\u044f \u043e\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0443\u0436\u043d\u043e \u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0440\u0430\u043d\u043d\u0435\u0440. \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0430 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0432 GitLab CE \u0432\u0441\u0435 \u0435\u0449\u0435 \u0432 \u0441\u0442\u0430\u0442\u0443\u0441\u0435 <noindex><a rel=\"nofollow\" href=\"https:\/\/gitlab.com\/gitlab-org\/gitlab-ce\/issues\/20727\">Open<\/a><\/noindex><\/p>\n<p><\/p>\n<p>\u041d\u043e \u0443 \u043d\u0430\u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0437\u0430\u043f\u0443\u0441\u043a \u0437\u0430\u0434\u0430\u0447\u0438 \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e, \u0438 \u043d\u0438\u043a\u0442\u043e \u043d\u0430\u043c \u043d\u0435 \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u0442 \u0435\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e.<br \/>\n\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442 -&gt; CI\/CD -&gt; Schedules \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0437\u0430\u0434\u0430\u0447\u0443 <code>Clean runner<\/code> <\/p>\n<p><\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/hsto.org\/webt\/sg\/ia\/nv\/sgianvitqqnsknbmmgupakud62k.png\"><img decoding=\"async\" alt=\"GitLab Shell Runner. \u041a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Docker Compose\" src=\"\/wp-content\/uploads\/2019\/05\/b3ddd905757669342223f7fe4a99ad4f.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/a><\/noindex><\/p>\n<p><\/p>\n<p>\u0418\u0442\u043e\u0433\u043e:<\/p>\n<p><\/p>\n<ul>\n<li>\u0423 \u043d\u0430\u0441 \u043e\u0434\u0438\u043d shell runner.<\/li>\n<li>\u041a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0437\u0430\u0434\u0430\u0447\u0430\u043c\u0438 \u0438 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435\u043c \u043d\u0435\u0442.<\/li>\n<li>\u0423 \u043d\u0430\u0441 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0437\u0430\u0434\u0430\u0447 \u0441 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u043c\u0438 \u0442\u0435\u0441\u0442\u0430\u043c\u0438.<\/li>\n<li>\u041c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b \u043a\u0430\u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e, \u0442\u0430\u043a \u0438 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435.<\/li>\n<li>\u041b\u043e\u0433\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0438 \u0442\u0435\u0441\u0442\u043e\u0432 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0438 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u044f\u044e\u0442\u0441\u044f \u043a pipeline-\u0437\u0430\u0434\u0430\u0447\u0435. <\/li>\n<li>\u0415\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0440\u0430\u043d\u043d\u0435\u0440\u0430 \u043e\u0442 \u0441\u0442\u0430\u0440\u044b\u0445 docker-\u043e\u0431\u0440\u0430\u0437\u043e\u0432. <\/li>\n<\/ul>\n<p><\/p>\n<p>\u0412\u0440\u0435\u043c\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u2014 ~2 \u0447\u0430\u0441\u0430.<br \/>\n\u0412\u043e\u0442, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0438 \u0432\u0441\u0435. \u0411\u0443\u0434\u0443 \u0440\u0430\u0434 \u0444\u0438\u0434\u0431\u044d\u043a\u0443.<\/p>\n<p><\/p>\n<p><noindex><a rel=\"nofollow\" href=\"#toc\">\u041a \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044e<\/a><\/noindex><\/p>\n<p>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/449910\/\">habr.com<\/a><\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u043a\u0430\u043a \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430\u043c, \u0442\u0430\u043a \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c, \u043d\u043e \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u0430 \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u043d\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 GitLab CI\/CD \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438\/\u0438\u043b\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u043e\u0440\u043a\u0435\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432. \u042f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 docker compose \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c GitLab shell \u0440\u0430\u043d\u043d\u0435\u0440\u0435 \u0438 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":24634,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-32860","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u043a\u0430\u043a \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430\u043c, \u0442\u0430\u043a \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c, \u043d\u043e \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u0430 \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u043d\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 GitLab CI\/CD \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438\/\u0438\u043b\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u043e\u0440\u043a\u0435\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432. \u042f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 docker compose \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c GitLab shell \u0440\u0430\u043d\u043d\u0435\u0440\u0435 \u0438\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/gitlab-shell-runner-konkurentnyj-zapusk-testiruemyh-servisov-pri-pomoshhi-docker-compose\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"de_DE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47GitLab Shell Runner. \u041a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Docker Compose | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u043a\u0430\u043a \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430\u043c, \u0442\u0430\u043a \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c, \u043d\u043e \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u0430 \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u043d\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 GitLab CI\/CD \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438\/\u0438\u043b\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u043e\u0440\u043a\u0435\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432. \u042f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 docker compose \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c GitLab shell \u0440\u0430\u043d\u043d\u0435\u0440\u0435 \u0438\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/gitlab-shell-runner-konkurentnyj-zapusk-testiruemyh-servisov-pri-pomoshhi-docker-compose\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T18:49:21+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T18:49:21+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47GitLab Shell Runner. Gleichzeitiger Start von Testdiensten mit Docker Compose | ProHoster","description":"Dieser Artikel wird sowohl f\u00fcr Tester als auch f\u00fcr Entwickler von Interesse sein, richtet sich jedoch in erster Linie an Automatisierer, die mit der Herausforderung konfrontiert sind, GitLab CI\/CD f\u00fcr die Durchf\u00fchrung von Integrationstests unter Bedingungen unzureichender Infrastrukturressourcen und\/oder fehlender Container-Orchestrierungsplattformen einzurichten. Ich werde erl\u00e4utern, wie Sie den Einsatz von Testumgebungen mit Docker Compose auf einem einzigen GitLab Shell Runner konfigurieren k\u00f6nnen, und","canonical_url":"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/gitlab-shell-runner-konkurentnyj-zapusk-testiruemyh-servisov-pri-pomoshhi-docker-compose","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"de_DE","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47GitLab Shell Runner. \u041a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Docker Compose | ProHoster","og:description":"\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u043a\u0430\u043a \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430\u043c, \u0442\u0430\u043a \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c, \u043d\u043e \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u0430 \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u043d\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 GitLab CI\/CD \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438\/\u0438\u043b\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u043e\u0440\u043a\u0435\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432. \u042f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0439 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 docker compose \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c GitLab shell \u0440\u0430\u043d\u043d\u0435\u0440\u0435 \u0438","og:url":"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/gitlab-shell-runner-konkurentnyj-zapusk-testiruemyh-servisov-pri-pomoshhi-docker-compose","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T18:49:21+00:00","article:modified_time":"2019-10-31T18:49:21+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"32860","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-21 12:53:20","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 02:51:27","updated":"2026-01-21 12:53:20"},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts\/32860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/comments?post=32860"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts\/32860\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/media\/24634"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/media?parent=32860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/categories?post=32860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/tags?post=32860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}