Skip to content

Commit

Permalink
update node version to 20 in all backend services
Browse files Browse the repository at this point in the history
  • Loading branch information
epipav committed Apr 30, 2024
1 parent 947cc97 commit b5f17cb
Show file tree
Hide file tree
Showing 19 changed files with 76 additions and 54 deletions.
6 changes: 3 additions & 3 deletions scripts/services/docker/Dockerfile.automations_worker
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:16-alpine as builder
FROM node:20-alpine as builder

WORKDIR /usr/crowd/app
RUN corepack enable && apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools
RUN corepack enable

COPY ./pnpm-workspace.yaml ./pnpm-lock.yaml ./
COPY ./services ./services
RUN pnpm i --frozen-lockfile

FROM node:16-bookworm-slim as runner
FROM node:20-bookworm-slim as runner

WORKDIR /usr/crowd/app
RUN corepack enable && apt update && apt install -y ca-certificates --no-install-recommends && rm -rf /var/lib/apt/lists/*
Expand Down
6 changes: 3 additions & 3 deletions scripts/services/docker/Dockerfile.backend
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM node:16-alpine as builder
FROM node:20-alpine as builder

WORKDIR /usr/crowd/app
RUN corepack enable && apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools
RUN corepack enable && apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python && python3 -m venv .venv && source .venv/bin/activate && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools

COPY ./pnpm-workspace.yaml ./pnpm-lock.yaml ./
COPY ./backend ./backend
COPY ./services/libs ./services/libs
RUN pnpm i --frozen-lockfile

FROM node:16-alpine as runner
FROM node:20-alpine as runner

WORKDIR /usr/crowd/app
RUN corepack enable
Expand Down
6 changes: 3 additions & 3 deletions scripts/services/docker/Dockerfile.cache_worker
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:16-alpine as builder
FROM node:20-alpine as builder

WORKDIR /usr/crowd/app
RUN corepack enable && apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools
RUN corepack enable

COPY ./pnpm-workspace.yaml ./pnpm-lock.yaml ./
COPY ./services ./services
RUN pnpm i --frozen-lockfile

FROM node:16-bookworm-slim as runner
FROM node:20-bookworm-slim as runner

WORKDIR /usr/crowd/app
RUN corepack enable && apt update && apt install -y ca-certificates --no-install-recommends && rm -rf /var/lib/apt/lists/*
Expand Down
6 changes: 3 additions & 3 deletions scripts/services/docker/Dockerfile.data_sink_worker
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:16-alpine as builder
FROM node:20-alpine as builder

WORKDIR /usr/crowd/app
RUN corepack enable && apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools
RUN corepack enable

COPY ./pnpm-workspace.yaml ./pnpm-lock.yaml ./
COPY ./services ./services
RUN pnpm i --frozen-lockfile

FROM node:16-alpine as runner
FROM node:20-alpine as runner

WORKDIR /usr/crowd/app
RUN corepack enable
Expand Down
6 changes: 3 additions & 3 deletions scripts/services/docker/Dockerfile.emails_worker
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:16-alpine as builder
FROM node:20-alpine as builder

WORKDIR /usr/crowd/app
RUN corepack enable && apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools
RUN corepack enable

COPY ./pnpm-workspace.yaml ./pnpm-lock.yaml ./
COPY ./services ./services
RUN pnpm i --frozen-lockfile

FROM node:16-bookworm-slim as runner
FROM node:20-bookworm-slim as runner

WORKDIR /usr/crowd/app
RUN corepack enable && apt update && apt install -y ca-certificates --no-install-recommends && rm -rf /var/lib/apt/lists/*
Expand Down
6 changes: 3 additions & 3 deletions scripts/services/docker/Dockerfile.entity_merging_worker
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:16-alpine as builder
FROM node:20-alpine as builder

WORKDIR /usr/crowd/app
RUN corepack enable && apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools
RUN corepack enable

COPY ./pnpm-workspace.yaml ./pnpm-lock.yaml ./
COPY ./services ./services
RUN pnpm i --frozen-lockfile

FROM node:16-bookworm-slim as runner
FROM node:20-bookworm-slim as runner

WORKDIR /usr/crowd/app
RUN corepack enable && apt update && apt install -y ca-certificates --no-install-recommends && rm -rf /var/lib/apt/lists/*
Expand Down
6 changes: 3 additions & 3 deletions scripts/services/docker/Dockerfile.exports_worker
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:16-alpine as builder
FROM node:20-alpine as builder

WORKDIR /usr/crowd/app
RUN corepack enable && apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools
RUN corepack enable

COPY ./pnpm-workspace.yaml ./pnpm-lock.yaml ./
COPY ./services ./services
RUN pnpm i --frozen-lockfile

FROM node:16-bookworm-slim as runner
FROM node:20-bookworm-slim as runner

WORKDIR /usr/crowd/app
RUN corepack enable && apt update && apt install -y ca-certificates --no-install-recommends && rm -rf /var/lib/apt/lists/*
Expand Down
6 changes: 3 additions & 3 deletions scripts/services/docker/Dockerfile.integration_run_worker
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:16-alpine as builder
FROM node:20-alpine as builder

WORKDIR /usr/crowd/app
RUN corepack enable && apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools
RUN corepack enable

COPY ./pnpm-workspace.yaml ./pnpm-lock.yaml ./
COPY ./services ./services
RUN pnpm i --frozen-lockfile

FROM node:16-alpine as runner
FROM node:20-alpine as runner

WORKDIR /usr/crowd/app
RUN corepack enable
Expand Down
6 changes: 3 additions & 3 deletions scripts/services/docker/Dockerfile.integration_stream_worker
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:16-alpine as builder
FROM node:20-alpine as builder

WORKDIR /usr/crowd/app
RUN corepack enable && apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools
RUN corepack enable

COPY ./pnpm-workspace.yaml ./pnpm-lock.yaml ./
COPY ./services ./services
RUN pnpm i --frozen-lockfile

FROM node:16-alpine as runner
FROM node:20-alpine as runner

WORKDIR /usr/crowd/app
RUN corepack enable
Expand Down
6 changes: 3 additions & 3 deletions scripts/services/docker/Dockerfile.integration_sync_worker
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:16-alpine as builder
FROM node:20-alpine as builder

WORKDIR /usr/crowd/app
RUN corepack enable && apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools
RUN corepack enable

COPY ./pnpm-workspace.yaml ./pnpm-lock.yaml ./
COPY ./services ./services
RUN pnpm i --frozen-lockfile

FROM node:16-alpine as runner
FROM node:20-alpine as runner

WORKDIR /usr/crowd/app
RUN corepack enable
Expand Down
8 changes: 4 additions & 4 deletions scripts/services/docker/Dockerfile.members_enrichment_worker
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
FROM node:16-alpine as builder
FROM node:20-alpine as builder

WORKDIR /usr/crowd/app
RUN corepack enable && apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools
RUN corepack enable

COPY ./pnpm-workspace.yaml ./pnpm-lock.yaml ./
COPY ./services ./services
RUN pnpm i --frozen-lockfile

FROM node:16-bookworm-slim as runner
FROM node:20-bookworm-slim as runner

WORKDIR /usr/crowd/app
RUN corepack enable && apt update && apt install -y ca-certificates --no-install-recommends && rm -rf /var/lib/apt/lists/*

COPY --from=builder /usr/crowd/app/node_modules ./node_modules
COPY --from=builder /usr/crowd/app/node_modules ./node_modules
COPY --from=builder /usr/crowd/app/services/libs ./services/libs
COPY --from=builder /usr/crowd/app/services/archetypes/ ./services/archetypes
COPY --from=builder /usr/crowd/app/services/apps/premium/members_enrichment_worker/ ./services/apps/premium/members_enrichment_worker
6 changes: 3 additions & 3 deletions scripts/services/docker/Dockerfile.merge_suggestions_worker
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:16-alpine as builder
FROM node:20-alpine as builder

WORKDIR /usr/crowd/app
RUN corepack enable && apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools
RUN corepack enable

COPY ./pnpm-workspace.yaml ./pnpm-lock.yaml ./
COPY ./services ./services
RUN pnpm i --frozen-lockfile

FROM node:16-bookworm-slim as runner
FROM node:20-bookworm-slim as runner

WORKDIR /usr/crowd/app
RUN corepack enable && apt update && apt install -y ca-certificates --no-install-recommends && rm -rf /var/lib/apt/lists/*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:16-alpine as builder
FROM node:20-alpine as builder

WORKDIR /usr/crowd/app
RUN corepack enable && apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools
RUN corepack enable

COPY ./pnpm-workspace.yaml ./pnpm-lock.yaml ./
COPY ./services ./services
RUN pnpm i --frozen-lockfile

FROM node:16-bookworm-slim as runner
FROM node:20-bookworm-slim as runner

WORKDIR /usr/crowd/app
RUN corepack enable && apt update && apt install -y ca-certificates --no-install-recommends && rm -rf /var/lib/apt/lists/*
Expand Down
6 changes: 3 additions & 3 deletions scripts/services/docker/Dockerfile.profiles_worker
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:16-alpine as builder
FROM node:20-alpine as builder

WORKDIR /usr/crowd/app
RUN corepack enable && apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools
RUN corepack enable

COPY ./pnpm-workspace.yaml ./pnpm-lock.yaml ./
COPY ./services ./services
RUN pnpm i --frozen-lockfile

FROM node:16-bookworm-slim as runner
FROM node:20-bookworm-slim as runner

WORKDIR /usr/crowd/app
RUN corepack enable && apt update && apt install -y ca-certificates --no-install-recommends && rm -rf /var/lib/apt/lists/*
Expand Down
22 changes: 22 additions & 0 deletions scripts/services/docker/Dockerfile.profiles_worker.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
**/.git
**/node_modules
**/venv*
**/.webpack
**/.serverless
**/.cubestore
**/.env
**/.env.*
**/.idea
**/.vscode
**/dist
backend/server-config/
backend/util/
backend/src/serverless/microservices/python
.vscode/
.github/
frontend/
scripts/
.flake8
*.md
Makefile
backend/
4 changes: 2 additions & 2 deletions scripts/services/docker/Dockerfile.script_executor
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:16-alpine
FROM node:20-alpine

RUN apk add --update --no-cache bash python3 build-base micro git ncurses && ln -sf python3 /usr/bin/python && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools && corepack enable
RUN corepack enable

WORKDIR /usr/crowd/app

Expand Down
6 changes: 3 additions & 3 deletions scripts/services/docker/Dockerfile.search_sync_api
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:16-alpine as builder
FROM node:20-alpine as builder

WORKDIR /usr/crowd/app
RUN corepack enable && apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools
RUN corepack enable

COPY ./pnpm-workspace.yaml ./pnpm-lock.yaml ./
COPY ./services ./services
RUN pnpm i --frozen-lockfile

FROM node:16-alpine as runner
FROM node:20-alpine as runner

WORKDIR /usr/crowd/app
RUN corepack enable
Expand Down
6 changes: 3 additions & 3 deletions scripts/services/docker/Dockerfile.search_sync_worker
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:16-alpine as builder
FROM node:20-alpine as builder

WORKDIR /usr/crowd/app
RUN corepack enable && apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools
RUN corepack enable

COPY ./pnpm-workspace.yaml ./pnpm-lock.yaml ./
COPY ./services ./services
RUN pnpm i --frozen-lockfile

FROM node:16-alpine as runner
FROM node:20-alpine as runner

WORKDIR /usr/crowd/app
RUN corepack enable
Expand Down
6 changes: 3 additions & 3 deletions scripts/services/docker/Dockerfile.webhook_api
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:16-alpine as builder
FROM node:20-alpine as builder

WORKDIR /usr/crowd/app
RUN corepack enable && apk add --update --no-cache python3 build-base && ln -sf python3 /usr/bin/python && python3 -m ensurepip && pip3 install --no-cache --upgrade pip setuptools
RUN corepack enable

COPY ./pnpm-workspace.yaml ./pnpm-lock.yaml ./
COPY ./services ./services
RUN pnpm i --frozen-lockfile

FROM node:16-alpine as runner
FROM node:20-alpine as runner

WORKDIR /usr/crowd/app
RUN corepack enable
Expand Down

0 comments on commit b5f17cb

Please sign in to comment.