Skip to content

Commit

Permalink
Add maxsockets to 1 to avoid network issue while installing
Browse files Browse the repository at this point in the history
  • Loading branch information
rolljee committed Dec 6, 2023
1 parent 5387507 commit 81729eb
Show file tree
Hide file tree
Showing 10 changed files with 2,928 additions and 194 deletions.
File renamed without changes.
File renamed without changes.
5 changes: 4 additions & 1 deletion .github/workflows/kuzzle-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- master

env:
DOCKER_PLATFORMS: "linux/amd64,linux/arm64,linux/arm/v7"

jobs:
dockerhub-deploy:
name: Kuzzle core Node.js
Expand Down Expand Up @@ -38,5 +41,5 @@ jobs:
context: .
file: ./docker/images/kuzzle/Dockerfile
push: true
platforms: "linux/amd64,linux/arm64"
platforms: ${{ env.DOCKER_PLATFORMS }}
tags: kuzzleio/kuzzle:${{ steps.get-version.outputs.major-version }},kuzzleio/kuzzle:latest,kuzzleio/kuzzle:${{ steps.get-version.outputs.version }}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Workflow Deployments
name: publish the documentation and NPM package

on:
workflow_call:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Workflow
name: Run tests, then publish

on:
push:
Expand Down Expand Up @@ -205,7 +205,7 @@ jobs:
deploy-workflow:
name: Deployment Workflow
needs: [cluster-monkey-tests, prepare-matrix]
uses: ./.github/workflows/workflow-deployments.yaml
uses: ./.github/workflows/workflow-deployments.yml
secrets: inherit
with:
node_lts_maintenance_version: ${{ needs.prepare-matrix.outputs.node_lts_maintenance_version }}
Expand Down
8 changes: 1 addition & 7 deletions docker/images/kuzzle/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
################################################################################
# Production build image
################################################################################
ARG NODE_LTS_VERSION="18"
FROM node:${NODE_LTS_VERSION}-bullseye-slim AS builder

Expand All @@ -25,16 +23,14 @@ ADD ./package-lock.json package-lock.json
ADD ./index.ts index.ts
ADD ./tsconfig.json tsconfig.json

RUN npm ci
RUN --noproxy registry.npmjs.org --maxsockets 1
RUN npm run build
RUN npm prune --production

RUN rm -rf tsconfig.json index.ts

ADD ./plugins/available/ /app/plugins/available/

################################################################################
# Production build 2 image
################################################################################
FROM node:${NODE_LTS_VERSION}-bullseye-slim AS minifier

Expand All @@ -48,8 +44,6 @@ RUN set -x \
&& apt-get clean autoclean \
&& apt-get autoremove --yes

################################################################################
# Production image
################################################################################
FROM node:${NODE_LTS_VERSION}-bullseye-slim

Expand Down
7 changes: 2 additions & 5 deletions docker/images/plugin-dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
################################################################################
# Plugin development build image
################################################################################
ARG NODE_LTS_VERSION="18"
FROM node:${NODE_LTS_VERSION}-bullseye-slim AS builder

Expand All @@ -13,7 +11,7 @@ RUN set -x \
libzmq3-dev \
libunwind-dev

RUN npm install ergol kourou
RUN npm install -g ergol kourou

WORKDIR /app

Expand All @@ -23,6 +21,7 @@ ADD ./lib lib
ADD ./package.json package.json
ADD ./package-lock.json package-lock.json
ADD ./index.ts index.ts
ADD ./tsconfig.json tsconfig.json

RUN npm ci
RUN npm run build
Expand All @@ -32,8 +31,6 @@ RUN rm -rf tsconfig.json index.ts

ADD ./plugins/available/ plugins/available/

################################################################################
# Plugin development image
################################################################################
FROM node:${NODE_LTS_VERSION}-bullseye-slim

Expand Down
Loading

0 comments on commit 81729eb

Please sign in to comment.