31 Commits

Author SHA1 Message Date
0c377c370f add missing redis env var to docker-compose file 2024-07-19 15:24:22 +08:00
0122ba0742 add postgres-replica to the docker-compose 2024-06-26 16:11:10 +08:00
f61bd1f7c1 fix docker-compose 2024-05-13 15:35:07 +08:00
34c214e7d8 fix docker error 2024-05-13 15:11:37 +08:00
d23bccf459 upgrade puppeteer-core to prevent ProtocolTimeout and adding more debug logs 2024-05-13 14:28:26 +08:00
7d291f084b Merge all changes from main, update theming of Discover 2024-03-07 17:39:57 +01:00
36c75af23f minor improvements 2024-01-07 14:42:26 +01:00
fe1cf30637 Update docker-compose.yml
Fix password in DockerCompose
2023-11-29 13:19:25 +08:00
f8a6fc9e0d Improve developer environment onboarding
I encountered a number of issues while trying to get my own local dev
environment set up. This change adds missing information to the readme, updates
the Postgres image to one that includes required module dependencies, and
removes next.js rewrite rules (IS THIS SAFE?) which were no longer used and
causing issues.
2023-10-27 08:44:26 -07:00
612151c151 remove elastic from docker-compose 2023-10-05 14:24:04 +08:00
174365af7c fix demo user not able to login when self hosting 2023-10-05 11:08:36 +08:00
0b515d4605 Add comment 2023-01-06 22:03:56 +08:00
b6897c7ba7 Set debug profile for Kibana in docker-compose 2022-12-30 13:12:59 +08:00
9af670a5bc Call api to get rules and device tokens in rules handler 2022-11-21 17:03:46 +08:00
1228efb70f Add docker-compose service 2022-11-21 10:36:41 +08:00
bc9b50c3cb Remove dockerfile-local 2022-10-06 12:57:30 +08:00
111639a31d Exposes port 9090:8080 in the container 2022-10-06 11:17:11 +08:00
8c06d651aa Add redis docker compose service 2022-09-15 19:14:38 +08:00
92c8047a66 Update environment variable names in docker 2022-06-24 10:52:13 -07:00
456b7d7bbe Use local dockerfile with content-fetch 2022-06-20 10:16:47 -07:00
ddaac82653 Fix content-fetch on docker compose 2022-06-17 14:59:42 -07:00
58814e1854 Run the content-fetch service in docker compose 2022-06-17 14:19:06 -07:00
9137fb4588 Fix docker-compose migrate service env 2022-05-25 16:04:02 +08:00
9e94ed5067 We need node-gyp when building API in docker 2022-05-02 11:00:39 -07:00
9f06ab6851 Added fix for docker 2022-04-01 07:51:28 +00:00
469c0ed764 Add ELASTIC_URL env var to docker-compose
This should fix startup of the API server in docker-compose.
2022-03-17 09:28:34 -07:00
e652a6ea8c Rebased version of the elastic PR (#225)
* Add elastic to our docker compose

* add AND/OR/NOT search operations

* add elastic and create article in elastic

* change error code when elastic throws error

* add search pages in elastic

* add search by labels

* Add elastic to GitHub Action

* Update elastic version

* Fix port for elastic

* add url in search query

* Set elastic features when running tests

* add debug logs

* Use localhost instead of service hostname

* refresh elastic after create/update

* update search labels query

* add typescript support

* search pages in elastic

* fix search queries

* use elastic for saving page

* fix test failure

* update getArticle api to use elastic

* use generic get page function

* add elastic migration python script

* fix bulk helper param

* save elastic page id in article_saving_request instead of postgres article_id

* fix page archiving and deleting

* add tests for deleteArticle

* remove custom date type in elastic mappings which not exist in older version of elastic

* fix timestamp format issue

* add tests for save reading progress

* add tests for save file

* optimize search results

* add alias to index

* update migration script to receive env var as params

* Add failing test to validate we don't decrease reading progress

This test is failing with Elastic because we aren't fetching
the reading progress from elastic here, and are fetching it
from postgres.

* Rename readingProgress to readingProgressPercent

This is the name stored in elastic, so fixes issues pulling the
value out.

* Linting

* Add failing test for creating highlights w/elastic

This test fails because the highlight can't be looked up. Is there
a different ID we should be passing in to query for highlights,
or do we need to update the query to look for elastic_id?

* add tests code coverage threshold

* update nyc config

* include more files in test coverage

* change alias name

* update updateContent to update pages in elastic

* remove debug log

* fix createhighlight test

* search pages by alias in elastic

* update set labels and delete labels in elastic

* migration script enumeration

* make BULK_SIZE an env var

* fix pdf search indexing

* debug github action exit issue

* call pubsub when create/update/delete page in elastic

* fix json parsing bug and reduce reading data from file

* replace a depreciated pubsub api call

* debug github action exit issue

* debug github action exit issue

* add handler to upload elastic page data to GCS

* fix tests

* Use http_auth instead of basic_auth

* add index creation and existing postgres tables update in migration script

* fix a typo to connect to elastic

* rename readingProgress to readingProgressPercent

* migrate elastic_page_id in highlights and article_saving_request tables

* update migration script to include number of updated rows

* update db migration query

* read index mappings from file

* fix upload pages to gcs

* fix tests failure due to pageContext

* fix upload file id not exist error

* Handle savedAt & isArchived attributes w/out quering elastic

* Fix prettier issues

* fix content-type mismatching

* revert pageId to linkId because frontend was not deployed yet

* fix newsletters and attachment not saved in elastic

* put linkId in article for setting labels

* exclude orginalHtml in the result of searching to improve performace

* exclude content in the result of searching to improve performace

* remove score sorting

* do not refresh immediately to reduce searching and indexing time

* do not replace the backup data in gcs

* fix no article id defined in articleSavingRequest

* add logging of elastic api running time

* reduce home feed pagination size to 15

* reduce home feed pagination size to 10

* stop revalidating first page

* do not use a separate api to fetch reading progress

* Remove unused comment

* get reading progress if not exists

* replace ngram tokenizer with standard tokenizer

* fix tests

* remove .env.local

* add sort keyword in searching to sort by score

Co-authored-by: Hongbo Wu <hongbo@omnivore.app>
2022-03-16 12:08:59 +08:00
46b526961a Dockerize the puppeteer-parse service and add to docker-compose 2022-02-12 13:14:00 -08:00
42836b6b38 Simplify startup of the puppeteer service
- Run on port 9090 so we don't conflict with other services
- Route the docker-compose requests to the host network
- Dont require preview bucket information on startup
2022-02-11 14:44:32 -08:00
ca7b79d1ba Simplify docker compose setup for new users
This takes out some environment variables that are not needed
for new users testing out locally.

We also adjusted the port usage so docker-compose will use the
same ports that local dev typically uses.
2022-02-11 11:45:37 -08:00
84f32935f5 Open source omnivore 2022-02-11 09:24:33 -08:00