-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating CI based on plugin-template (#676)
No-Issue
- Loading branch information
Showing
7 changed files
with
70 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,29 @@ | ||
FROM {{ ci_base | default("pulp/pulp-ci:latest") }} | ||
|
||
{% if s3_test | default(false) %} | ||
# Hacking botocore (https://github.com/boto/botocore/pull/1990) | ||
RUN pip3 install django-storages[boto3] | ||
RUN pip3 install git+https://github.com/fabricio-aguiar/botocore.git@fix-100-continue | ||
{% endif %} | ||
FROM {{ ci_base | default("pulp/pulp-ci-centos:latest") }} | ||
|
||
# Add source directories to container | ||
{% for item in plugins %} | ||
|
||
# Install {{ item.name }} from {{ item.source }} | ||
{% if item.name == "pulp-certguard" %} | ||
RUN pip3 install python-dateutil rhsm | ||
{% endif %} | ||
{% if item.source.startswith("./") %} | ||
ADD {{ item.source }} {{ item.source }} | ||
{% endif %} | ||
RUN pip3 install {{ item.source }} | ||
{% endfor %} | ||
|
||
# Install python packages | ||
# Hacking botocore (https://github.com/boto/botocore/pull/1990) | ||
|
||
RUN pip3 install \ | ||
{%- if s3_test | default(false) -%} | ||
{{ " " }}django-storages[boto3] git+https://github.com/fabricio-aguiar/botocore.git@fix-100-continue | ||
{%- endif -%} | ||
{%- for item in plugins -%} | ||
{%- if item.name == "pulp-certguard" -%} | ||
{{ " " }}python-dateutil rhsm | ||
{%- endif -%} | ||
{{ " " }}"{{ item.source }}" | ||
{%- endfor %} | ||
|
||
RUN mkdir -p /etc/nginx/pulp/ | ||
RUN ln /usr/local/lib/python3.7/site-packages/{{ item.name }}/app/webserver_snippets/nginx.conf /etc/nginx/pulp/{{ item.name }}.conf || true | ||
{% for item in plugins %} | ||
RUN ln /usr/local/lib/python3.6/site-packages/{{ item.name }}/app/webserver_snippets/nginx.conf /etc/nginx/pulp/{{ item.name }}.conf || true | ||
{% endfor %} | ||
|
||
ENTRYPOINT ["/init"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# This file is meant to be sourced by ci-scripts | ||
|
||
PULP_CONTAINER=pulp | ||
PULP_CI_CONTAINER=pulp | ||
|
||
# Run a command | ||
cmd_prefix() { | ||
docker exec "$PULP_CONTAINER" "$@" | ||
docker exec "$PULP_CI_CONTAINER" "$@" | ||
} | ||
|
||
# Run a command, and pass STDIN | ||
cmd_stdin_prefix() { | ||
docker exec -i "$PULP_CONTAINER" "$@" | ||
docker exec -i "$PULP_CI_CONTAINER" "$@" | ||
} |