Commit Graph

256 Commits

Author SHA1 Message Date
Georges-Antoine Assi
988fa510e5 readd link in dockerfile 2025-07-07 18:05:38 -04:00
Michael Manganiello
87d20b0bb8 fix: Correctly use Python 3.13 in Docker image
The `production-stage` stage was depending on the `python3` package from
Alpine, which at the moment of writing is still Python 3.12.

To avoid relying on Alpine's package and releases, we now copy the
Python installation directly from its official Docker image.

Other options were tested but did not work:
- Trying to install Python 3.13 using `apk`. As mentioned, Alpine does
  not support Python 3.13 yet.
- Installing Python 3.13 using `pyenv`. The installation worked, but the
  generated image was too large. Related `pyenv` discussion:
  https://github.com/orgs/pyenv/discussions/2868
- Installing Python 3.13 using `uv`. Only worked for `amd64`
  architecture, but the installation failed on `arm64`.
2025-07-07 00:17:25 -03:00
Georges-Antoine Assi
d1117a11f3 bump emujs to 4.2.3 2025-07-05 16:18:48 -04:00
Michael Manganiello
ea9def4b85 misc: Replace deprecated uvicorn.workers with uvicorn-worker
According to the `uvicorn` docs [1], the `uvicorn.workers.UvicornWorker`
class is deprecated and replaced by the `uvicorn-worker` package [2].

[1] https://www.uvicorn.org/deployment/#gunicorn
[2] https://github.com/Kludex/uvicorn-worker
2025-07-05 12:59:49 -03:00
Georges-Antoine Assi
8e1a93480e Apply suggestion from @adamantike
Co-authored-by: Michael Manganiello <adamantike@users.noreply.github.com>
2025-07-04 21:26:34 -04:00
Georges-Antoine Assi
4f6b6fe660 Apply suggestion from @adamantike
Co-authored-by: Michael Manganiello <adamantike@users.noreply.github.com>
2025-07-04 21:26:20 -04:00
Georges-Antoine Assi
edfa25ef21 Apply suggestion from @adamantike
Co-authored-by: Michael Manganiello <adamantike@users.noreply.github.com>
2025-07-04 21:26:12 -04:00
Georges-Antoine Assi
e1a5c14817 Apply suggestion from @adamantike
Co-authored-by: Michael Manganiello <adamantike@users.noreply.github.com>
2025-07-04 21:26:05 -04:00
Georges-Antoine Assi
e6fe94fc0b Apply suggestion from @adamantike
Co-authored-by: Michael Manganiello <adamantike@users.noreply.github.com>
2025-07-04 21:25:53 -04:00
Georges-Antoine Assi
543238fb40 install uv to correct dir 2025-07-04 10:03:44 -04:00
Georges-Antoine Assi
e8f8f1621c complete migration to uv 2025-07-04 09:54:04 -04:00
Michael Manganiello
de762aa9f8 Merge pull request #2048 from rommapp/misc/python-3.13
misc: Upgrade to Python 3.13
2025-07-04 08:15:56 -03:00
Georges-Antoine Assi
8908d21afa Merge pull request #2043 from starkmapper/fix-proxy-aware-feed
Fix for setting the correct forward proto when behind ssl proxy
2025-07-04 00:35:49 -04:00
Michael Manganiello
f96adeeaee misc: Upgrade to Python 3.13
Small changes to upgrade Python to version 3.13, and fixes based on a
`pyupgrade` run using the `--py313-plus` flag.
2025-07-03 23:37:00 -03:00
Georges-Antoine Assi
1050f47aac bump emulatorjs to 4.2.2 2025-07-02 16:40:01 -04:00
Mark Stapper
365c0efece Fix typo 2025-07-02 08:11:35 +02:00
Georges-Antoine Assi
67dc49c818 Add vscode devcontainer file and fix dockerfile 2025-07-01 15:02:32 -04:00
Mark Stapper
fa3a5c534f Fix Set correct forward proto even when behind reverse proxy 2025-07-01 10:34:19 +02:00
Michael Manganiello
dac5cf687e misc: Upgrade nginx to v1.29.0 2025-06-29 12:42:17 -03:00
Michael Manganiello
ab6ccc0999 misc: Upgrade RALibretro to v1.8.1
The previous attempt to upgrade RALibretro before a new tagged version
was available (#1970) needed to be reverted, as the RAHasher tool failed
with segmentation faults in some scenarios.
2025-06-28 13:10:37 -03:00
Michael Manganiello
c532f177ad misc: Remove support for deprecated GUNICORN_WORKERS variable
The `GUNICORN_WORKERS` environment variable has been deprecated in favor
of `WEB_CONCURRENCY`.
2025-06-19 10:19:40 -03:00
Georges-Antoine Assi
798f1cdcb0 fulyl revert it 2025-06-15 11:13:47 -04:00
Georges-Antoine Assi
8a89775ec8 add back libs for rahasher 2025-06-15 10:43:30 -04:00
Georges-Antoine Assi
bc0a0c1f26 revert ralibretro change 2025-06-15 10:32:07 -04:00
Michael Manganiello
a85a696505 misc: Upgrade RALibretro to the current upstream version
Bump `RALibretro` to the latest commit from the upstream repository.
Removes the need to use an older version of Alpine Linux, but requires
some changes to the `RALibretro` source code to compile successfully.

The `nginx` image is still not available for Alpine 3.22, but we can
also upgrade to its latest patch version (`1.27.5`).
2025-06-10 20:48:15 -03:00
zurdi
2aa6f1251b fix: set default ROMM_BASE_URL in nginx startup log message 2025-05-23 00:11:12 +00:00
zurdi
d27f4d626b feat: Reset forgotten password added 2025-05-13 09:35:53 +00:00
Zurdi
5c6d35b141 Update docker/init_scripts/init
Co-authored-by: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com>
2025-05-11 09:17:34 +02:00
zurdi
693f3e038b refactor: add ASCII art banner to init script and improve debug log output 2025-05-09 15:55:58 +00:00
zurdi
1b38607eab refactor: update Alembic logging configuration and add ASCII art banner to init script 2025-05-09 15:23:32 +00:00
zurdi
22f5134fbb refactor: add Gunicorn logging configuration and update startup script 2025-05-09 10:25:02 +00:00
zurdi
549e5956bf refactor: add initial logging configuration for Gunicorn 2025-05-09 10:24:45 +00:00
zurdi
e6c4a43c1e refactor: improve logging messages and formatting for clarity and consistency across multiple modules 2025-05-09 09:35:13 +00:00
zurdi
53f9386208 refactor: enhance logging messages and formatting for improved clarity and consistency 2025-05-08 23:35:33 +00:00
zurdi
49ad99d5e7 refactor: improve logging setup and format across multiple modules for consistency 2025-05-08 22:17:53 +00:00
zurdi
b3d341bc11 refactor: add TODO comment to check on database disconnection in init script 2025-05-08 17:59:50 +00:00
zurdi
c5033d9967 refactor: enhance logging output with color formatting for improved readability 2025-05-08 17:59:01 +00:00
zurdi
cac9602974 refactor: streamline logging setup and improve log formatting across multiple modules 2025-05-08 17:57:40 +00:00
zurdi
5bc820d3ee refactor: enhance logging and user agent mapping in nginx configuration for improved monitoring 2025-05-08 17:22:30 +00:00
zurdi
d5bb63c06f refactor: improve logging in redis_handler and init scripts for better debugging and process management 2025-05-08 16:34:23 +00:00
zurdi
c01a90caf6 refactor: update Docker image tag to include 'testing' for local builds 2025-05-08 14:36:32 +00:00
zurdi
4c953b6439 refactor: use symbolic links with force option in Dockerfile and improve branch name formatting in build script 2025-05-08 14:30:48 +00:00
zurdi
0f1c29be73 refactor: enhance logging format in init script with color coding for better visibility 2025-05-08 14:17:03 +00:00
zurdi
c0f33545b1 refactor: enhance initialization script with improved logging and process management 2025-05-08 14:04:21 +00:00
zurdi
ad1cd9e0c6 refactor: replace info_debug with debug_log for consistency in logging 2025-05-08 11:31:46 +00:00
zurdi
5d1114b832 refactor: set default web concurrency to reduce resource usage 2025-05-08 10:44:58 +00:00
zurdi
82c265e7d3 refactor: update log messages for consistency and clarity 2025-05-08 10:40:08 +00:00
zurdi
3bd9382b12 refactor: enable scheduled tasks in scheduler and init scripts 2025-05-08 08:59:56 +00:00
Georges-Antoine Assi
5a2362ad1b add folders to dockerignore 2025-03-07 18:09:45 -05:00
Michael Manganiello
85293d320a fix: Make nginx configuration files writable by everyone
As the container entrypoint runs `envsubst` to replace environment
variables in the nginx configuration files, the `/etc/nginx/conf.d` and
its contents must be writable by everyone.

This is needed because a user can set a custom UID/GID to run the
container, and the `envsubst` command will run as that user.
2025-02-22 17:25:15 -03:00