Skip to content

Commit

Permalink
add search-service (#6569)
Browse files Browse the repository at this point in the history
* add search-service

* add restricter url config

* update search service

* add search service to image build

* update search service caddy config

* update localprod config

* change search service host env var name

* update services to feature branches

* update search service

* update services

* Update restricter URL

* Update search service env

* Don't update submods in this branch

* Revert proxy changes - it is now a separate repo

* Add search as default target in build.sh

* Properly add search submod

not really sure what was wrong before ...

* Increase wait time in test action

---------

Co-authored-by: Bastian Rihm <Bastian Rihm brihm@intevation.de>
Co-authored-by: Adrian Richter <adrian@intevation.de>
  • Loading branch information
3 people committed Aug 31, 2023
1 parent f8697b0 commit 015baf4
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- name: datastore-writer
- name: autoupdate
- name: auth
- name: search
- name: vote
- name: icc
- name: media
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: iFaxity/wait-on-action@v1
with:
resource: https://localhost:8000
timeout: 300000
timeout: 900000

- name: Start tests
working-directory: "./openslides-client"
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@
[submodule "openslides-proxy"]
path = openslides-proxy
url = https://github.com/OpenSlides/openslides-proxy.git
[submodule "openslides-search-service"]
path = openslides-search-service
url = https://github.com/OpenSlides/openslides-search-service.git
3 changes: 2 additions & 1 deletion dev/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ TARGETS=(
[backend]="$HOME/openslides-backend/"
[auth]="$HOME/openslides-auth-service/"
[autoupdate]="$HOME/openslides-autoupdate-service/"
[search]="$HOME/openslides-search-service/"
[manage]="$HOME/openslides-manage-service/"
[datastore-reader]="$HOME/openslides-datastore-service/reader"
[datastore-writer]="$HOME/openslides-datastore-service/writer"
Expand All @@ -26,7 +27,7 @@ DOCKER_TAG="$(cat VERSION)"
CONFIG="/etc/osinstancectl"
OPTIONS=()
BUILT_IMAGES=()
DEFAULT_TARGETS=(proxy client backend auth autoupdate manage datastore-reader datastore-writer media vote icc)
DEFAULT_TARGETS=(proxy client backend auth autoupdate manage datastore-reader datastore-writer media vote icc search)
ASK_PUSH=
OPT_YES=
OPT_IMAGES=
Expand Down
15 changes: 15 additions & 0 deletions dev/docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,21 @@ services:
ports:
- "9007:9007"

search:
image: openslides-search-dev
depends_on:
- autoupdate
- backend
- postgres
env_file: services.env
environment:
- OPENSLIDES_DEVELOPMENT=1
volumes:
- ../../openslides-search-service/cmd:/root/cmd
- ../../openslides-search-service/pkg:/root/pkg
ports:
- "9050:9050"

auth:
image: openslides-auth-dev
depends_on:
Expand Down
4 changes: 4 additions & 0 deletions dev/docker/services.env
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ PRESENTER_PORT=9003
AUTOUPDATE_HOST=autoupdate
AUTOUPDATE_PORT=9012

SEARCH_HOST=search
SEARCH_PORT=9050
RESTRICTER_URL=http://autoupdate:9012/internal/autoupdate

AUTH_HOST=auth
AUTH_PORT=9004
CACHE_HOST=redis
Expand Down
3 changes: 3 additions & 0 deletions dev/localprod/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ services:
icc:
additionalContent:
build: ../../openslides-icc-service/
search:
additionalContent:
build: ../../openslides-search-service/
manage:
additionalContent:
build: ../../openslides-manage-service/
1 change: 1 addition & 0 deletions openslides-search-service

0 comments on commit 015baf4

Please sign in to comment.