如何将此gitlab yml文件重写为docker文件
在docker文件中执行下面的gitlab yaml文件时,我需要您的帮助,基本上我希望将此gitlab yaml文件的内容作为docker容器并在kubernetes中执行..下面是gitlab yaml文件如何将此gitlab yml文件重写为docker文件,docker,gitlab,dockerfile,gitlab-ci-runner,Docker,Gitlab,Dockerfile,Gitlab Ci Runner,在docker文件中执行下面的gitlab yaml文件时,我需要您的帮助,基本上我希望将此gitlab yaml文件的内容作为docker容器并在kubernetes中执行..下面是gitlab yaml文件 stages: - auto-test-pre-stage - auto-test-stage - test variables: BUCKET_NAME: junitreports/CompanionAppSimulator AWS_DEFAULT
stages:
- auto-test-pre-stage
- auto-test-stage
- test
variables:
BUCKET_NAME: junitreports/CompanionAppSimulator
AWS_DEFAULT_REGION: us-east-2
test:
image: python:latest
stage: test
tags:
- docker
before_script:
- pip install awscli
script:
- echo 'this is the script 2'
- cd /builds/core-systems/find/test/Companion/report/
- ls -l
- aws s3 cp . s3://${BUCKET_NAME}/${CI_COMMIT_REF_SLUG}/-$(date +"%m-%d-%y-%T") --recursive
environment:
name: ${CI_COMMIT_REF_SLUG}
url: http://${BUCKET_NAME}.s3-website.${AWS_DEFAULT_REGION}.amazonaws.com/${CI_COMMIT_REF_SLUG}
only:
- branches
except:
- master
.auto_test_template: &auto_test_definition # template for deploy jobs
image: katalonstudio/katalon
stage: auto-test-pre-stage
tags:
- docker
script:
- cd test/CompanionAppSimulator
- katalon-execute.sh -retry=0 -statusDelay=15 -testSuitePath="Test Suites/AppSimulator"
artifacts:
name: "Test Reports"
paths:
- /builds/core-systems/finders-keepers/test/CompanionAppSimulator/report/
reports:
junit:
- '/builds/core-systems/finders-keepers/test/CompanionAppSimulator/report/*.xml'
auto_test_feature:
<<: *auto_test_definition
tags:
- docker
only:
- branches
except:
- master
- develop
auto_test_develop:
<<: *auto_test_definition
tags:
- docker
only:
- develop
auto_test_stage:
<<: *auto_test_definition
stage: auto-test-stage
tags:
- docker
only:
- master
when: manual
阶段:
-自动测试前期
-自动测试阶段
-试验
变量:
BUCKET_名称:junitreports/companyappsimulator
AWS_默认_地区:us-east-2
测试:
图片:python:最新版本
阶段:测试
标签:
-码头工人
在脚本之前:
-pip安装awscli
脚本:
-回显“这是脚本2”
-cd/构建/核心系统/查找/测试/配套/报告/
-ls-l
-aws s3 cp。s3://${BUCKET\u NAME}/${CI\u COMMIT\u REF\u SLUG}/-$(日期+%m-%d-%y-%T”)--递归
环境:
名称:${CI\u COMMIT\u REF\u SLUG}
url:http://${BUCKET\u NAME}.s3网站。${AWS\u DEFAULT\u REGION}.amazonaws.com/${CI\u COMMIT\u REF\u SLUG}
仅:
-分支机构
除:
-主人
.auto_test_template:&auto_test_definition#部署作业的模板
图片:katalonstudio/katalon
阶段:自动测试前阶段
标签:
-码头工人
脚本:
-cd测试/伴奏模拟器
-katalon-execute.sh-retry=0-statusDelay=15-testSuitePath=“测试套件/AppSimulator”
人工产品:
名称:“测试报告”
路径:
-/builds/core systems/finders-keepers/test/CompanionAppSimulator/report/
报告:
朱尼特:
-“/builds/core systems/finders-keepers/test/CompanionAppSimulator/report/*.xml”
自动测试功能:
无法在kubernetes群集上运行gitlab ci文件,如果要将此文件用于ci,则此文件特定于gitlab
另外,您希望通过在Kubernetes集群上运行yaml文件来实现什么?
编辑:我知道您希望自己的映像能够在不使用Gitlab的情况下处理CI部件。您可以编写自己的代码来使用任何语言实现CI,然后可以将其dockerize。