Commit Graph

29665 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
35ad73585f Merge branch 'develop' of https://github.com/NodeBB/NodeBB into develop 2023-11-12 13:51:58 -05:00
Barış Soner Uşaklı
4c7c46f32c fix: language key 2023-11-12 13:51:54 -05: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
Barış Soner Uşaklı
55fafa9154 Merge branch 'develop' of https://github.com/NodeBB/NodeBB into develop 2023-11-12 12:17:19 -05:00
renovate[bot]
9d18d3c7ab fix(deps): update dependency lru-cache to v10.0.2 (#12160)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-12 12:17:06 -05:00
renovate[bot]
1796ed2b23 chore(deps): update dependency lint-staged to v15.1.0 (#12161)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-12 12:16:56 -05:00
renovate[bot]
be3d3393e3 chore(deps): update dependency @commitlint/cli to v18.4.1 (#12162)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-12 12:16:45 -05:00
Barış Soner Uşaklı
4fc54a139f Merge branch 'develop' of https://github.com/NodeBB/NodeBB into develop 2023-11-12 12:16:33 -05:00
Barış Soner Uşaklı
ed10dda29a chore: up themes 2023-11-12 12:16:31 -05:00
Misty Release Bot
d563fa0708 Latest translations and fallbacks 2023-11-12 09:18:18 +00:00
Barış Soner Uşaklı
20e978a9c4 Merge branch 'develop' of https://github.com/NodeBB/NodeBB into develop 2023-11-11 13:24:59 -05:00
Barış Soner Uşaklı
22d7e92f8a chore: up composer 2023-11-11 13:24:54 -05:00
Misty Release Bot
fdb6e9b0b1 Latest translations and fallbacks 2023-11-11 09:18:16 +00:00
Barış Soner Uşaklı
5aa4bf3310 dont show legends on error charts 2023-11-10 16:29:33 -05:00
renovate[bot]
128c24f29c chore(deps): update commitlint monorepo to v18.4.0 (#12159)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-10 09:57:46 -05:00
Barış Soner Uşaklı
20db425fe3 Merge branch 'develop' of https://github.com/NodeBB/NodeBB into develop 2023-11-10 09:54:46 -05:00
Barış Soner Uşaklı
5ea7dec939 feat: closes #12158, add sortable rewards
convert rewards:list to a sorted set
2023-11-10 09:54:37 -05:00
Misty Release Bot
0fa6a26a0b Latest translations and fallbacks 2023-11-10 09:18:39 +00:00
Barış Soner Uşaklı
7fba622e52 mobile widgets changes 2023-11-09 15:54:52 -05:00
Barış Soner Uşaklı
2eb3c6f59c Merge branch 'develop' of https://github.com/NodeBB/NodeBB into develop 2023-11-09 13:08:13 -05:00
Barış Soner Uşaklı
fcdd373741 chore: up themes 2023-11-09 13:08:09 -05:00
Misty Release Bot
4fe84ae897 chore(i18n): fallback strings for new resources: nodebb.modules 2023-11-09 17:46:55 +00:00
Barış Soner Uşaklı
4b2491becd feat: add copy text 2023-11-09 12:46:31 -05:00
Julian Lam
f4c36b842b chore: v4 note for deprecations 2023-11-09 11:53:17 -05:00
Julian Lam
dc4cc74fbd refator(socket.io): deprecate socketGroups.getChatGroups in favour of api.admin.listGroups 2023-11-09 11:53:17 -05:00
Julian Lam
181a93996c chore: minor re-order of routes/controllers in admin api v3 router/controller 2023-11-09 11:53:17 -05:00
Julian Lam
807d778c77 refactor(socket.io): deprecate socketGroups.loadMoreMembers in favour of api.groups.listMembers 2023-11-09 11:53:17 -05:00
Julian Lam
d2f3333af0 refactor(socket.io): deprecate socketGroups.searchMembers in favour of api.groups.listMembers 2023-11-09 11:53:17 -05:00
Julian Lam
b61e814787 refactor(socket.io): deprecate socketGroups.loadMore in favour of api.groups.list 2023-11-09 11:53:17 -05:00
Julian Lam
54a08087cb chore: add in note at top of files ready for deletion in v4 2023-11-09 11:53:17 -05:00
Misty Release Bot
9d77857233 Latest translations and fallbacks 2023-11-09 09:18:51 +00:00
renovate[bot]
d1a7ba35a7 chore(deps): update dependency eslint to v8.53.0 (#12151)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-08 15:50:35 -05:00
Barış Soner Uşaklı
c73df36d81 Merge branch 'master' into develop 2023-11-08 15:38:15 -05:00
Barış Soner Uşaklı
21e5953888 fix: closes #12156, missing data for privilege tables
also fix js crash when adding group/user on admin privileges,
2023-11-08 15:38:02 -05:00
Misty Release Bot
ab05cc1c74 Latest translations and fallbacks 2023-11-08 09:18:43 +00:00
renovate[bot]
50aa1a7c5a fix(deps): update dependency helmet to v7.1.0 (#12155)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-07 12:53:02 -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]
0e9eafa191 fix(deps): update dependency async to v3.2.5 (#12150)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-07 12:52:19 -05:00
renovate[bot]
b489af0662 fix(deps): update dependency nodebb-theme-persona to v13.2.44 (#12149)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-07 12:51:57 -05:00
Misty Release Bot
94777927ff chore(i18n): fallback strings for new resources: nodebb.admin-settings-chat, nodebb.admin-settings-post, nodebb.admin-settings-user 2023-11-07 17:37:34 +00:00
Barış Soner Uşaklı
fdff165e2b feat: closes #12154, add exempt groups
for new user restrictions
2023-11-07 12:36:40 -05:00
Barış Soner Uşaklı
119c3362ff feat: update moved keys 2023-11-07 11:37:21 -05:00
Barış Soner Uşaklı
3d505c5c9d feat: move new user restrrictions 2023-11-07 11:32:51 -05:00
Barış Soner Uşaklı
f4bbc5bd3f fix: another missing state 2023-11-07 10:49:42 -05:00
Barış Soner Uşaklı
3b91e8e27f fix: add missing tracking 2023-11-07 10:49:06 -05:00
Misty Release Bot
519bc67066 Latest translations and fallbacks 2023-11-07 09:18:45 +00:00
Misty Release Bot
36c5025e4b Latest translations and fallbacks 2023-11-04 09:18:20 +00:00
Misty Release Bot
29b3a4038f chore(i18n): fallback strings for new resources: nodebb.admin-settings-user, nodebb.category, nodebb.notifications 2023-11-03 17:28:52 +00:00
renovate[bot]
77b0baeace fix(deps): update dependency nodebb-theme-harmony to v1.1.95 (#12148)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-03 12:50:12 -04:00
Barış Soner Uşaklı
84fed97b41 feat: add tracking categories and make watching send notifications (#12147)
* feat: add tracking categories and make watching send notifications

upgrade script to change the defaults

* add missing spec

* test: one more spec
2023-11-03 12:49:17 -04:00