Skip to content

Commit

Permalink
Merge branch 'feature/global-search' into 'main'
Browse files Browse the repository at this point in the history
  • Loading branch information
peb-adr committed Aug 31, 2023
2 parents 33c76ee + b993d18 commit 1362993
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,3 @@ jobs:

- name: go test
run: go test -timeout 10s -race ./...

- name: go test for special system tests
run: OPENSLIDES_MANAGE_SERVICE_SYSTEM_TEST=true go test -timeout 300s -v pkg/client/system_test.go
1 change: 1 addition & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ func NewYmlConfig(configFiles [][]byte) (*YmlConfig, error) {
"autoupdate",
"auth",
"vote",
"search",
"redis",
"media",
"icc",
Expand Down
4 changes: 4 additions & 0 deletions pkg/config/default-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ defaultEnvironment:
AUTH_HOST: auth
AUTH_PORT: 9004

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

VOTE_HOST: vote
VOTE_PORT: 9013

Expand Down
26 changes: 26 additions & 0 deletions pkg/config/default-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ services:
- backendAction
- backendPresenter
- autoupdate
- search
- auth
- media
- icc
Expand Down Expand Up @@ -54,6 +55,7 @@ services:
- backendAction
- backendPresenter
- autoupdate
- search
- auth
- media
- icc
Expand Down Expand Up @@ -228,6 +230,30 @@ services:
{{- end }}


{{- with .Services.search }}

search:
image: {{ .ContainerRegistry }}/openslides-search:{{ .Tag }}
{{- if checkFlag $.DisableDependsOn }}{{ else }}
depends_on:
- datastoreReader
- postgres
- autoupdate
{{- end }}
environment:
<< : *default-environment
{{- with .Environment }}{{ marshalContent 6 . }}{{- end }}
networks:
- frontend
- data
secrets:
- auth_token_key
- auth_cookie_key
- postgres_password
{{- with .AdditionalContent }}{{ marshalContent 4 . }}{{- end }}
{{- end }}


{{- with .Services.auth }}

auth:
Expand Down
21 changes: 21 additions & 0 deletions pkg/setup/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,9 @@ x-default-environment: &default-environment
OPENSLIDES_LOGLEVEL: info
PRESENTER_HOST: backendPresenter
PRESENTER_PORT: "9003"
RESTRICTER_URL: http://autoupdate:9012/internal/autoupdate
SEARCH_HOST: search
SEARCH_PORT: "9050"
SUPERADMIN_PASSWORD_FILE: /run/secrets/superadmin
SYSTEM_URL: localhost:8000
VOTE_DATABASE_HOST: postgres
Expand All @@ -523,6 +526,7 @@ services:
- backendAction
- backendPresenter
- autoupdate
- search
- auth
- media
- icc
Expand All @@ -547,6 +551,7 @@ services:
- backendAction
- backendPresenter
- autoupdate
- search
- auth
- media
- icc
Expand Down Expand Up @@ -663,6 +668,22 @@ services:
- auth_cookie_key
- postgres_password
search:
image: ghcr.io/openslides/openslides/openslides-search:latest
depends_on:
- datastoreReader
- postgres
- autoupdate
environment:
<< : *default-environment
networks:
- frontend
- data
secrets:
- auth_token_key
- auth_cookie_key
- postgres_password
auth:
image: ghcr.io/openslides/openslides/openslides-auth:latest
depends_on:
Expand Down

0 comments on commit 1362993

Please # to comment.