Skip to content

Commit

Permalink
Re-order dockerfiles for ci and tweak rockylinux8 dockerfile for sign…
Browse files Browse the repository at this point in the history
…ing (#2195)

* Re-order dockerfiles for ci and add new dockerfile for signing

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Remove mvn related args in dockerfile

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Add aws version check after installing

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Support longer dockerfiles

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Support longer dockerfiles

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Add jq

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* More improvements

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Add more changes

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon authored Jun 15, 2022
1 parent b19382e commit ee2d968
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/ci/build-image-multi-arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,5 @@ docker buildx ls | grep $BUILDER_NAME
docker ps | grep $BUILDER_NAME

# Build multi-arch images
docker buildx build --platform linux/amd64,linux/arm64 -t opensearchstaging/ci-runner:${TAG_NAME} -f $DOCKERFILE --push .
docker buildx build --platform linux/amd64,linux/arm64 -t "opensearchstaging/ci-runner:${TAG_NAME}" -f "${DOCKERFILE}" --push .

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN echo "export LC_ALL=en_US.utf-8" >> /etc/profile.d/python3_ascii.sh && \
# Add normal dependencies
RUN dnf clean all && \
dnf update -y && \
dnf install -y which curl git gnupg2 tar net-tools procps-ng python3 python3-devel python3-pip zip unzip
dnf install -y which curl git gnupg2 tar net-tools procps-ng python3 python3-devel python3-pip zip unzip jq

# Create user group
RUN groupadd -g 1000 opensearch && \
Expand Down Expand Up @@ -69,7 +69,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 && dnf install -y rpm-build createrepo && dnf clean all
RUN . /etc/profile.d/rvm.sh && rvm install 2.4.0 && rvm --default use 2.4.0 && dnf install -y rpm-build rpm-sign createrepo pinentry && dnf clean all

ENV RUBY_HOME=/usr/local/rvm/rubies/ruby-2.4.0/bin
ENV RVM_HOME=/usr/local/rvm/bin
Expand Down

0 comments on commit ee2d968

Please sign in to comment.