File tree 4 files changed +22
-17
lines changed
4 files changed +22
-17
lines changed Original file line number Diff line number Diff line change @@ -2,27 +2,21 @@ FROM {{ ci_base | default("ghcr.io/pulp/pulp-ci-centos:" + pulp_container_tag) }
2
2
3
3
# Add source directories to container
4
4
{% for item in plugins %}
5
- {% if item .source .startswith ("./" ) or item .ci_requirements | default (false ) %}
6
5
ADD ./{{ item.name }} ./{{ item.name }}
7
- {% endif %}
8
6
{% endfor %}
9
7
10
8
# Install python packages
9
+ # S3 botocore needs to be patched to handle responses from minio during 0-byte uploads
10
+ # Hacking botocore (https://github.com/boto/botocore/pull/1990)
11
11
12
12
RUN pip3 install
13
- {% - for item in plugins -%}
14
- {% - if item .name == "pulp-certguard" -%}
15
- {{ " " }}python-dateutil rhsm
16
- {% - endif -%}
17
- {{ " " }}{{ item.source }}
18
- {% - if item .name == "pulpcore" -%}
19
13
{% - if s 3_test | default (false ) -%}
20
- [s3]
21
- {% - elif azure_test | default (false ) -%}
22
- [azure]
23
- {% - elif gcp_test | default (false ) -%}
24
- [google]
14
+ {{ " " }}git+https://github.com/fabricio-aguiar/botocore.git@fix-100-continue
25
15
{% - endif -%}
16
+ {% - for item in plugins -%}
17
+ {{ " " }}{{ item.source }}
18
+ {% - if item .lowerbounds | default (false ) -%}
19
+ {{ " " }}-c ./{{ item.name }}/lowerbounds_constraints.txt
26
20
{% - endif -%}
27
21
{% - if item .ci_requirements | default (false ) -%}
28
22
{{ " " }}-r ./{{ item.name }}/ci_requirements.txt
Original file line number Diff line number Diff line change 1
- 2021.08.26-293-gde76e9f
1
+ 2021.08.26-296-g466c79b
Original file line number Diff line number Diff line change 66
66
fi
67
67
68
68
if [[ " $TEST " = " lowerbounds" ]]; then
69
- python3 .ci/scripts/calc_deps_lowerbounds.py > lowerbounds_requirements.txt
70
- mv lowerbounds_requirements.txt requirements.txt
69
+ python3 .ci/scripts/calc_deps_lowerbounds.py > lowerbounds_constraints.txt
71
70
fi
72
71
73
72
if [ -f $POST_BEFORE_INSTALL ]; then
Original file line number Diff line number Diff line change 37
37
fi
38
38
39
39
cd .ci/ansible/
40
+ PLUGIN_SOURCE=" ${PLUGIN_NAME} "
41
+ if [ " $TEST " = " s3" ]; then
42
+ PLUGIN_SOURCE=" ${PLUGIN_SOURCE} pulpcore[s3]"
43
+ fi
44
+ if [ " $TEST " = " azure" ]; then
45
+ PLUGIN_SOURCE=" ${PLUGIN_SOURCE} pulpcore[azure]"
46
+ fi
40
47
41
48
cat >> vars/main.yaml << VARSYAML
42
49
image:
43
50
name: pulp
44
51
tag: "ci_build"
45
52
plugins:
46
53
- name: pulp_python
47
- source: "${PLUGIN_NAME } "
54
+ source: "${PLUGIN_SOURCE } "
48
55
VARSYAML
49
56
if [[ -f ../../ci_requirements.txt ]]; then
50
57
cat >> vars/main.yaml << VARSYAML
51
58
ci_requirements: true
52
59
VARSYAML
53
60
fi
61
+ if [ " $TEST " = " lowerbounds" ]; then
62
+ cat >> vars/main.yaml << VARSYAML
63
+ lowerbounds: true
64
+ VARSYAML
65
+ fi
54
66
55
67
cat >> vars/main.yaml << VARSYAML
56
68
services:
You can’t perform that action at this time.
0 commit comments