Skip to content

Commit

Permalink
install createrepo in docker image for RPM yum repo support (#1955)
Browse files Browse the repository at this point in the history
* install createrepo in docker image for RPM yum repo support

Signed-off-by: Tianle Huang <tianleh@amazon.com>

* fix

Signed-off-by: Tianle Huang <tianleh@amazon.com>

* update opensearch to use new image

Signed-off-by: Tianle Huang <tianleh@amazon.com>
  • Loading branch information
tianleh committed Apr 12, 2022
1 parent ab77965 commit 8522a31
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ SHELL ["/bin/bash", "-lc"]
CMD ["/bin/bash", "-l"]

# Install ruby / rpm / fpm related dependencies
RUN . /etc/profile.d/rvm.sh && rvm install 2.4.0 && rvm --default use 2.4.0 && yum install -y rpm-build && yum clean all
RUN . /etc/profile.d/rvm.sh && rvm install 2.4.0 && rvm --default use 2.4.0 && yum install -y rpm-build createrepo && yum clean all

ENV RUBY_HOME=/usr/local/rvm/rubies/ruby-2.4.0/bin
ENV RVM_HOME=/usr/local/rvm/bin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ CMD ["/bin/bash", "-l"]

# Install ruby / rpm / fpm related dependencies
RUN . /etc/profile.d/rvm.sh && rvm install 2.4.0 && rvm --default use 2.4.0 && \
yum install -y rpm-build && \
yum install -y rpm-build createrepo && yum clean all && \
gem install fpm -v 1.13.0

ENV RUBY_HOME=/usr/local/rvm/rubies/ruby-2.4.0/bin
Expand Down
2 changes: 1 addition & 1 deletion manifests/2.0.0/opensearch-2.0.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
schema-version: '1.0'
ci:
image:
name: opensearchstaging/ci-runner:ci-runner-centos7-v1
name: opensearchstaging/ci-runner:ci-runner-centos7-opensearch-build-v1
args: -e JAVA_HOME=/opt/java/openjdk-17
build:
name: OpenSearch
Expand Down
2 changes: 1 addition & 1 deletion manifests/2.1.0/opensearch-2.1.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build:
version: 2.1.0
ci:
image:
name: opensearchstaging/ci-runner:centos7-x64-arm64-jdkmulti-node10.24.1-cypress6.9.1-20211028
name: opensearchstaging/ci-runner:ci-runner-centos7-opensearch-build-v1
components:
- name: OpenSearch
repository: https://github.com/opensearch-project/OpenSearch.git
Expand Down
2 changes: 1 addition & 1 deletion manifests/3.0.0/opensearch-3.0.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build:
version: 3.0.0
ci:
image:
name: opensearchstaging/ci-runner:ci-runner-centos7-v1
name: opensearchstaging/ci-runner:ci-runner-centos7-opensearch-build-v1
components:
- name: OpenSearch
repository: https://github.com/opensearch-project/OpenSearch.git
Expand Down

0 comments on commit 8522a31

Please sign in to comment.