Skip to content

Commit

Permalink
Merge pull request #261 from bcgov/develop
Browse files Browse the repository at this point in the history
Version 2.1.0
  • Loading branch information
BrandonSharratt authored Dec 9, 2019
2 parents 60f96bf + d1ab801 commit 867450a
Show file tree
Hide file tree
Showing 97 changed files with 1,725 additions and 371 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,8 @@ venv.bak/
#Katalon
config/.metadata

minioTmp**
minioTmp**
.config
.ash_history
LOCAL.md
_tmp
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ matrix:
- |-
wget -q https://dl.minio.io/server/minio/release/linux-amd64/minio
chmod +x minio
export MINIO_ACCESS_KEY="myKey"
export MINIO_SECRET_KEY="mySecret"
export MINIO_ACCESS_KEY="accesskey"
export MINIO_SECRET_KEY="secretkey"
./minio server /tmp &
- |-
cd /home/travis/build/bcgov/OCWA/microservices/validateApi
Expand All @@ -197,6 +197,7 @@ matrix:
python3 wsgi.py &
- |-
cd /home/travis/build/bcgov/OCWA/microservices/requestApi
NODE_ENV=test npm start &
sleep 15
npm test
- helm lint helm/request-api
Expand Down
5 changes: 5 additions & 0 deletions frontend/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"__DEV__": true,
"FILES_API_HOST": true,
"SOCKET_HOST": true,
"REQUEST_SOCKET_HOST": true,
"VERSION": true,
"COMMIT": true,
"ID_FIELD": true,
Expand All @@ -29,6 +30,10 @@
},
"parser": "babel-eslint",
"rules": {
"no-param-reassign": [
"error",
{ "props": true, "ignorePropertyModificationsFor": ["socket"] }
],
"import/no-extraneous-dependencies": 0,
"no-underscore-dangle": ["error", { "allow": ["_id", "_e"] }],
"react/jsx-one-expression-per-line": 0
Expand Down
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:10-alpine
FROM node:11-alpine

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
Expand Down
8 changes: 7 additions & 1 deletion frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ Defaults to `ws://localhost:3001`
See [Request service config](../microservices/requestApi/config/default.json.example) for reference.
Defaults to `http://localhost:3002`

#### `requestSocket: url` `required`

See [Request service config](../microservices/requestApi/config/default.json.example) for reference.
Defaults to `ws://localhost:2998`


#### `filesApiHost: url` `required`

See [Storage service README](../microservices/storageApi/README.md) for reference.
Expand Down Expand Up @@ -199,7 +205,7 @@ You will need Docker installed. Build the container by running `$ docker build .
```sh
hostip=$(ifconfig en0 | awk '$1 == "inet" {print $2}')
port=8000
docker run -e TOKEN_ENDPOINT=<oidc token endpoint> -e USER_INFO_ENDPOINT=<oidc user info endpoint> -e AUTH_ENDPOINT=<authendpoint> -e AUTH_CALLBACK_URL=<host/auth> -e AUTH_CLIENT=<oidc client> -e AUTH_ISSUER=<oidc issuer> -e AUTH_LOGOUT_URL=<oidc logout url> -e AUTH_SCOPES="openid offline_access" -e CLIENT_SECRET=<YOUR_CLIENT_SECRET> -e JWT_SECRET=<YOUR_API_SECRET> -e COOKIE_SECRET=<COOKIE_SECRET> -e HOST=docker -e FORUM_API_HOST=$hostip:3000 -e EXPORTER_GROUP="/exporter" -e OC_GROUP="/oc" -e REPORTS_GROUP="/reports" -e EXPORTER_MODE="export" -e FORUM_SOCKET_HOST=$hostip:3001 -e REQUEST_API_HOST=$hostip:3002 -e FILES_API_HOST=$hostip:1080 -e USER_ID_FIELD=email -e PORT=$port --add-host=docker:$hostip -p $port:$port <DOCKER_IMAGE>
docker run -e TOKEN_ENDPOINT=<oidc token endpoint> -e USER_INFO_ENDPOINT=<oidc user info endpoint> -e AUTH_ENDPOINT=<authendpoint> -e AUTH_CALLBACK_URL=<host/auth> -e AUTH_CLIENT=<oidc client> -e AUTH_ISSUER=<oidc issuer> -e AUTH_LOGOUT_URL=<oidc logout url> -e AUTH_SCOPES="openid offline_access" -e CLIENT_SECRET=<YOUR_CLIENT_SECRET> -e JWT_SECRET=<YOUR_API_SECRET> -e COOKIE_SECRET=<COOKIE_SECRET> -e HOST=docker -e FORUM_API_HOST=$hostip:3000 -e EXPORTER_GROUP="/exporter" -e OC_GROUP="/oc" -e REPORTS_GROUP="/reports" -e EXPORTER_MODE="export" -e FORUM_SOCKET_HOST=$hostip:3001 -e REQUEST_API_HOST=$hostip:3002 -e REQUEST_SOCKET_HOST=$hostip:2998 -e FILES_API_HOST=$hostip:1080 -e USER_ID_FIELD=email -e PORT=$port --add-host=docker:$hostip -p $port:$port <DOCKER_IMAGE>
```

#### 3.3 Helm
Expand Down
1 change: 1 addition & 0 deletions frontend/config/test.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"forumApiHost": "localhost:3000",
"forumSocket": "localhost:3001",
"requestApiHost": "localhost:3002",
"requestSocket": "ws://localhost:2998",
"filesApiHost": "localhost:1080",
"exporterGroup": "/exporter",
"ocGroup": "/oc",
Expand Down
1 change: 1 addition & 0 deletions frontend/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ printf "\"helpURL\": \"${HELP_URL}\",\n" >> ./config/default.json
printf "\"forumApiHost\": \"${FORUM_API_HOST}\",\n" >> ./config/default.json
printf "\"forumSocket\": \"${FORUM_SOCKET_HOST}\",\n" >> ./config/default.json
printf "\"requestApiHost\": \"${REQUEST_API_HOST}\",\n" >> ./config/default.json
printf "\"requestSocket\": \"${REQUEST_SOCKET_HOST}\",\n" >> ./config/default.json
printf "\"filesApiHost\": \"${FILES_API_HOST}\",\n" >> ./config/default.json
printf "\"exporterGroup\": \"${EXPORTER_GROUP}\",\n" >> ./config/default.json
printf "\"ocGroup\": \"${OC_GROUP}\",\n" >> ./config/default.json
Expand Down
2 changes: 2 additions & 0 deletions frontend/helm/ocwa-frontend/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ spec:
value: "{{ .Values.forumSocket }}"
- name: REQUEST_API_HOST
value: "{{ .Values.requestApiHost }}"
- name: REQUEST_SOCKET_HOST
value: "{{ .Values.requestSocket }}"
- name: FILES_API_HOST
value: "{{ .Values.filesApiHost }}"
- name: EXPORTER_GROUP
Expand Down
1 change: 1 addition & 0 deletions frontend/helm/ocwa-frontend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ helpURL: "ocwaHelpURL"
forumApiHost: "ocwa-forum-api.ocwa"
forumSocket: "ocwa-forum-api.ocwa:3001"
requestApiHost: "ocwa-requests-api.ocwa"
requestSocket: "ocwa-request-api.ocwa:2998"
filesApiHost: "ocwa-storage-api-mongo.ocwa"
exporterGroup: "/exporter"
ocGroup: "/oc"
Expand Down
Loading

0 comments on commit 867450a

Please sign in to comment.