forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support building Iron Bank Docker context (elastic#64336)
This PR adds support for building a Docker context for Iron Bank. It doesn't actually build the image - we could add that at a later stage, but this is an attempt to automate at least some of the process. Iron Bank is a lot like our UBI build, except it uses a hardened version of the full UBI image, not the minimal UBI image. They have particular requirements around how the Docker context should be arranged. The Docker build cannot fetch its own artefacts, but instead the context provides a descriptor that locates what is needed for the build. I also added a filter so that after performing expansions on the `Dockerfile`, we squash long runs on newlines together. This makes the output cleaner, while allowing us to break up the unprocessed `Dockerfile` for clarity.
- Loading branch information
1 parent
72c354f
commit e2225aa
Showing
10 changed files
with
260 additions
and
28 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
14 changes: 14 additions & 0 deletions
14
distribution/docker/ironbank-docker-build-context/build.gradle
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import org.elasticsearch.gradle.Architecture | ||
import org.elasticsearch.gradle.DockerBase | ||
|
||
apply plugin: 'base' | ||
|
||
tasks.register("buildIronBankDockerBuildContext", Tar) { | ||
archiveExtension = 'tar.gz' | ||
compression = Compression.GZIP | ||
archiveClassifier = "docker-build-context" | ||
archiveBaseName = "elasticsearch-ironbank" | ||
// We always treat Iron Bank builds as local, because that is how they | ||
// are built | ||
with dockerBuildContext(Architecture.X64, false, DockerBase.IRON_BANK, true) | ||
} |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Ignore any locally downloaded or dropped releases | ||
*.tar.gz |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@Library('DCCSCR@master') _ | ||
dccscrPipeline(version: '${version}') |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Elasticsearch | ||
|
||
**Elasticsearch** is a distributed, RESTful search and analytics engine capable of | ||
solving a growing number of use cases. As the heart of the Elastic Stack, it | ||
centrally stores your data so you can discover the expected and uncover the | ||
unexpected. | ||
|
||
For more information about Elasticsearch, please visit | ||
https://www.elastic.co/products/elasticsearch. | ||
|
||
### Installation instructions | ||
|
||
Please follow the documentation on [how to install Elasticsearch with Docker](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html). | ||
|
||
### Where to file issues and PRs | ||
|
||
- [Issues](https://github.com/elastic/elasticsearch/issues) | ||
- [PRs](https://github.com/elastic/elasticsearch/pulls) | ||
|
||
### Where to get help | ||
|
||
- [Elasticsearch Discuss Forums](https://discuss.elastic.co/c/elasticsearch) | ||
- [Elasticsearch Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/master/index.html) | ||
|
||
### Still need help? | ||
|
||
You can learn more about the Elastic Community and also understand how to get more help | ||
visiting [Elastic Community](https://www.elastic.co/community). | ||
|
||
|
||
This software is governed by the [Elastic | ||
License](https://github.com/elastic/elasticsearch/blob/${major_minor_version}/licenses/ELASTIC-LICENSE.txt), | ||
and includes the full set of [free | ||
features](https://www.elastic.co/subscriptions). | ||
|
||
View the detailed release notes | ||
[here](https://www.elastic.co/guide/en/elasticsearch/reference/${major_minor_version}/es-release-notes.html). |
Oops, something went wrong.