This is an automated email from the ASF dual-hosted git repository.

ycai pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-sidecar.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 86a34533 CASSSIDECAR-188: Removing centOS in CI build (#174)
86a34533 is described below

commit 86a3453303e19f12c911bdc9ec1e03d21f001010
Author: Yifan Cai <[email protected]>
AuthorDate: Fri Jan 17 09:19:06 2025 -0800

    CASSSIDECAR-188: Removing centOS in CI build (#174)
    
    Patch by Yifan Cai; Reviewed by Francisco Guerrero for CASSSIDECAR-188
---
 .circleci/config.yml | 22 +++++-----------------
 1 file changed, 5 insertions(+), 17 deletions(-)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index d7ac88f6..6b4ee04f 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -22,16 +22,6 @@
 #
 version: 2.1
 
-# need to reuse the same base environment for several tests
-aliases:
-  centos: &centos
-    docker:
-      - image: centos:centos8
-    working_directory: ~/repo
-    environment:
-      TERM: dumb
-      TZ: "America/Los_Angeles"
-
 commands:
   install_common:
     steps:
@@ -407,15 +397,13 @@ jobs:
 
   # ensures we can build and install rpm packages
   rpm_build_install:
-    <<: *centos
+    docker:
+      - image: cimg/openjdk:11.0
     steps:
-      - run: sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
-      - run: sed -i 
's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' 
/etc/yum.repos.d/CentOS-*
-      - run: dnf -qy distro-sync
-      - run: dnf -qy install java-11-openjdk git
+      - run: sudo apt-get update && sudo apt install dnf
       - checkout
-      - run: JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.13.0.8-4.el8_5.x86_64 
${PWD}/gradlew -i buildRpm
-      - run: yum install -y ./build/distributions/cassandra-sidecar*.rpm
+      - run: ./gradlew -i buildRpm
+      - run: sudo dnf install -y ./build/distributions/cassandra-sidecar*.rpm
       - run: test -f /opt/cassandra-sidecar/bin/cassandra-sidecar
 
   docker_build:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to