Skip to content

Commit

Permalink
Update RW API integration lib to 5.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagojsag committed Aug 8, 2023
1 parent 146af4a commit 8123990
Show file tree
Hide file tree
Showing 8 changed files with 937 additions and 150 deletions.
1 change: 1 addition & 0 deletions app/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ app.use(RWAPIMicroservice.bootstrap({
requireAPIKey: process.env.REQUIRE_API_KEY || true,
awsRegion: process.env.AWS_REGION,
awsCloudWatchLogStreamName: config.get('service.name'),
awsCloudWatchLoggingEnabled: process.env.AWS_CLOUD_WATCH_LOGGING_ENABLED || true,
}));

loader.loadRoutes(app);
Expand Down
3 changes: 3 additions & 0 deletions docker-compose-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ services:
GOOGLE_APPLICATION_CREDENTIALS: /opt/query/storage.json
BUCKET_FREEZE: query-freeze
FASTLY_ENABLED: "false"
AWS_REGION: "us-east-1"
AWS_ACCESS_KEY_ID: "test"
AWS_SECRET_ACCESS_KEY: "test"

command: develop
volumes:
Expand Down
6 changes: 3 additions & 3 deletions k8s/dev/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ spec:
secretKeyRef:
key: AWS_REGION
name: mssecrets
- name: AWS_API_KEY_USAGE_PLAN_ID
- name: REQUIRE_API_KEY
valueFrom:
secretKeyRef:
key: AWS_API_KEY_USAGE_PLAN_ID
name: mssecrets
key: REQUIRE_API_KEY
name: authorization
image: vizzuality/query
imagePullPolicy: Always
livenessProbe:
Expand Down
6 changes: 3 additions & 3 deletions k8s/production/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ spec:
secretKeyRef:
key: AWS_REGION
name: mssecrets
- name: AWS_API_KEY_USAGE_PLAN_ID
- name: REQUIRE_API_KEY
valueFrom:
secretKeyRef:
key: AWS_API_KEY_USAGE_PLAN_ID
name: mssecrets
key: REQUIRE_API_KEY
name: authorization
image: vizzuality/query
imagePullPolicy: Always
livenessProbe:
Expand Down
6 changes: 3 additions & 3 deletions k8s/staging/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ spec:
secretKeyRef:
key: AWS_REGION
name: mssecrets
- name: AWS_API_KEY_USAGE_PLAN_ID
- name: REQUIRE_API_KEY
valueFrom:
secretKeyRef:
key: AWS_API_KEY_USAGE_PLAN_ID
name: mssecrets
key: REQUIRE_API_KEY
name: authorization
image: vizzuality/query
imagePullPolicy: Always
livenessProbe:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"author": {
"name": "Vizzuality",
"email": "[email protected]",
"url": "http://vizzuality.com/"
"url": "https://vizzuality.com/"
},
"engines": {
"node": "~20.4"
Expand Down Expand Up @@ -62,7 +62,7 @@
"koa-simple-healthcheck": "^0.0.1",
"request": "2.88.0",
"request-promise": "4.2.2",
"rw-api-microservice-node": "5.0.0-rc.6",
"rw-api-microservice-node": "^5.1.1",
"sql2json": "2.0.6"
},
"lint-staged": {
Expand Down
6 changes: 0 additions & 6 deletions query.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
#!/bin/bash

case "$1" in
test-e2e)
yarn run test-e2e
;;
test-unit)
yarn run test-unit
;;
start)
yarn start
;;
Expand Down
Loading

0 comments on commit 8123990

Please sign in to comment.