Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
GitLab
管理
动态
成员
标记
计划
议题
议题看板
里程碑
迭代
需求
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
锁定的文件
构建
流水线
作业
流水线计划
测试用例
产物
部署
发布
Package registry
容器镜像库
模型注册表
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
代码评审分析
议题分析
洞察
模型实验
效能分析
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
gitlab-cn
GitLab
提交
b601cfcf
未验证
提交
b601cfcf
编辑于
5 years ago
作者:
Rémy Coutable
浏览文件
操作
下载
补丁
差异文件
Update qa/Dockerfile to be built from the project root context
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
上级
6aa215aa
No related branches found
No related tags found
无相关合并请求
变更
5
隐藏空白变更内容
行内
左右并排
显示
5 个更改的文件
.dockerignore
+72
-0
72 个添加, 0 个删除
.dockerignore
qa/Dockerfile
+8
-4
8 个添加, 4 个删除
qa/Dockerfile
qa/Gemfile
+1
-0
1 个添加, 0 个删除
qa/Gemfile
qa/Gemfile.lock
+7
-6
7 个添加, 6 个删除
qa/Gemfile.lock
qa/README.md
+3
-2
3 个添加, 2 个删除
qa/README.md
有
91 个添加
和
12 个删除
.dockerignore
0 → 100644
+
72
−
0
浏览文件 @
b601cfcf
# `build_from_dir` can't find Dockerfile when `.dockerignore` is "*"
# See https://github.com/swipely/docker-api/issues/484
# Ignore all folders except qa/, config/initializers and the root of lib/ since
# the files we need to build the QA image are in these folders.
# Following are the files we need:
# - ./config/initializers/0_inject_enterprise_edition_module.rb
# - ./lib/gitlab.rb
# - ./qa/
# - ./INSTALLATION_TYPE
# - ./VERSION
/app/
/bin/
/builds/
/changelogs/
/config/environments/
/config/helpers/
/config/knative/
/config/locales/
/config/prometheus/
/config/routes/
/danger/
/db/
/doc/
/docker/
/ee/
/fixtures/
/templates/
/lint/
/lib/api/
/lib/assets/
/lib/backup/
/lib/banzai/
/lib/bitbucket/
/lib/server/
/lib/constraints/
/lib/registry/
/lib/policy/
/lib/feature/
/lib/flowdock/
/lib/generators/
/lib/gitaly/
/lib/gitlab/
/lib/api/
/lib/token/
/lib/mattermost/
/lib/teams/
/lib/storage/
/lib/auth/
/lib/peek/
/lib/prometheus/
/lib/quality/
/lib/rouge/
/lib/flaky/
/lib/zip/
/lib/sentry/
/lib/serializers/
/lib/support/
/lib/check/
/lib/tasks/
/locale/
/log/
/modules/
/plugins/
/public/
/rubocop/
/scripts/
/shared/
/spec/
/symbol/
/tmp/
/vendor/
此差异已折叠。
点击以展开。
qa/Dockerfile
+
8
−
4
浏览文件 @
b601cfcf
...
...
@@ -47,9 +47,13 @@ RUN export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && \
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
&&
\
apt-get update
-y
&&
apt-get
install
google-cloud-sdk kubectl
-y
WORKDIR
/home/qa
COPY
./Gemfile* ./
RUN
bundle
install
COPY
./ ./
WORKDIR
/home/gitlab/qa
COPY
./qa/Gemfile* /home/gitlab/qa/
COPY
./config/initializers/0_inject_enterprise_edition_module.rb /home/gitlab/config/initializers/
COPY
./lib/gitlab.rb /home/gitlab/lib/
COPY
./INSTALLATION_TYPE /home/gitlab/
COPY
./VERSION /home/gitlab/
RUN
cd
/home/gitlab/qa/
&&
bundle
install
COPY
./qa /home/gitlab/qa
ENTRYPOINT
["bin/test"]
此差异已折叠。
点击以展开。
qa/Gemfile
+
1
−
0
浏览文件 @
b601cfcf
source
'https://rubygems.org'
gem
'gitlab-qa'
gem
'activesupport'
,
'5.2.3'
# This should stay in sync with the root's Gemfile
gem
'pry-byebug'
,
'~> 3.5.1'
,
platform: :mri
gem
'capybara'
,
'~> 2.16.1'
gem
'capybara-screenshot'
,
'~> 1.0.18'
...
...
此差异已折叠。
点击以展开。
qa/Gemfile.lock
+
7
−
6
浏览文件 @
b601cfcf
GEM
remote: https://rubygems.org/
specs:
activesupport (5.
1.4
)
activesupport (5.
2.3
)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (
~
> 0.7)
i18n (>
=
0.7
, < 2
)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.5.2)
...
...
@@ -28,7 +28,7 @@ GEM
childprocess (0.9.0)
ffi (~> 1.0, >= 1.0.11)
coderay (1.1.2)
concurrent-ruby (1.
0
.5)
concurrent-ruby (1.
1
.5)
diff-lcs (1.3)
domain_name (0.5.20170404)
unf (>= 0.0.5, < 1.0.0)
...
...
@@ -38,7 +38,7 @@ GEM
gitlab-qa (4.0.0)
http-cookie (1.0.3)
domain_name (~> 0.5)
i18n (
0.9.1
)
i18n (
1.6.0
)
concurrent-ruby (~> 1.0)
knapsack (1.17.1)
rake
...
...
@@ -50,7 +50,7 @@ GEM
mime-types-data (3.2016.0521)
mini_mime (1.0.0)
mini_portile2 (2.4.0)
minitest (5.11.
1
)
minitest (5.11.
3
)
netrc (0.11.0)
nokogiri (1.10.4)
mini_portile2 (~> 2.4.0)
...
...
@@ -94,7 +94,7 @@ GEM
childprocess (~> 0.5)
rubyzip (~> 1.2, >= 1.2.2)
thread_safe (0.3.6)
tzinfo (1.2.
4
)
tzinfo (1.2.
5
)
thread_safe (~> 0.1)
unf (0.1.4)
unf_ext
...
...
@@ -106,6 +106,7 @@ PLATFORMS
ruby
DEPENDENCIES
activesupport (= 5.2.3)
airborne (~> 0.2.13)
capybara (~> 2.16.1)
capybara-screenshot (~> 1.0.18)
...
...
此差异已折叠。
点击以展开。
qa/README.md
+
3
−
2
浏览文件 @
b601cfcf
...
...
@@ -123,10 +123,11 @@ To set multiple cookies, separate them with the `;` character, for example: `QA_
Once you have made changes to the CE/EE repositories, you may want to build a
Docker image to test locally instead of waiting for the
`gitlab-ce-qa`
or
`gitlab-ee-qa`
nightly builds. To do that, you can run from this directory:
`gitlab-ee-qa`
nightly builds. To do that, you can run
**
from the top
`gitlab`
directory
**
(one level up from this directory):
```
sh
docker build
-t
gitlab/gitlab-ce-qa:nightly
.
docker build
-t
gitlab/gitlab-ce-qa:nightly
--file
./qa/Dockerfile ./
```
[
GDK
]:
https://gitlab.com/gitlab-org/gitlab-development-kit/
...
...
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录