🛠️ Cozy migration CLI tools and client (#876)

* feat: migration cli tools and client

* feat: creating folder tree / ref cli cmds / Dockerfile

* feat: refresh app auth token for requests

* feat: skip already migrated files

* ref: auth token refresh and download request

* ref: using cloudery to create user instace and generate token

* ref: using config for cloudery

* fix: docker for backend

* fix: docker for backend

* fix: docker for backend

* fix: docker for backend

* fix: lint/Dockerfile

* fix: docker for backend

* fix: docker for backend

* ref: delete client

* fix: user default company

* feat: stream file upload and progress

* feat: use default company

* ref: file upload

* ref: removed migration endpoints for external client
This commit is contained in:
Montassar Ghanmy
2025-05-16 13:41:33 +01:00
committed by GitHub
parent 70f3298f01
commit a272d66dcd
13 changed files with 5835 additions and 738 deletions
+4 -4
View File
@@ -16,7 +16,7 @@ COPY backend/node/package*.json ./
# Test Stage
FROM node-base AS test
RUN npm install
RUN npm install --legacy-peer-deps
COPY backend/node/ .
# Add frontend Stage
@@ -25,7 +25,7 @@ FROM node-base AS installed-libs
COPY backend/node/ .
#Install dev dependancies for build
ENV NODE_ENV=development
RUN npm ci
RUN npm ci --legacy-peer-deps
#Build in production mode
ENV NODE_ENV=production
@@ -40,11 +40,11 @@ FROM installed-libs AS development
ENV NODE_ENV=development
RUN npm install -g pino-pretty && \
npm install -g tsc-watch && \
npm ci
npm ci --legacy-peer-deps
CMD ["npm", "run", "dev:debug"]
# Production Stage
FROM installed-libs AS production
EXPOSE 4000
CMD ["npm", "run", "serve"]
CMD ["npm", "run", "serve"]