Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweaks to the Iron Bank docker context #66942

Merged

Conversation

pugnascotia
Copy link
Contributor

This PR makes a few tweaks to the Docker context that the ES build can generate, in order to align it more closely with what we submit to DSOP.

@pugnascotia pugnascotia added >enhancement :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts v8.0.0 v7.12.0 labels Jan 4, 2021
@elasticmachine elasticmachine added the Team:Delivery Meta label for Delivery team label Jan 4, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

@pugnascotia
Copy link
Contributor Author

@jmlrt Did you want the validation section omitted entirely for the ES artifact in downloads.json?

Copy link
Contributor

@mark-vieira mark-vieira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question, otherwise 👍

@@ -1,7 +1,7 @@
{
"resources": [
{
"url": "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${version}-linux-x86_64.tar.gz",
"url": "<artifact_path>/elasticsearch-${version}-linux-x86_64.tar.gz",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this syntax? Does this value get replaced somewhere, and if so, how?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’s literally just a placeholder. Infra are planning a process to substitute the correct values during the unified release process.

Copy link
Member

@jmlrt jmlrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmlrt Did you want the validation section omitted entirely for the ES artifact in downloads.json?

Yes, the validation section should be omitted for ES artifacts.

@@ -364,6 +369,9 @@ LABEL name="Elasticsearch" \\
RUN mkdir /licenses && \\
cp LICENSE.txt /licenses/LICENSE
<% } %>
<% if (docker_base == 'iron_bank') { %>
COPY LICENSE /licenses/LICENSE.addendum
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/elastic/ironbank/blob/master/Elastic_License_w_gov_addendum_2020-10-08-1.txt contains standard license + addendum so it should completely replace the other license file.

Can you also add this license file to the generated build context tarball?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The simplest thing to do would be to copy that file into the ES repo and add it into the generated build context. What do you think? Obviously having it in two places isn't ideal, but fetching the license file when the task run also feels fragile.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I totally agree 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The license is now included in the repo and in the generated build context.

Copy link
Member

@jmlrt jmlrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM⛴

@pugnascotia pugnascotia merged commit 7fba77c into elastic:master Jan 5, 2021
@pugnascotia pugnascotia deleted the iron-bank-docker-context-tweaks branch January 5, 2021 16:46
alyokaz pushed a commit to alyokaz/elasticsearch that referenced this pull request Mar 10, 2021
This PR makes a few tweaks to the Docker context that the ES build can generate,
in order to align it more closely with what we submit to DSOP.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts >enhancement Team:Delivery Meta label for Delivery team v7.12.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants