Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding workaround for elastic search container on mac #3268

Merged
merged 2 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,20 @@ GOOGLE_CLIENT_SECRET=

[podman-compose](https://github.com/containers/podman-compose) is used to run a local copy of all required services together.

macOS Development Setup - If you're working on macOS and encounter issues with file watching in Vite, use the following environment variables (in config.env):
#### macOS Development Setup
If you're working on macOS and encounter issues with file watching in Vite, use the following environment variables (in config.env):

```
CHOKIDAR_USEPOLLING=true
```

If you're working on macOS and encounter issues with elastic search, use the following environment variables (in config.env):

```
ES_JAVA_OPTS: -XX:UseSVE=0
CLI_JAVA_OPTS: -XX:UseSVE=0
```

```shell
# This will run podman-compose in the background (-d flag is --detach)
podman-compose up -d
Expand Down
3 changes: 3 additions & 0 deletions config.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ GLOBUS_CLIENT_SECRET=
# macOS Development Setup - Fixes issues with Vite file watching - set to CHOKIDAR_USEPOLLING=true
CHOKIDAR_USEPOLLING=false
CHOKIDAR_INTERVAL=1000
# macOS Development Setup - Fixes issues with elastic search container - set to ES_JAVA_OPTS: -XX:UseSVE=0 and CLI_JAVA_OPTS: -XX:UseSVE=0
# ES_JAVA_OPTS: -XX:UseSVE=0
# CLI_JAVA_OPTS: -XX:UseSVE=0

# Relay for enabling mail - leave blank to disable email
CRN_SERVER_MAIL_API_KEY=
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ services:
cluster.routing.allocation.disk.watermark.high: 5gb
xpack.security.enabled: false
xpack.security.enrollment.enabled: false
ES_JAVA_OPTS: "-Xms750m -Xmx750m"
healthcheck:
test: "curl -s -f http://localhost:9200 || exit 1"
interval: 10s
Expand Down
Loading