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

tiagobento pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git


The following commit(s) were added to refs/heads/10.0.x by this push:
     new 9109f8cf4ae [10.0.x] NO-ISSUE: Disable container images build on macOS 
GH runner (temporary fix) (#2586)
9109f8cf4ae is described below

commit 9109f8cf4aeddbc496e0b85054ef7caa006ec11f
Author: Thiago Lugli <[email protected]>
AuthorDate: Fri Sep 13 15:29:38 2024 -0300

    [10.0.x] NO-ISSUE: Disable container images build on macOS GH runner 
(temporary fix) (#2586)
---
 .github/actions/setup-env/action.yml           | 85 ++++++++++++++------------
 .github/workflows/ci_build.yml                 |  6 +-
 packages/kie-sandbox-distribution/package.json |  4 +-
 3 files changed, 51 insertions(+), 44 deletions(-)

diff --git a/.github/actions/setup-env/action.yml 
b/.github/actions/setup-env/action.yml
index a0f61c0fdab..5aa4e6f2031 100644
--- a/.github/actions/setup-env/action.yml
+++ b/.github/actions/setup-env/action.yml
@@ -91,45 +91,52 @@ runs:
       with:
         python-version: 3.12
 
-    - name: Setup docker (macOS only)
-      if: runner.os == 'macOS'
-      shell: bash
-      env:
-        HOMEBREW_NO_INSTALL_FROM_API:
-      run: |
-        echo "STEP: Setup docker (macOS only)"
-
-        LIMA_VERSION=v0.23.2
-        curl -fsSL 
"https://github.com/lima-vm/lima/releases/download/${LIMA_VERSION}/lima-${LIMA_VERSION:1}-$(uname
 -s)-$(uname -m).tar.gz" | tar Cxzvm /usr/local
-        COLIMA_VERSION=v0.7.5
-        curl -LO 
https://github.com/abiosoft/colima/releases/download/${COLIMA_VERSION}/colima-$(uname)-$(uname
 -m)
-        install colima-$(uname)-$(uname -m) /usr/local/bin/colima
-
-        brew install docker docker-compose docker-Buildx qemu 2>&1 | tee 
install.log
-        mkdir -p ~/.docker/cli-plugins
-        ln -sfn "$(brew --prefix)/opt/docker-compose/bin/docker-compose" 
~/.docker/cli-plugins/docker-compose
-        ln -sfn $(brew --prefix)/opt/docker-buildx/bin/docker-buildx 
~/.docker/cli-plugins/docker-buildx
-        if grep -q "qemu 8.1.0 is already installed" install.log
-        then
-            echo "Detected broken QEMU bottle installed by brew, removing and 
reinstalling."
-            brew reinstall qemu
-        fi
-        colima start --memory 4 --network-address --verbose
-
-        EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
-        echo "version<<$EOF" >> "$GITHUB_OUTPUT"
-        docker version >> "$GITHUB_OUTPUT"
-        echo "$EOF" >> "$GITHUB_OUTPUT"
-
-        EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
-        echo "version<<$EOF" >> "$GITHUB_OUTPUT"
-        docker compose version >> "$GITHUB_OUTPUT"
-        echo "$EOF" >> "$GITHUB_OUTPUT"
-
-        EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
-        echo "version<<$EOF" >> "$GITHUB_OUTPUT"
-        colima version >> "$GITHUB_OUTPUT"
-        echo "$EOF" >> "$GITHUB_OUTPUT"
+    # TODO: Fix Colima/QEMU installation to build container images again
+    #
+    # - name: Setup docker (macOS only)
+    #   if: runner.os == 'macOS'
+    #   shell: bash
+    #   env:
+    #     HOMEBREW_NO_INSTALL_FROM_API:
+    #   run: |
+    #     echo "STEP: Setup docker (macOS only)"
+
+    #     LIMA_VERSION=v0.23.2
+    #     curl -fsSL 
"https://github.com/lima-vm/lima/releases/download/${LIMA_VERSION}/lima-${LIMA_VERSION:1}-$(uname
 -s)-$(uname -m).tar.gz" | tar Cxzvm /usr/local
+    #     COLIMA_VERSION=v0.7.5
+    #     curl -LO 
https://github.com/abiosoft/colima/releases/download/${COLIMA_VERSION}/colima-$(uname)-$(uname
 -m)
+    #     install colima-$(uname)-$(uname -m) /usr/local/bin/colima
+
+    #     brew update --preinstall
+    #     brew install docker docker-compose docker-Buildx qemu 2>&1 | tee 
install.log
+    #     mkdir -p ~/.docker/cli-plugins
+    #     ln -sfn "$(brew --prefix)/opt/docker-compose/bin/docker-compose" 
~/.docker/cli-plugins/docker-compose
+    #     ln -sfn $(brew --prefix)/opt/docker-buildx/bin/docker-buildx 
~/.docker/cli-plugins/docker-buildx
+    #     if grep -q "qemu 8.1.0 is already installed" install.log
+    #     then
+    #         echo "Detected broken QEMU bottle installed by brew, removing 
and reinstalling."
+    #         brew reinstall qemu
+    #     fi
+
+    #     CPU_COUNT=$(sysctl -n hw.ncpu)
+    #     MEMORY=$(sysctl hw.memsize | awk '{print $2/1024/1024/1024}')
+    #     COLIMA_ARGS="--cpu $CPU_COUNT --memory $MEMORY"
+    #     colima start $COLIMA_ARGS --network-address --verbose
+
+    #     EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
+    #     echo "version<<$EOF" >> "$GITHUB_OUTPUT"
+    #     docker version >> "$GITHUB_OUTPUT"
+    #     echo "$EOF" >> "$GITHUB_OUTPUT"
+
+    #     EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
+    #     echo "version<<$EOF" >> "$GITHUB_OUTPUT"
+    #     docker compose version >> "$GITHUB_OUTPUT"
+    #     echo "$EOF" >> "$GITHUB_OUTPUT"
+
+    #     EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
+    #     echo "version<<$EOF" >> "$GITHUB_OUTPUT"
+    #     colima version >> "$GITHUB_OUTPUT"
+    #     echo "$EOF" >> "$GITHUB_OUTPUT"
 
     - name: "Setup Helm (Ubuntu)"
       if: runner.os == 'Linux'
diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml
index a4809c010ca..ed4d2d7237d 100644
--- a/.github/workflows/ci_build.yml
+++ b/.github/workflows/ci_build.yml
@@ -117,7 +117,7 @@ jobs:
           KIE_TOOLS_BUILD__runLinters: "true"
           KIE_TOOLS_BUILD__runTests: "true"
           KIE_TOOLS_BUILD__runEndToEndTests: ${{ runner.os == 'Linux' }}
-          KIE_TOOLS_BUILD__buildContainerImages: ${{ runner.os != 'Windows' }}
+          KIE_TOOLS_BUILD__buildContainerImages: ${{ runner.os == 'Linux' }}
           KIE_TOOLS_BUILD__buildExamples: "true"
           KIE_TOOLS_BUILD__ignoreTestFailures: ${{ !github.event.pull_request 
}}
           KIE_TOOLS_BUILD__ignoreEndToEndTestFailures: ${{ 
!github.event.pull_request }}
@@ -131,7 +131,7 @@ jobs:
         if: steps.setup_build_mode.outputs.mode == 'partial'
         shell: bash
         env:
-          KIE_TOOLS_BUILD__buildContainerImages: ${{ runner.os != 'Windows' }}
+          KIE_TOOLS_BUILD__buildContainerImages: ${{ runner.os == 'Linux' }}
           KIE_TOOLS_BUILD__buildExamples: "true"
         run: |
           eval "pnpm ${{ 
steps.setup_build_mode.outputs.upstreamPnpmFilterString }} build:dev"
@@ -144,7 +144,7 @@ jobs:
           KIE_TOOLS_BUILD__runLinters: "true"
           KIE_TOOLS_BUILD__runTests: "true"
           KIE_TOOLS_BUILD__runEndToEndTests: ${{ runner.os == 'Linux' }}
-          KIE_TOOLS_BUILD__buildContainerImages: ${{ runner.os != 'Windows' }}
+          KIE_TOOLS_BUILD__buildContainerImages: ${{ runner.os == 'Linux' }}
           KIE_TOOLS_BUILD__buildExamples: "true"
           DISPLAY: ":99.0"
           START_SERVER_AND_TEST_INSECURE: "true"
diff --git a/packages/kie-sandbox-distribution/package.json 
b/packages/kie-sandbox-distribution/package.json
index 4a5327954ae..7ff7719d4c9 100644
--- a/packages/kie-sandbox-distribution/package.json
+++ b/packages/kie-sandbox-distribution/package.json
@@ -13,8 +13,8 @@
     "url": "https://github.com/apache/incubator-kie-tools/issues";
   },
   "scripts": {
-    "build:dev": "pnpm docker:build",
-    "build:prod": "run-script-if --then \"pnpm docker:build\" \"pnpm test\"",
+    "build:dev": "run-script-if --bool \"$(build-env containerImages.build)\" 
--then \"pnpm docker:build\"",
+    "build:prod": "run-script-if --bool \"$(build-env containerImages.build)\" 
--then \"pnpm docker:build\" \"pnpm test\"",
     "docker:build": "docker compose build",
     "docker:create-env-file": "rimraf .env && pnpm build-env 
--print-dotenv:self > .env",
     "docker:down": "docker compose down",


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

Reply via email to