Commit Graph

131 Commits

Author SHA1 Message Date
renovate[bot]
30ca00002a chore(deps): update actions/download-artifact action to v5 (#13646)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-25 20:49:28 -04:00
renovate[bot]
4f5e770c5f chore(deps): update actions/setup-node action to v5 (#13647)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-11 09:24:29 -04:00
Barış Soner Uşaklı
5c00c6a579 Merge branch 'master' into develop 2025-09-03 11:10:31 -04:00
Jakub Bliźniuk
931b7345e4 ci: use native arm runners for building docker images (#13627)
* ci: split docker runners

* ci: don't tag initial image

* ci: use lowercase image name

* ci: remove qemu
2025-08-29 21:07:29 -04:00
renovate[bot]
02228c04ef chore(deps): update redis docker tag to v8.2.1 (#13603)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-20 14:14:31 -04:00
renovate[bot]
311bbefa42 chore(deps): update actions/checkout action to v5 (#13590)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-13 17:35:28 -04:00
renovate[bot]
25bc9ba00b chore(deps): update redis docker tag to v8.2.0 (#13577)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 18:01:42 -04:00
renovate[bot]
1b80910e80 chore(deps): update redis docker tag to v8.0.3 (#13539)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-08 14:09:15 -04:00
renovate[bot]
166aaa7ab9 chore(deps): update redis docker tag to v8.0.2 (#13465)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-06 11:08:25 -04:00
renovate[bot]
fbe97b4e91 chore(deps): update redis docker tag to v8.0.1 (#13415)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-14 12:38:22 -04:00
renovate[bot]
1df7313c99 chore(deps): update redis docker tag to v8 (#13387)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-11 22:32:58 -04:00
Barış Soner Uşaklı
2d15555e5c update tests to node 20/22 2025-05-05 10:43:56 -04:00
renovate[bot]
7800016f2f chore(deps): update redis docker tag to v7.4.3 (#13358)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-25 09:04:15 -04:00
renovate[bot]
84b28fae5f chore(deps): update coverallsapp/github-action action to v2.3.6 (#13089)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-29 19:36:29 -05:00
renovate[bot]
fd6f3ee63b chore(deps): update redis docker tag to v7.4.2 (#13033)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 15:43:57 -05:00
renovate[bot]
351bcdbf8d chore(deps): update coverallsapp/github-action action to v2.3.4 (#12867)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-26 11:05:26 -04:00
renovate[bot]
48b09f1db6 chore(deps): update coverallsapp/github-action action to v2.3.3 (#12854)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-24 07:49:03 -04:00
renovate[bot]
c16192dc8b chore(deps): update coverallsapp/github-action action to v2.3.2 (#12846)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-15 15:42:32 -04:00
renovate[bot]
e7cba3417c chore(deps): update redis docker tag to v7.4.1 (#12836)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-09 19:57:09 -04:00
renovate[bot]
2fd8955881 chore(deps): update mongo docker tag to v8 (#12810)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-01 09:03:31 -04:00
renovate[bot]
d7299f9040 chore(deps): update postgres docker tag to v17 (#12829)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 11:01:25 -04:00
renovate[bot]
a2a30ebda1 chore(deps): update redis docker tag to v7.4.0 (#12712)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 12:35:47 -04:00
renovate[bot]
a78cd1b483 chore(deps): update docker/build-push-action action to v6 (#12641)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-19 09:05:59 -04:00
renovate[bot]
fc29ea8514 chore(deps): update redis docker tag to v7.2.5 (#12588)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-21 10:44:20 -04:00
Barış Soner Uşaklı
75abca912a Revert "test: remove node 18"
This reverts commit 6bd22e5337.
2024-05-15 16:17:59 -04:00
Barış Soner Uşaklı
6111db5a37 Revert "test: use node 20"
This reverts commit a40f54aa87.
2024-05-15 16:17:55 -04:00
Barış Soner Uşaklı
a40f54aa87 test: use node 20 2024-05-15 14:02:31 -04:00
Barış Soner Uşaklı
6bd22e5337 test: remove node 18 2024-05-15 14:02:05 -04:00
renovate[bot]
7a8116a471 chore(deps): update redis docker tag to v7.2.4 (#12272)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-14 10:24:35 -04:00
renovate[bot]
88ff9f9d62 chore(deps): update actions/cache action to v4 (#12563)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 11:07:12 -04:00
Barış Soner Uşaklı
31fccc5946 Merge branch 'master' into develop 2024-05-10 11:16:56 -04:00
Opliko
f4f0eb30dc Small docker improvements and fixes (#12335)
* feat: disable uneecessary npm features

disables npm audit, fund and update-notifier for a few second startup speedup

* fix: make default actually defaults not forced values

* feat: upgrade on container changes

* feat: support changing build verb

* fix: use local volumes instead of bind mounts

* fix: save just the hash without any unexpected whitespace

* feat: use run with mount instead of copying for cross-platfomr builds

* ci: try with minimal cache

* ci: don't fetch all branches

* feat: bsic support for other package managers via PACKAGE_MANAGER env var

* refactor: better structured entrypoint

Co-authored-by: NavyStack <137406386+NavyStack@users.noreply.github.com>

* ci: properly cache the node_modules mount

* fix: syntax error

* refactor: fine tune docker-related files

* ci: docker image taging (time, latest)

* fix: remove the trailing slash for correct directory path

* docker: todo- use environment variables to create files

* docker: fix permissions

* docker: fix permissions

* docker: fix stage

* feat: auto-upgrade on package.json changes

* fix: don't profile-gate postgres

---------

Co-authored-by: NavyStack <137406386+NavyStack@users.noreply.github.com>
Co-authored-by: NavyStack <navystack@askfront.com>
2024-05-10 11:10:42 -04:00
renovate[bot]
b4023ff9f3 chore(deps): update coverallsapp/github-action action to v2.3.0 (#12554)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-10 10:30:35 -04:00
Opliko
7f3a9968ef feat: docker improvements (#12031)
* use yarn and debian slim build

* feat: update Dockerfile to use multistage builds

* Create main.yml

* remove some useless things from docker context and assume yarn by default

* remove all dotfiles in docker context

* no need for extra build tools, complain to the module author if there is no alpine build

(cherry picked from commit 90516a3c8399e74c38be7115edb39411ba0d86b9)

* specify the config file location instead of creating it

(cherry picked from commit 38e4295d70682f1049fe671ade96eeccd669d908)

* set explicit config path

(cherry picked from commit 8dcc6f249d099cb8939a95511ec13702491958bc)

* fix docker-compose example to use the exposed volumes

* dockerfile: upgrade alpine to 3.16

* dockerignore: add more ignorable entries

* docker-compose: change the way the docker startup process works

* install: pass config path to child process as well

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* setup: move config file resolution up before setup

This fixes issue with different config file location, which will otherwise default on 'config.json', which means the config save won't save to the file we specified

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* docker-entrypoint: don't fix CONFIG_DIR location but fix default location

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* docker-entrypoint: handle missing config file logic

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* README: add simple notice on how to use it

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* add missing semicolons

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* docker-compose: remove multi override, use one big profile instead

However, Docker Compose doesn't support profile-based dependency and this would probably means we have less guarantee about the liveness of the database. But since this is just a sample configuration it should be fine

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* workflows: remove main.yml, add platforms to buildx matrix in docker.yml

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* workflows: set docker buildx to build for amd64 and arm64 only

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* docker-entrypoint: don't force build everytime before start

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* docker-entrypoint: implement init verb

This would allow you to change between "setup" (automated setup using environmental variables which is the current preferred way to run containerized NodeBB) or "install" (web install that guides user to fill in connection information, which is similar to WordPress)

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* README: mention caveat with MongoDB

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* README: add Docker section placeholder for doc migration

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* docker-entrypoint: add SETUP variable support

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* docker-compose: add force flag to ln on setup

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* docker-compose: fix permission issue; docker-compose: fast exit if still no permission on config dir

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* fix: remove redundant FROM

* docs: remove docker stuff (in favour of docs entry, nodebb/docs#78) but add link to cloud install docs

* fix: correctly check if directory is writable

* fix: ignore .docker directory

* fix: multi-arch docker builds and chown performance

* chore: bump database image versions

* fix: move from alpine to slim image

* fix: use omit=dev instead of only=prod

* feat: move entrypoint to install directory

* feat: initialize mongodb user

* feat: use separate rebuild stage

* fix: disable eslint for mongodb script

* fix: remove node_modules bind mount

bind mounts don't save data from container, resulting in a LOONG startup

* feat: prepopulate database defaults for installation

* feat: enable persistence in redis container

* docs: add some comments to the compose file

---------

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>
Co-authored-by: Steve Fan <29133953+stevefan1999-personal@users.noreply.github.com>
Co-authored-by: Steve Fan <19037626d@connect.polyu.hk>
Co-authored-by: Julian Lam <julian@nodebb.org>
2023-11-12 13:38:00 -05:00
renovate[bot]
2eff691299 chore(deps): update redis docker tag to v7.2.3 (#12152)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-07 12:52:48 -05:00
renovate[bot]
762ad16168 chore(deps): update actions/setup-node action to v4 (#12114)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-23 16:07:58 -04:00
renovate[bot]
bb812937f7 chore(deps): update redis docker tag to v7.2.2 (#12097)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-22 09:57:22 -04:00
renovate[bot]
6fa6f73b99 chore(deps): update postgres docker tag to v16 (#12012)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-18 15:32:32 -04:00
renovate[bot]
b423336672 chore(deps): update actions/checkout action to v4 (#11978)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-14 11:07:26 -04:00
renovate[bot]
4ecfe40ea0 chore(deps): update docker/build-push-action action to v5 (#11997)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-14 11:07:11 -04:00
renovate[bot]
478f7c740f chore(deps): update docker/login-action action to v3 (#11998)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-14 11:06:30 -04:00
renovate[bot]
21b280d298 chore(deps): update docker/metadata-action action to v5 (#11999)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-14 11:06:22 -04:00
renovate[bot]
95f7112adc chore(deps): update docker/setup-buildx-action action to v3 (#12000)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-14 11:06:15 -04:00
renovate[bot]
f286d7fa2e chore(deps): update docker/setup-qemu-action action to v3 (#12001)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-14 11:06:08 -04:00
renovate[bot]
a473b5155d chore(deps): update coverallsapp/github-action action to v2.2.3 (#11988)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-08 11:21:26 -04:00
renovate[bot]
0b231fd31b chore(deps): update redis docker tag to v7.2.1 (#11987)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-08 11:21:17 -04:00
renovate[bot]
15c6fd6bf8 chore(deps): update coverallsapp/github-action action to v2.2.2 (#11977)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-05 09:50:46 -04:00
Barış Soner Uşaklı
c989a4a328 remove node 16 from matrix 2023-08-21 13:50:57 -04:00
renovate[bot]
c41a4a0fdd chore(deps): update redis docker tag to v7.2.0 (#11924)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-19 20:31:58 -04:00
renovate[bot]
7ebdfe7153 chore(deps): update mongo docker tag to v7 (#11928)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-19 19:13:10 -04:00