-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parameterise versions into Dockerfile
Use build arguments for the base image and plugin version in the Dockerfile so that the Dockerfile does not need to be edited every time we update versions
- Loading branch information
Showing
2 changed files
with
19 additions
and
4 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,3 +1,5 @@ | ||
FROM opensearchproject/opensearch:2.9.0 | ||
COPY target/releases/SynonymsPlugin-2.9.0.0.zip /tmp | ||
RUN /usr/share/opensearch/bin/opensearch-plugin install --batch file:///tmp/SynonymsPlugin-2.9.0.0.zip | ||
ARG OPENSEARCH_VERSION | ||
FROM opensearchproject/opensearch:${OPENSEARCH_VERSION} | ||
ARG PLUGIN_VERSION | ||
COPY target/releases/SynonymsPlugin-${PLUGIN_VERSION}.zip /tmp | ||
RUN /usr/share/opensearch/bin/opensearch-plugin install --batch file:///tmp/SynonymsPlugin-${PLUGIN_VERSION}.zip |