This commit modifies the beta CI workflow to include support for multiple platforms, such as linux/386, linux/arm/v5, linux/arm/v7, and more. Additionally, it updates the docker-create script to build the image for these platforms and adds support for caching the build.
- Refactored the translation in the header section of the home page to use a localization function
- Updated the Docker image name to "wizarrrr/wizarr" and the tag to "v3-beta"
- Removed unnecessary platforms from the Docker build command
This commit updates the Docker build platforms and manifest creation process in order to support additional ARM64 platforms (linux/arm64/v7, linux/arm64/v8) alongside the existing platforms (linux/amd64, linux/arm64). The changes ensure that the Docker images are built for all necessary platforms and the multi-arch manifest is created and pushed correctly.
Closes#123
This commit refactors the Docker build process to improve efficiency and simplify the workflow.
- Renamed the GitHub Actions workflow from "Build and Push Docker Image" to "Build and push Docker images" for clarity.
- Removed the unused ".github/workflows/test.yml" file.
- Updated the Dockerfile:
- Split the build process into separate stages for backend and frontend.
- Installed necessary build dependencies and upgraded pip.
- Copied only the necessary files for each stage to minimize build time.
- Set the proper timezone and environment variables.
- Exposed the appropriate ports.
- Updated the "scripts/docker-create.sh" script:
- Removed unsupported platforms from the build command to improve compatibility.
- Removed unnecessary buildx cleanup commands.
These changes ensure a more streamlined and efficient Docker build process.
- Update the `.pylintrc` file to include the `multiple-statements` rule.
- In the `api/routes/__init__.py` file, add the `utilities_api` namespace.
- In the `api/routes/logging_api.py` file, update the `log_file` path.
- In the `api/routes/plex_api.py` file, remove the `send_message` and `test_connection` functions, and update the code to send a message and start a background task.
- Add the `utilities_api` file to the routes folder.
- Update the `app/models/wizarr/invitations.py` file to handle zero duration values.
- Update the `app/static/package-lock.json` file to include new dependencies.
- Update the `app/static/package.json` file to include new dependencies.
- Update the `app/static/postcss.config.cjs` file to fix the autoprefixer issue.
- Update the `app/static/src/ts/api/index.ts` file to include the new utilities file.
- Update the `app/static/src/ts/api/settings.ts` file to fix a syntax error.