🌟 Data migration tool from nextcloud (#299)
- created server configuration - implemented downloading files from nextcloud to a local directory - build of the docker image added to the GutHub workflow - Twake client added - Creating user in Twake Drive from ldap - Ldap client with ldapsearch(TODO make it work with ldapjs) - Jest debug tests
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
# Use an official Node.js runtime as the base image
|
||||
FROM node:bullseye
|
||||
|
||||
RUN echo "deb http://ppa.launchpad.net/nextcloud-devs/client/ubuntu zesty main" >> /etc/apt/sources.list.d/nextcloud-client.list
|
||||
RUN echo "deb-src http://ppa.launchpad.net/nextcloud-devs/client/ubuntu zesty main" >> /etc/apt/sources.list.d/nextcloud-client.list
|
||||
|
||||
RUN apt install dirmngr
|
||||
RUN apt-key adv --recv-key --keyserver keyserver.ubuntu.com AD3DD469
|
||||
|
||||
RUN apt update
|
||||
|
||||
RUN apt install --assume-yes nextcloud-desktop-cmd
|
||||
|
||||
RUN apt install ldap-utils
|
||||
|
||||
# Set the working directory inside the container
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Copy app
|
||||
COPY backend/utils/nextcloud-migration/src/** ./src/
|
||||
COPY backend/utils/nextcloud-migration/.nvmrc ./
|
||||
COPY backend/utils/nextcloud-migration/*.json ./
|
||||
|
||||
RUN npm i && npm run build
|
||||
|
||||
# Run the Node.js application
|
||||
CMD ["npm", "run", "start"]
|
||||
Reference in New Issue
Block a user