Skip to content

Commit 7804ebe

Browse files
committed
Updated Docker and deploy to use the Native Lands Key
I had omitted it from the build by accident. It was included in the old build for Elastic Beanstalk, but I'd omitted it for AppRunner.
1 parent 5831490 commit 7804ebe

38 files changed

+6644
-5843
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
run: |
5656
ECR_REPOSITORY=${{ steps.login-ecr.outputs.registry }}/neoapi-${{ env.ENVIRONMENT }}
5757
IMAGE_TAG=${{ github.sha }}
58+
NATIVELANDKEY=${{ secrets.NATIVELANDKEY }}
5859
5960
echo "Building Docker image..."
6061
docker build -t $ECR_REPOSITORY:$IMAGE_TAG .

docker-compose.production.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ services:
1818
- DB_SSL=true
1919
- PORT=3001
2020
- API_URL=http://localhost:3001
21+
- NATIVELANDKEY=${NATIVELANDKEY}
2122
depends_on:
2223
- db-proxy
2324
networks:

docker-compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ services:
1818
- DB_SSL=true
1919
- PORT=3001
2020
- API_URL=http://localhost:3001
21+
- NATIVELANDKEY=${NATIVELANDKEY}
2122
depends_on:
2223
- db-proxy
2324
networks:

public/tests.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

public/tests.json

Lines changed: 6605 additions & 5808 deletions
Large diffs are not rendered by default.

test/v1.5-data-contacts-{contactid}-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const expect = chakram.expect;
77
describe('tests for /v1.5/data/contacts/{contactid}', function() {
88
describe('tests for get', function() {
99
it('should respond 200 for "Contact"', function() {
10-
const response = request('get', 'http://localhost:3001/v1.5/data/contacts/-54012195', {
10+
const response = request('get', 'http://localhost:3001/v1.5/data/contacts/500', {
1111
'time': true,
1212
});
1313

test/v1.5-data-geopoliticalunits-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('tests for /v1.5/data/geopoliticalunits', function() {
88
describe('tests for get', function() {
99
it('should respond 200 for "An array of geopolitical units."', function() {
1010
const response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits', {
11-
'qs': {'gpid': 5392, 'gpname': 'Canada', 'rank': 3, 'lower': true},
11+
'qs': {'gpid': 5392, 'gpname': 'Canada', 'rank': 4, 'lower': true},
1212
'time': true,
1313
});
1414

test/v1.5-data-geopoliticalunits-{gpid}-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const expect = chakram.expect;
77
describe('tests for /v1.5/data/geopoliticalunits/{gpid}', function() {
88
describe('tests for get', function() {
99
it('should respond 200 for "An array of geopolitical units."', function() {
10-
const response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits/957', {
10+
const response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits/3595', {
1111
'time': true,
1212
});
1313

test/v1.5-data-sites-{siteid}-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const expect = chakram.expect;
77
describe('tests for /v1.5/data/sites/{siteid}', function() {
88
describe('tests for get', function() {
99
it('should respond 200 for "An array of site elements."', function() {
10-
const response = request('get', 'http://localhost:3001/v1.5/data/sites/2633', {
10+
const response = request('get', 'http://localhost:3001/v1.5/data/sites/500', {
1111
'time': true,
1212
});
1313

test/v2.0-apps-constdb-datasetages-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('tests for /v2.0/apps/constdb/datasetages', function() {
88
describe('tests for get', function() {
99
it('should respond 200 for "Returns an ordered array (from earliest to latest) of upload counts by month (YYYY/MM/DD; all days as 01). Months with no uploads are excluded. "', function() {
1010
const response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasetages', {
11-
'qs': {'dbid': 15},
11+
'qs': {'dbid': 35},
1212
'time': true,
1313
});
1414

0 commit comments

Comments
 (0)