Compare commits

...

149 Commits

Author SHA1 Message Date
Sugui 37df364d95 Merge branch 'develop'
Unit Tests with docker compose / unit-test (push) Successful in 19s Details
Build image / build (push) Successful in 59s Details
2024-04-15 18:51:16 +02:00
Sugui 90cf36b1e8 Fix to gracefully stop bun
Unit Tests with docker compose / unit-test (push) Successful in 51s Details
Unit Tests with docker compose / unit-test (pull_request) Successful in 17s Details
2024-04-15 18:36:35 +02:00
Alie 543081bf34 Merge branch 'build'
Unit Tests with docker compose / unit-test (push) Successful in 39s Details
Unit Tests with docker compose / unit-test (pull_request) Successful in 33s Details
2024-01-14 20:45:27 +01:00
Alie a05c801236 build (#26)
Unit Tests with docker compose / unit-test (push) Successful in 37s Details
Reviewed-on: #26
Co-authored-by: Alie <bizcochito@anartist.org>
Co-committed-by: Alie <bizcochito@anartist.org>
2024-01-14 13:56:46 +00:00
Alie ad37f9d72b add things to dockerignore
Unit Tests with docker compose / unit-test (push) Successful in 40s Details
2024-01-12 17:18:51 +01:00
Suguivy 81373528c0 Documenting endpoints
Unit Tests with docker compose / unit-test (push) Successful in 36s Details
2024-01-12 15:38:04 +00:00
bizcochito 8c538f07a5 Merge pull request 'logging' (#23) from logging into develop
Unit Tests with docker compose / unit-test (push) Successful in 36s Details
Reviewed-on: #23
2024-01-12 15:16:55 +00:00
Alie b19dea31d5 fmt
Unit Tests with docker compose / unit-test (pull_request) Successful in 43s Details
2024-01-12 16:14:29 +01:00
Alie 59b59030b5 added winston logger and log important functions such as auth 2024-01-12 16:13:02 +01:00
Alie 7a607e129c delete build yaml and roll back buiuld cache sharing
Unit Tests with docker compose / unit-test (push) Successful in 38s Details
2024-01-09 19:59:51 +01:00
Sugui f0c19e39f1 Fixed typo
Test and build image / unit-test (push) Has started running Details
Test and build image / build (push) Has been cancelled Details
2024-01-09 17:15:56 +01:00
Alie 5d705482f9 chare build cache
Test and build image / unit-test (push) Failing after 3h12m14s Details
Test and build image / build (push) Has been cancelled Details
2024-01-07 14:55:41 +01:00
Alie c75e92427f seems to work on the host but fails on the next step so i fixed that one
Test and build image / unit-test (push) Successful in 1m59s Details
Test and build image / build (push) Failing after 3m8s Details
2024-01-07 14:32:12 +01:00
Alie 88ca6bc770 use cache
Test and build image / unit-test (push) Successful in 1m42s Details
Test and build image / build (push) Failing after 2m46s Details
2024-01-07 14:15:37 +01:00
Alie b258d4cdc4 use local checked out repo
Test and build image / build (push) Has been cancelled Details
Test and build image / unit-test (push) Has been cancelled Details
2024-01-07 14:14:56 +01:00
Alie 6979e5451e just login manually instead of using action
Test and build image / unit-test (push) Successful in 1m50s Details
Test and build image / build (push) Failing after 2m9s Details
2024-01-07 14:04:42 +01:00
Alie 2c79a2ebfd v3
Test and build image / unit-test (push) Successful in 1m42s Details
Test and build image / build (push) Failing after 35s Details
2024-01-07 14:00:39 +01:00
Alie a3f342b168 I need the dockers
Test and build image / unit-test (push) Successful in 1m45s Details
Test and build image / build (push) Failing after 2m8s Details
2024-01-07 13:39:53 +01:00
Alie 847400a7b4 lover versions
Test and build image / unit-test (push) Successful in 1m41s Details
Test and build image / build (push) Failing after 1m59s Details
2024-01-07 13:35:30 +01:00
Alie 198fcd0b02 use oficial github action isntead of forgejo since its not on forgejo
Test and build image / unit-test (push) Successful in 1m39s Details
Test and build image / build (push) Failing after 46s Details
2024-01-07 13:32:01 +01:00
Alie 5917aa0fd8 just copy paste because seems imposible otherwise
Test via test action and then build image / unit-test (push) Successful in 2m5s Details
Test via test action and then build image / build (push) Failing after 7s Details
2024-01-07 13:24:53 +01:00
Sugui 1e3889d9b9 Added compression for responses
Test via test action and then build image / unit-test (push) Failing after 23s Details
Test via test action and then build image / build (push) Has been skipped Details
2024-01-07 13:23:58 +01:00
Alie 1f67f0c9e3 act is useless
Test via test action and then build image / unit-test (push) Failing after 23s Details
Test via test action and then build image / build (push) Has been skipped Details
2024-01-07 13:15:08 +01:00
Alie 47c6127cb8 Use alder version
Test via test action and then build image / unit-test (push) Failing after 1m9s Details
Test via test action and then build image / build (push) Has been skipped Details
2024-01-07 13:12:19 +01:00
Alie 12da042a77 change act
Test via test action and then build image / unit-test (push) Failing after 1m58s Details
Test via test action and then build image / build (push) Has been skipped Details
2024-01-07 13:09:25 +01:00
Alie b75bda4bc3 seems i need to specify runs.using
Test via test action and then build image / unit-test (push) Failing after 5s Details
Test via test action and then build image / build (push) Has been skipped Details
2024-01-07 13:07:29 +01:00
Alie 4bf1fb5ac2 using the act runner
Test via test action and then build image / unit-test (push) Failing after 28s Details
Test via test action and then build image / build (push) Has been skipped Details
2024-01-07 13:01:46 +01:00
Alie 9a758c5410 seems i need to checkout
Test via test action and then build image / unit-test (push) Failing after 20s Details
Test via test action and then build image / build (push) Has been skipped Details
2024-01-07 12:59:42 +01:00
Alie d12866bbb5 typo
Test via test action and then build image / unit-test (push) Failing after 5s Details
Test via test action and then build image / build (push) Has been skipped Details
2024-01-07 12:58:32 +01:00
Alie f5c472899c push build action
Test via test action and then build image / unit-test (push) Failing after 1m45s Details
Test via test action and then build image / build (push) Has been skipped Details
2024-01-07 12:54:46 +01:00
Sugui 7689cb28a3 Shortened and detailed the test on "/" endpoint 2024-01-07 12:37:03 +01:00
Sugui b3b11616bf Removed deprecated faker.helpers.unique function, using enforce-unique instead 2024-01-07 12:33:37 +01:00
Alie 7aceafff7b fmt 2024-01-06 21:24:12 +01:00
Suguivy f2bb15e0ab Merge pull request 'Implemented the GET /images endpoint with corresponding params' (#20) from get-images into develop
Reviewed-on: #20
2024-01-06 19:54:16 +00:00
Sugui e263f1eaca yarn.lock
Unit Tests with docker compose / unit-test (pull_request) Successful in 1m28s Details
2024-01-06 20:49:42 +01:00
Sugui 18b47cc20e Merge remote-tracking branch 'origin/develop' into get-images 2024-01-06 20:49:24 +01:00
Sugui a878d6255c Implemented GET /images endpoint with params
Unit Tests with docker compose / unit-test (pull_request) Failing after 32s Details
2024-01-06 20:46:12 +01:00
Alie cf03c90c46 changed the action to use cache (#19)
Reviewed-on: #19
Co-authored-by: Alie <bizcochito@anartist.org>
Co-committed-by: Alie <bizcochito@anartist.org>
2024-01-06 18:57:40 +00:00
bizcochito 478487d402 Merge pull request 'put-images' (#18) from put-images into develop
Reviewed-on: #18
2024-01-06 12:45:36 +00:00
Alie e015500057 changed the action to use cache
Unit Tests with docker compose / unit-test (pull_request) Successful in 3m54s Details
2024-01-06 13:43:37 +01:00
Suguivy e2c02cb32c Merge pull request 'Added fake data for test and dev environment' (#17) from testing into develop
Reviewed-on: #17
2024-01-06 12:34:44 +00:00
bizcochito eefb55a092 Merge branch 'develop' into put-images
Unit Tests with docker compose / unit-test (pull_request) Successful in 3m27s Details
2024-01-06 12:34:16 +00:00
Sugui 1e18234437 Added fake data for testing and dev environment
Unit Tests with docker compose / unit-test (pull_request) Successful in 6m53s Details
2024-01-06 13:25:24 +01:00
Sugui 87f4719fd1 Merge remote-tracking branch 'origin/develop' into testing 2024-01-06 13:20:24 +01:00
Alie fb2d947913 added a functional test and optimized a test
Unit Tests with docker compose / unit-test (pull_request) Successful in 6m7s Details
2024-01-06 13:10:45 +01:00
Alie ebf2ec17d1 added tests and auth to PUT images 2024-01-06 12:57:22 +01:00
Suguivy 26311992d3 Documentation for some API endpoints 2024-01-06 11:43:21 +00:00
Alie f74a0f26cc made the endpoint, works with manual tests 2024-01-06 12:24:30 +01:00
Alie d9e2cb3917 edited workflow 2024-01-06 11:23:55 +01:00
bizcochito 30409e4f3b Merge pull request 'Implemented the /images/:id' (#16) from get-id into develop
Reviewed-on: #16
2024-01-03 14:05:12 +00:00
Alie df99e9470c added the images/id endpoint and the tests for it
Unit Tests with docker compose / unit-test (pull_request) Successful in 3m37s Details
2024-01-03 13:58:18 +01:00
Sugui cda0b24851 Restored initial working workflow
Unit Tests with docker compose / unit-test (pull_request) Successful in 3m44s Details
2024-01-01 16:34:17 +01:00
Sugui 6cd2b09c13 Changing things to see if service works
Unit Tests with docker compose / unit-test (pull_request) Failing after 1m52s Details
2024-01-01 16:18:14 +01:00
Sugui 57a79c1e37 Addind docker:dind service
Unit Tests with docker compose / unit-test (pull_request) Failing after 1m44s Details
2024-01-01 16:12:24 +01:00
Sugui e5c5ef51d5 Removing cmd
Unit Tests with docker compose / unit-test (pull_request) Failing after 1m42s Details
2024-01-01 16:04:19 +01:00
Sugui dd9999de91 Adding & to the cmd command
Unit Tests with docker compose / unit-test (pull_request) Waiting to run Details
2024-01-01 16:01:44 +01:00
Sugui 810fd2aed1 Testing docker-init in container's cmd parameter
Unit Tests with docker compose / unit-test (pull_request) Waiting to run Details
2024-01-01 15:59:36 +01:00
Alie 265761766f made the dockerfile usable to our usecase 2023-12-31 13:26:10 +01:00
Sugui b6d966dc2e Revert "cmd"
This reverts commit e75bb6d8d9.
2023-12-31 13:16:41 +01:00
Sugui e75bb6d8d9 cmd
Unit Tests with docker compose / unit-test (pull_request) Waiting to run Details
2023-12-31 13:10:24 +01:00
Alie 106c1b8726 fmt 2023-12-31 12:29:31 +01:00
Alie a59f951500 unit testing (#7)
Co-authored-by: Sugui <anaisusg@gmail.com>
Reviewed-on: #7
Co-authored-by: Alie <bizcochito@anartist.org>
Co-committed-by: Alie <bizcochito@anartist.org>
2023-12-31 11:11:22 +00:00
Alie 98f9c5bf8e deleted a console log
Unit Tests with docker compose / unit-test (pull_request) Successful in 3m59s Details
2023-12-31 12:01:21 +01:00
Sugui 199f06db43 Now install packages without using a container, and fixed the ping thing
Unit Tests with docker compose / unit-test (pull_request) Successful in 4m20s Details
2023-12-31 11:54:46 +01:00
Sugui 5941fcc1f2 added node again
Unit Tests with docker compose / unit-test (pull_request) Failing after 7m39s Details
2023-12-31 11:44:25 +01:00
Sugui ec1b693538 Removed mongodb-memory-server
Unit Tests with docker compose / unit-test (pull_request) Has been cancelled Details
2023-12-31 11:42:19 +01:00
Sugui e1ced40c06 monothread and verbose on bun install
Unit Tests with docker compose / unit-test (pull_request) Has been cancelled Details
2023-12-31 11:36:38 +01:00
Sugui 7fc78c0a03 Added bun again to install dependencies in action
Unit Tests with docker compose / unit-test (pull_request) Has been cancelled Details
2023-12-31 11:31:46 +01:00
Sugui d368c6bed0 change to mongo:bionic to support the runner on pi 2023-12-31 11:31:28 +01:00
Sugui 640514af6d ping
Unit Tests with docker compose / unit-test (pull_request) Failing after 6m56s Details
2023-12-29 22:01:23 +01:00
Sugui 6bb187305a undid last commit
Unit Tests with docker compose / unit-test (pull_request) Failing after 7m34s Details
2023-12-29 20:22:27 +01:00
Sugui cabe730ab8 Testing adding MONGO_URL as env var
Unit Tests with docker compose / unit-test (pull_request) Failing after 7m19s Details
2023-12-29 20:10:36 +01:00
Sugui 6561c710ff Deleted DEDICATED_MONGO_SERVER env variable
Unit Tests with docker compose / unit-test (pull_request) Failing after 7m41s Details
2023-12-29 19:54:56 +01:00
Alie 76d5764616 added test coverage to image controler
Unit Tests with docker compose / unit-test (pull_request) Failing after 7m32s Details
2023-12-29 19:47:35 +01:00
Alie 9cd61c101c fmt, purged useless deps and removed mongoMS
Unit Tests with docker compose / unit-test (pull_request) Failing after 7m21s Details
2023-12-29 19:37:35 +01:00
Sugui 49b159f9dc node 20
Unit Tests with docker compose / unit-test (pull_request) Failing after 7m17s Details
2023-12-29 19:28:38 +01:00
Sugui 8b27e2577f npm
Unit Tests with docker compose / unit-test (pull_request) Failing after 15s Details
2023-12-29 19:25:48 +01:00
Sugui 2081c2fea8 testing with npm, also moved types to dev
Unit Tests with docker compose / unit-test (pull_request) Failing after 27s Details
2023-12-29 19:24:43 +01:00
Sugui 5d2c9cd325 fixinggg
Unit Tests with docker compose / unit-test (pull_request) Has been cancelled Details
2023-12-29 19:18:46 +01:00
Sugui a59f288d22 verbose
Unit Tests with docker compose / unit-test (pull_request) Failing after 2m1s Details
2023-12-29 19:14:57 +01:00
Sugui 6e546cc753 yay
Unit Tests with docker compose / unit-test (pull_request) Has been cancelled Details
2023-12-29 19:07:26 +01:00
Sugui 1bcf3d4590 oven
Unit Tests with docker compose / unit-test (pull_request) Failing after 1m2s Details
2023-12-29 19:03:48 +01:00
Sugui 0dba3d2f6f over bun
Unit Tests with docker compose / unit-test (pull_request) Failing after 38s Details
2023-12-29 19:02:42 +01:00
Sugui ac98daa71e bash
Unit Tests with docker compose / unit-test (pull_request) Failing after 37s Details
2023-12-29 18:48:40 +01:00
Sugui 15f3af264b bun bin bun
Unit Tests with docker compose / unit-test (pull_request) Failing after 37s Details
2023-12-29 18:39:43 +01:00
Sugui 006ea44a6a buni
Unit Tests with docker compose / unit-test (pull_request) Failing after 34s Details
2023-12-29 18:38:25 +01:00
Sugui 18f456c83e docker
Unit Tests with docker compose / unit-test (pull_request) Failing after 2m32s Details
2023-12-29 18:35:08 +01:00
Sugui d62ed9ca18 &
Unit Tests with docker compose / unit-test (pull_request) Failing after 39s Details
2023-12-29 18:34:15 +01:00
Sugui b76865dadf docker init
Unit Tests with docker compose / unit-test (pull_request) Has been cancelled Details
2023-12-29 18:33:20 +01:00
Sugui 108e1793bf ps
Unit Tests with docker compose / unit-test (pull_request) Failing after 36s Details
2023-12-29 18:26:02 +01:00
Sugui 1c204590df dind
Unit Tests with docker compose / unit-test (pull_request) Failing after 33s Details
2023-12-29 18:19:00 +01:00
Sugui e5122f59e4 dind dind
Unit Tests with docker compose / unit-test (pull_request) Failing after 34s Details
2023-12-29 18:15:02 +01:00
Sugui 511eaba538 docker
Unit Tests with docker compose / unit-test (pull_request) Failing after 32s Details
2023-12-29 18:13:25 +01:00
Sugui 3526729166 probamos
Unit Tests with docker compose / unit-test (pull_request) Failing after 38s Details
2023-12-29 18:07:55 +01:00
Sugui 6efb03efbf dind-compose
Unit Tests with docker compose / unit-test (pull_request) Failing after 39s Details
2023-12-29 17:59:11 +01:00
Sugui 0b30819076 dind
Unit Tests with docker compose / unit-test (pull_request) Failing after 1m26s Details
2023-12-29 17:55:36 +01:00
Sugui 471c84b18c Deleted not docker workflow
Unit Tests with docker compose / unit-test (pull_request) Failing after 1m37s Details
2023-12-29 17:53:29 +01:00
Sugui c801bc448d Docker instead of dind
Unit Tests with docker compose / unit-test (pull_request) Failing after 49s Details
Unit Tests / unit-test (pull_request) Failing after 1m46s Details
2023-12-29 17:31:49 +01:00
Sugui 04bf90cee6 echo
Unit Tests with docker compose / unit-test (pull_request) Failing after 52s Details
Unit Tests / unit-test (pull_request) Failing after 1m49s Details
2023-12-29 17:29:01 +01:00
Sugui a71640dd9f rootless
Unit Tests with docker compose / unit-test (pull_request) Failing after 28s Details
Unit Tests / unit-test (pull_request) Failing after 2m11s Details
2023-12-29 17:23:02 +01:00
Sugui cf1e93afd1 Merge branch 'testing' of ssh://git.fai.st:2600/fedi-image-bot/bot-api into testing
Unit Tests with docker compose / unit-test (pull_request) Failing after 1m2s Details
Unit Tests / unit-test (pull_request) Failing after 2m9s Details
2023-12-29 17:21:47 +01:00
Sugui 5b2196fbd9 being root 2023-12-29 17:21:44 +01:00
Alie c27ce7273a enable debug
Unit Tests with docker compose / unit-test (pull_request) Failing after 35s Details
Unit Tests / unit-test (pull_request) Failing after 2m18s Details
2023-12-29 17:20:35 +01:00
Sugui 071994a17c Merge branch 'testing' of ssh://git.fai.st:2600/fedi-image-bot/bot-api into testing
Unit Tests with docker compose / unit-test (pull_request) Failing after 47s Details
Unit Tests / unit-test (pull_request) Failing after 1m36s Details
2023-12-29 17:12:06 +01:00
Sugui aca87e205b privileged 2023-12-29 17:12:04 +01:00
Alie 8ed2261b90 Merge remote-tracking branch 'refs/remotes/origin/testing' into testing
Unit Tests with docker compose / unit-test (pull_request) Failing after 36s Details
Unit Tests / unit-test (pull_request) Failing after 1m38s Details
2023-12-29 17:11:02 +01:00
Alie 6850989f06 unified the tests in one file for port binding reasons 2023-12-29 17:10:48 +01:00
Sugui 42111a9e30 fixed dind
Unit Tests with docker compose / unit-test (pull_request) Failing after 57s Details
Unit Tests / unit-test (pull_request) Failing after 1m43s Details
2023-12-29 17:08:06 +01:00
Sugui 7230a08cc9 dind
Unit Tests with docker compose / unit-test (pull_request) Failing after 4s Details
Unit Tests / unit-test (pull_request) Failing after 2m26s Details
2023-12-29 17:06:49 +01:00
Sugui a4f4ebbbd2 typo
Unit Tests with docker compose / unit-test (pull_request) Failing after 54s Details
Unit Tests / unit-test (pull_request) Failing after 1m57s Details
2023-12-29 17:05:17 +01:00
Sugui a09119ea45 changed moby to docker
Unit Tests with docker compose / unit-test (pull_request) Failing after 36s Details
Unit Tests / unit-test (pull_request) Failing after 1m55s Details
2023-12-29 17:04:19 +01:00
Sugui 3c723a8109 adding curl and bash
Unit Tests with docker compose / unit-test (pull_request) Failing after 45s Details
Unit Tests / unit-test (pull_request) Failing after 1m47s Details
2023-12-29 17:02:28 +01:00
Sugui 36e91e89f6 adding git
Unit Tests with docker compose / unit-test (pull_request) Failing after 25s Details
Unit Tests / unit-test (pull_request) Failing after 1m26s Details
2023-12-29 17:00:09 +01:00
Sugui 54a4025672 adding nodejs
Unit Tests with docker compose / unit-test (pull_request) Failing after 1m43s Details
Unit Tests / unit-test (pull_request) Failing after 2m12s Details
2023-12-29 16:58:34 +01:00
Sugui 01318e7579 using docker image
Unit Tests with docker compose / unit-test (pull_request) Failing after 48s Details
Unit Tests / unit-test (pull_request) Failing after 1m46s Details
2023-12-29 16:53:56 +01:00
Sugui 4dd4d18a92 testing moby
Unit Tests with docker compose / unit-test (pull_request) Failing after 34s Details
Unit Tests / unit-test (pull_request) Failing after 1m39s Details
2023-12-29 16:48:26 +01:00
Sugui 2684b2e1d5 update
Unit Tests / unit-test (pull_request) Failing after 1m43s Details
Unit Tests with docker compose / unit-test (pull_request) Failing after 3m55s Details
2023-12-29 16:39:54 +01:00
Sugui e64474a4f4 Testing action with docker compose
Unit Tests with docker compose / unit-test (pull_request) Failing after 1m10s Details
Unit Tests / unit-test (pull_request) Failing after 3m59s Details
2023-12-29 16:37:24 +01:00
Alie 86f20e6b45 there is no mongo dor debian11 aarch64 :)
Unit Tests / unit-test (pull_request) Failing after 3m32s Details
2023-12-29 16:25:42 +01:00
Alie c8fa9cc2dd ok, then directly execute
Unit Tests / unit-test (pull_request) Failing after 1m17s Details
2023-12-29 16:22:03 +01:00
Alie 1da18fba4e why does it not let you source???
Unit Tests / unit-test (pull_request) Failing after 22s Details
2023-12-29 16:20:18 +01:00
Alie 1aa75a21fd path
Unit Tests / unit-test (pull_request) Failing after 23s Details
2023-12-29 16:18:53 +01:00
Alie 90b617f86c bash
Unit Tests / unit-test (pull_request) Failing after 28s Details
2023-12-29 16:17:50 +01:00
Alie d9814a28eb container
Unit Tests / unit-test (pull_request) Failing after 31s Details
2023-12-29 16:16:57 +01:00
Alie e5d191dd58 forgor to pipe
Unit Tests / unit-test (pull_request) Failing after 1m44s Details
2023-12-29 16:15:42 +01:00
Alie 1c05d114a4 changed the image
Unit Tests / unit-test (pull_request) Failing after 2m5s Details
2023-12-29 16:11:49 +01:00
Alie 6acb9ee3d9 changes to the action
Unit Tests / unit-test (pull_request) Failing after 56s Details
2023-12-29 16:08:09 +01:00
Alie 7c68174ca4 fixed the test issue, before all and things 2023-12-29 16:05:51 +01:00
Sugui 1b45481d27 commit all changes to tests 2023-12-29 15:24:29 +01:00
Alie 97b0599c0f Merge remote-tracking branch 'refs/remotes/origin/develop' into develop 2023-12-29 09:54:16 +01:00
Alie f859cdeeb1 remove unused variable 2023-12-29 09:53:31 +01:00
bizcochito 3fa770880b updated container used for workflow 2023-12-29 08:44:40 +00:00
Alie 0d2e8dfe36 fmt 2023-12-27 20:41:35 +01:00
Alie 3be98d0e20 fixed a comment position 2023-12-27 20:38:15 +01:00
bizcochito 9e064fc56e Merge pull request 'auth' (#6) from auth into develop
Reviewed-on: #6
2023-12-27 19:34:31 +00:00
Alie ada964c493 added tests for Authorization
Gitea Actions Demo / Explore-Gitea-Actions (pull_request) Has been cancelled Details
2023-12-27 20:33:25 +01:00
Alie ec4f9eb2c3 Merge branch 'develop' into auth 2023-12-27 20:05:08 +01:00
Alie 8396d597f1 fixed mongo issues, why does it need to end with s??? 2023-12-27 20:03:22 +01:00
Sugui c6e1947899 Now 500 error works, and it's reflected in the tests 2023-12-27 20:02:26 +01:00
Alie c428e956bc added expiry times to jwt
decided against adding refresh tokens due to they not being that usefull in our architecture
2023-12-27 18:44:09 +01:00
Alie 95fd50a638 added auth service 2023-12-27 18:29:20 +01:00
Alie d8bb908b03 added basic auth controler 2023-12-27 18:20:11 +01:00
Sugui 730b8368cd Deleted "message" attribute that was on all JSON responses 2023-12-27 18:16:46 +01:00
Suguivy c026657e2f Merge pull request 'Separated things into Model-Service-Controller pattern' (#5) from msc-pattern into develop
Reviewed-on: #5
2023-12-27 17:00:31 +00:00
Sugui e89bc6d508 Separated things into Model-Service-Controller pattern
Gitea Actions Demo / Explore-Gitea-Actions (pull_request) Has been cancelled Details
2023-12-27 17:58:59 +01:00
Sugui bf7961f1ca Now / lists the endpoints 2023-12-27 17:07:32 +01:00
Alie c5e41d6f62 added a test for / 2023-12-27 16:52:15 +01:00
Sugui f483f62c42 change test workflow on pull request
Gitea Actions Demo / Explore-Gitea-Actions (pull_request) Has been cancelled Details
2023-12-25 14:40:10 +01:00
Sugui 351ff4e989 Test workflow
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled Details
2023-12-25 14:36:13 +01:00
3 changed files with 10 additions and 6 deletions

View File

@ -1,5 +1,3 @@
version: "3"
services:
mongodb:
image: mongo:bionic
@ -16,7 +14,8 @@ services:
bot-api:
image: oven/bun:1
container_name: bot-api
command: bun run docker-dev
entrypoint: /bin/bash -c
command: ["bun --hot run src/index.ts"]
working_dir: /usr/src/app
ports:
- "8080:8080"

View File

@ -21,9 +21,8 @@
},
"scripts": {
"start": "bun run src/index.ts",
"docker-dev": "bun --hot run src/index.ts",
"dev": "docker compose down -v && docker compose up",
"test": "docker compose down -v && docker compose run bot-api bun test"
"test": "docker compose down -v && docker compose run bot-api 'bun test'"
},
"dependencies": {
"compression": "^1.7.4",

View File

@ -35,9 +35,15 @@ export const startApp = async () => {
pass: mongo_pass,
});
mongoose.set("runValidators", true);
app.listen(port, () =>
const server = app.listen(port, () =>
logger.info(`Express server listening on port ${port}`)
);
process.on("SIGTERM", () => {
server.close(() => {
logger.info('Server closed');
process.exit(0);
});
});
} catch (error) {
logger.error(error);
process.exit(1);