Skip to content

Commit dbde4a3

Browse files
authored
updates to build (#828)
* updates to build * update changelog
1 parent c692a0a commit dbde4a3

File tree

7 files changed

+38
-20
lines changed

7 files changed

+38
-20
lines changed

.github/workflows/push.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,21 @@ jobs:
1414
runs-on: ubuntu-latest
1515
services:
1616
localstack:
17-
image: localstack/localstack:3
18-
env:
19-
SERVICES: s3,sns,sqs
17+
image: localstack/localstack:4
2018
ports:
2119
- 4566:4566
2220
steps:
23-
- uses: actions/checkout@v3
24-
- uses: actions/setup-node@v3
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-node@v4
2523
with:
2624
node-version-file: ".nvmrc"
2725
cache: npm
2826
cache-dependency-path: package.json
2927
- uses: ankane/setup-opensearch@v1
3028
with:
31-
opensearch-version: 2.13
29+
opensearch-version: 2.17
3230
- name: Upgrade npm
33-
run: npm install -g npm@8.19.4
31+
run: npm install -g npm@10
3432
- name: Install dependencies
3533
run: npm install
3634
- name: Eslint

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## Unreleased
99

10+
### Changed
11+
12+
- Update to default to OpenSearch 2.17
13+
1014
### Added
1115

1216
- Minimum implementation (basic-cql2 conformance class) of the filter extension for the

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,12 +1237,19 @@ npm run test
12371237
npm run build-api-docs # TODO: this fails
12381238
```
12391239

1240+
[npm-check-updates](https://www.npmjs.com/package/npm-check-updates) can be used for
1241+
updating version dependencies to newer ones. Run:
1242+
1243+
```commandline
1244+
ncu -i
1245+
```
1246+
12401247
### Running Locally
12411248

1242-
Before the API can be run, OpenSearch and Localstack need to be running. There is a `docker-compose.yml` file to simplify running OpenSearch locally:
1249+
Before the API can be run, OpenSearch and Localstack need to be running. There is a `compose.yml` file to simplify running OpenSearch locally:
12431250

12441251
```shell
1245-
docker-compose up -d
1252+
docker compose up -d
12461253
```
12471254

12481255
The API can then be run with:
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
version: "3.8"
21
services:
32
opensearch:
4-
image: opensearchproject/opensearch:2.13.0
3+
image: opensearchproject/opensearch:2.17.1
54
ports:
65
- "127.0.0.1:9200:9200"
76
- "127.0.0.1:9300:9300"
87
volumes:
98
- ./opensearch/config/opensearch.yml:/usr/share/opensearch/config/opensearch.yml
109
localstack:
11-
image: localstack/localstack:3
10+
image: localstack/localstack:4
1211
ports:
1312
- "127.0.0.1:4566:4566" # LocalStack Gateway
1413
- "127.0.0.1:4510-4559:4510-4559" # external services port range
15-
environment:
16-
- SERVICES=s3,sns,sqs

package-lock.json

Lines changed: 15 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"test:unit": "ava tests/unit/*.[tj]s",
2323
"typecheck": "tsc",
2424
"audit-prod": "npx better-npm-audit audit --production",
25+
"audit": "npx better-npm-audit audit",
2526
"deploy": "sls deploy",
2627
"sls-remove": "sls remove",
2728
"package": "sls package",
@@ -68,7 +69,7 @@
6869
"@aws-sdk/credential-provider-node": "^3.575.0",
6970
"@aws-sdk/s3-request-presigner": "^3.575.0",
7071
"@mapbox/extent": "^0.4.0",
71-
"@opensearch-project/opensearch": "^2.8.0",
72+
"@opensearch-project/opensearch": "^2.13.0",
7273
"@redocly/cli": "^1.12.2",
7374
"cors": "^2.8.5",
7475
"express": "^4.19.2",

serverless.example.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ resources:
184184
InstanceCount: 1
185185
DedicatedMasterEnabled: false
186186
ZoneAwarenessEnabled: false
187-
EngineVersion: OpenSearch_2.13
187+
EngineVersion: OpenSearch_2.17
188188
DomainEndpointOptions:
189189
EnforceHTTPS: true
190190
NodeToNodeEncryptionOptions:

0 commit comments

Comments
 (0)