diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 519e072768..b30b3c6590 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -11,7 +11,7 @@ on: jobs: analyze: name: Analyze - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 permissions: actions: read contents: read diff --git a/.github/workflows/workflow-deployments.yml b/.github/workflows/workflow-deployments.yml index d29b8b2279..8b62072525 100644 --- a/.github/workflows/workflow-deployments.yml +++ b/.github/workflows/workflow-deployments.yml @@ -61,11 +61,14 @@ jobs: doc-deploy: name: Documentation - Deploy if: ${{ (github.event_name != 'workflow_dispatch' || inputs.doc_deploy) && (github.ref_name == 'master' || github.ref_name == 'beta') }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout project uses: actions/checkout@v4 + - name: Install additional libraries + uses: ./.github/actions/install-packages + - name: Extract references from context shell: bash id: extract-refs @@ -86,7 +89,7 @@ jobs: npm-deploy: name: Build and deploy release on NPM.js if: ${{ (github.event_name != 'workflow_dispatch' || inputs.npm_deploy) && (github.ref_name == 'master' || github.ref_name == 'beta') }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 permissions: contents: write issues: write @@ -95,6 +98,9 @@ jobs: - name: Checkout project uses: actions/checkout@v4 + - name: Install additional libraries + uses: ./.github/actions/install-packages + - name: Node version ${{ inputs.node_lts_current_version }} uses: actions/setup-node@v4 with: @@ -119,13 +125,16 @@ jobs: publish-runner: name: Kuzzle runner Docker image needs: [npm-deploy] - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: matrix: node-version: [16, 18, 20] steps: - uses: actions/checkout@v4 + - name: Install additional libraries + uses: ./.github/actions/install-packages + - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -151,11 +160,14 @@ jobs: publish-plugin-dev: name: Kuzzle plugin-dev Docker image needs: [npm-deploy] - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout project uses: actions/checkout@v4 + - name: Install additional libraries + uses: ./.github/actions/install-packages + - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -188,11 +200,14 @@ jobs: publish-kuzzle-core: name: Kuzzle core Docker image needs: [npm-deploy] - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout project uses: actions/checkout@v4 + - name: Install additional libraries + uses: ./.github/actions/install-packages + - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -225,10 +240,13 @@ jobs: publish-core-dev: name: Kuzzle core-dev Docker image needs: [npm-deploy] - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 + - name: Install additional libraries + uses: ./.github/actions/install-packages + - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -255,10 +273,13 @@ jobs: publish-elasticsearch: name: Elasticsearch Docker image needs: [npm-deploy] - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 + - name: Install additional libraries + uses: ./.github/actions/install-packages + - name: Set up QEMU uses: docker/setup-qemu-action@v3 diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index d84db0e4f0..731d5bda0d 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -17,7 +17,7 @@ env: jobs: prepare-matrix: name: Forge Node LTS Matrix - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - id: set-matrix run: | @@ -35,11 +35,14 @@ jobs: error-codes-check: name: Documentation - Error codes check needs: [prepare-matrix] - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout project uses: actions/checkout@v4 + - name: Install additional libraries + uses: ./.github/actions/install-packages + - name: Node version ${{ env.NODE_LTS_ACTIVE_VERSION }} uses: actions/setup-node@v4 with: @@ -54,7 +57,7 @@ jobs: lint: name: Lint - Node.js - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 needs: [prepare-matrix] strategy: matrix: @@ -63,6 +66,9 @@ jobs: - name: Checkout project uses: actions/checkout@v4 + - name: Install additional libraries + uses: ./.github/actions/install-packages + - name: Node version ${{ matrix.node-version }} uses: actions/setup-node@v4 with: @@ -83,11 +89,14 @@ jobs: strategy: matrix: node-version: ${{ fromJson(needs.prepare-matrix.outputs.matrix).node-version }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout project uses: actions/checkout@v4 + - name: Install additional libraries + uses: ./.github/actions/install-packages + - name: Node version ${{ matrix.node-version }} uses: actions/setup-node@v4 with: @@ -102,7 +111,7 @@ jobs: build-and-run-kuzzle: needs: [lint, prepare-matrix] name: Build and Run - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: matrix: kuzzle-image: ["kuzzle"] @@ -111,6 +120,9 @@ jobs: - name: Checkout project uses: actions/checkout@v4 + - name: Install additional libraries + uses: ./.github/actions/install-packages + - name: Test to run Kuzzle image uses: ./.github/actions/build-and-run-kuzzle with: @@ -125,11 +137,14 @@ jobs: test-set: ${{ fromJson(needs.prepare-matrix.outputs.test-set).test-set }} node-version: ${{ fromJson(needs.prepare-matrix.outputs.matrix).node-version }} es-version: ${{ fromJson(needs.prepare-matrix.outputs.es-matrix).es-version }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout project uses: actions/checkout@v4 + - name: Install additional libraries + uses: ./.github/actions/install-packages + - name: Node version ${{ matrix.node-version }} uses: actions/setup-node@v4 with: @@ -146,7 +161,7 @@ jobs: cluster-monkey-tests: name: Cluster Monkey Tests needs: [functional-tests, build-and-run-kuzzle, prepare-matrix] - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: matrix: node-version: ${{ fromJson(needs.prepare-matrix.outputs.matrix).node-version }} @@ -155,6 +170,9 @@ jobs: - name: Checkout project uses: actions/checkout@v4 + - name: Install additional libraries + uses: ./.github/actions/install-packages + - name: Cloning Monkey Tester uses: actions/checkout@v4 with: diff --git a/docker/images/core-dev/Dockerfile b/docker/images/core-dev/Dockerfile index 5b43bd85de..e9fa1cd1ae 100644 --- a/docker/images/core-dev/Dockerfile +++ b/docker/images/core-dev/Dockerfile @@ -22,11 +22,11 @@ RUN set -x \ git \ gnupg \ libfontconfig \ + libunwind-dev \ libzmq3-dev \ - python3 \ procps \ + python3 \ wget \ - libunwind-dev \ && npm install -g kourou \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* diff --git a/docker/images/kuzzle-runner/Dockerfile b/docker/images/kuzzle-runner/Dockerfile index db966b6022..67ea3dddd8 100644 --- a/docker/images/kuzzle-runner/Dockerfile +++ b/docker/images/kuzzle-runner/Dockerfile @@ -22,13 +22,11 @@ RUN set -x \ git \ gnupg \ libfontconfig \ + libunwind-dev \ libzmq3-dev \ - python3 \ procps \ + python3 \ wget \ - libunwind-dev \ && npm install -g kourou \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* - -RUN npm i -g kourou