Version 4.2a1 released

Questions, comments, discussions. Over time certain topics might be moved to their own category.
Post Reply
User avatar
michael
Developer
Developer
Posts: 254
Joined: Sun Apr 19, 2020 6:21 am

Version 4.2a1 released

Post by michael »

Python package and Docker image for version 4.2a1 have been released.

Docker image: registry.gitlab.com/mayan-edms/mayan-edms:4.2a1
Python package: https://pypi.org/project/mayan-edms/4.2a1/

This marks the hard code freeze for major features and soft code freeze for minor features and improvements.

Highlights:
- Codebase moved to Django 3.2. Django 2.2 is approaching end-of-life status.
- Consolidated image serving. All image serving is now done by the converter instead of being handled by each app individually. All improvements in image serving now benefit all apps (like streaming responses which are offloaded to the application server, for all images in all apps).
- The batch API now supports binary responses. These are returned encoded in base64.
- Support for dynamic field API serialization. This feature adds the URL query keys _fields_only and _fields_exclude. Nested serializers are supported using the double underscore (__) separator. Removing unused from the API response results in much faster serialization and responses, plus lower memory usage, specially in batch API requests.
- PostgreSQL support updated from 10.18 to 12.9.
- Python used for internals and build system updated from 3.8-slim to 3.11-slim.
- Updated base image for the Docker version from Debian 10.10-slim to 11.1-slim.
- RabbitMQ is now the default broker. Switch to Redis to lower memory usage.
- Improved Traefik configuration including separating it into its own network.
- Feature complete Whoosh search backend. The Whoosh search backend is now the default search backend.
- Support for Elastic Search as a search backend.
- CLI command for managing search indexes in Whoosh and Elastic Search.
- Support for inclusion and exclusion regular expressions for watch folders.
- New MIME type detection backend system. This allows MIME type detection to be changed. New MIME type backends added: mimetype (PERL), and file using the file command binary.
- Unify the files .env and env_file. Used by Docker Compose, these are now merge into a single .env file.
- Added support for passing arguments to metadata parsers and validators.
- New regular expression metadata parser and validator.
- Extensible multi form and multi factor authentication.
- Time based One Time Password (TOTP) authentication backend added.

Look forward to your feedback and reports. Thanks much!
dbayer
Posts: 13
Joined: Wed Nov 24, 2021 8:44 pm

Re: Version 4.2a1 released

Post by dbayer »

This looks very exciting.

One quick question. Is it possible to disable Traefik?

I already use nginx for reverse proxy, and I usually just add it's network to my containers, to tie it all together.

I manage nginx with Nginx Proxy Manager (NPM).

Thanks,
Daniel
7cinquante
Posts: 5
Joined: Sat Jan 08, 2022 3:30 pm

Re: Version 4.2a1 released

Post by 7cinquante »

Hello Daniel
I'm new to Mayan EDMS
Do you use the docker version in production ?
Thanks
User avatar
michael
Developer
Developer
Posts: 254
Joined: Sun Apr 19, 2020 6:21 am

Re: Version 4.2a1 released

Post by michael »

dbayer wrote: Sun Jan 09, 2022 8:27 pm This looks very exciting.

One quick question. Is it possible to disable Traefik?

I already use nginx for reverse proxy, and I usually just add it's network to my containers, to tie it all together.

I manage nginx with Nginx Proxy Manager (NPM).

Thanks,
Daniel
Thanks!
The Docker Compose file uses profiles to change how it works and what is deployed. => https://docs.docker.com/compose/profiles/
The Traefik profile is not enabled by default. It is meant to make hosting and managing SSL easier. If you are already a reverse proxy then the Traefik profile is not required and you can deploy this new version the same as previous ones.

Cheers!
dbayer
Posts: 13
Joined: Wed Nov 24, 2021 8:44 pm

Re: Version 4.2a1 released

Post by dbayer »

Hi Michael,

Thank you for the answer. I will read up on profiles.

Your link in the original post doesn't seem to work. I think I found the compose file. Is this the correct version?

https://gitlab.com/mayan-edms/mayan-edm ... ompose.yml

Thanks,
Daniel
dbayer
Posts: 13
Joined: Wed Nov 24, 2021 8:44 pm

Re: Version 4.2a1 released

Post by dbayer »

7cinquante wrote: Mon Jan 10, 2022 9:56 am Hello Daniel
I'm new to Mayan EDMS
Do you use the docker version in production ?
Thanks
Hello,

I use Docker for quite a few server projects, but I haven't used it for Mayan yet. I'm in the process of learning how.
dbayer
Posts: 13
Joined: Wed Nov 24, 2021 8:44 pm

Re: Version 4.2a1 released

Post by dbayer »

This doesn't seem to be available as a docker image.

When I run docker-compose pull, the following errors occur

ERROR: for app manifest for mayanedms/mayanedms:s4.2 not found: manifest unknown: manifest unknown
ERROR: manifest for mayanedms/mayanedms:s4.2 not found: manifest unknown: manifest unknown
dbayer
Posts: 13
Joined: Wed Nov 24, 2021 8:44 pm

Re: Version 4.2a1 released

Post by dbayer »

The problem was my fault. I didn't understand about the gitlab repository for pulling the docker container from.

For anyone else, here's a description on gitlab's docs.

https://docs.gitlab.com/ee/user/package ... _registry/

and here's a link to that part of the project

https://gitlab.com/mayan-edms/mayan-edm ... r_registry

You also need to modify the compose file to use the repository. For example to use this version you would modify as below

x-mayan-container:
&mayan-container
...
image: registry.gitlab.com/mayan-edms/mayan-edms:4.2a1
Post Reply