Skip to content

Commit

Permalink
Remove rc1 from Dockerfile (opensearch-project#187)
Browse files Browse the repository at this point in the history
Signed-off-by: sruti1312 <srutiparthiban@gmail.com>
  • Loading branch information
sruti1312 authored May 23, 2022
1 parent 097fe83 commit bc570a3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ WORKDIR /usr/share/opensearch
ENV BUST_CACHE 1576286189

# Download and extract defined OpenSearch version.
RUN curl -fsSL https://artifacts.opensearch.org/snapshots/core/opensearch/2.0.0-rc1-SNAPSHOT/opensearch-min-2.0.0-rc1-SNAPSHOT-linux-x64-latest.tar.gz | \
RUN curl -fsSL https://artifacts.opensearch.org/snapshots/core/opensearch/2.0.0-SNAPSHOT/opensearch-min-2.0.0-SNAPSHOT-linux-x64-latest.tar.gz | \
tar zx --strip-components=1

RUN set -ex && for opensearchdirs in config data logs; do \
Expand All @@ -38,20 +38,20 @@ RUN set -ex && for opensearchdirs in config data logs; do \

COPY --chown=1000:0 opensearch.yml log4j2.properties config/

COPY --chown=1000:0 performance-analyzer-rca-2.0.0.0-rc1-SNAPSHOT.zip config/
COPY --chown=1000:0 performance-analyzer-rca-2.0.0.0-SNAPSHOT.zip config/

COPY --chown=1000:0 opensearch-performance-analyzer-2.0.0.0-rc1-SNAPSHOT.zip /tmp/
COPY --chown=1000:0 opensearch-performance-analyzer-2.0.0.0-SNAPSHOT.zip /tmp/

RUN opensearch-plugin install --batch file:///tmp/opensearch-performance-analyzer-2.0.0.0-rc1-SNAPSHOT.zip; \
rm /tmp/opensearch-performance-analyzer-2.0.0.0-rc1-SNAPSHOT.zip
RUN opensearch-plugin install --batch file:///tmp/opensearch-performance-analyzer-2.0.0.0-SNAPSHOT.zip; \
rm /tmp/opensearch-performance-analyzer-2.0.0.0-SNAPSHOT.zip

USER 0

# Set gid to 0 for opensearch and make group permission similar to that of user
RUN chown -R opensearch:0 . && \
chmod -R g=u /usr/share/opensearch

RUN unzip config/performance-analyzer-rca-2.0.0.0-rc1-SNAPSHOT.zip
RUN unzip config/performance-analyzer-rca-2.0.0.0-SNAPSHOT.zip

RUN chmod -R 755 /dev/shm
################################################################################
Expand Down Expand Up @@ -123,7 +123,7 @@ EXPOSE 9200 9300 9600 9650

LABEL org.label-schema.schema-version="1.0" \
org.label-schema.name="opensearch" \
org.label-schema.version="2.0.0-rc1" \
org.label-schema.version="2.0.0" \
org.label-schema.url="https://opensearch.org/" \
org.label-schema.vcs-url="https://github.com/opensearch-project/opensearch-build" \
org.label-schema.license="Apache-2.0" \
Expand Down

0 comments on commit bc570a3

Please sign in to comment.