Skip to content

Commit e4f2f70

Browse files
authored
Merge pull request #31 from testdrivenio/updates
Updates
2 parents 7c27d4e + 8ed6d30 commit e4f2f70

34 files changed

+25022
-3399
lines changed

buildspec.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ version: 0.2
33
env:
44
variables:
55
AWS_REGION: "us-west-1"
6-
REACT_APP_API_SERVICE_URL: "http://flask-react-alb-828458753.us-west-1.elb.amazonaws.com"
6+
REACT_APP_API_SERVICE_URL: "http://flask-react-alb-1132421372.us-west-1.elb.amazonaws.com"
77

88
phases:
9-
install:
10-
runtime-versions:
11-
docker: 18
129
pre_build:
1310
commands:
1411
- echo logging in to ecr...
15-
- $(aws ecr get-login --no-include-email --region $AWS_REGION)
12+
- >
13+
aws ecr get-login-password --region $AWS_REGION \
14+
| docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com
1615
- |
1716
if expr "$CODEBUILD_WEBHOOK_TRIGGER" == "branch/master" >/dev/null && expr "$CODEBUILD_WEBHOOK_HEAD_REF" == "refs/heads/master" >/dev/null; then
1817
DOCKER_TAG=prod

services/client/.eslintrc.json

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,34 @@
11
{
2-
"parser": "babel-eslint",
3-
"parserOptions": {
4-
"ecmaVersion": 2018,
5-
"ecmaFeatures": {
6-
"jsx": true
7-
},
8-
"sourceType": "module"
2+
"parser": "babel-eslint",
3+
"parserOptions": {
4+
"ecmaVersion": 2018,
5+
"ecmaFeatures": {
6+
"jsx": true
97
},
10-
"settings": {
11-
"react": {
12-
"version": "16.0"
13-
}
14-
},
15-
"plugins": [
16-
"react"
17-
],
18-
19-
"extends": [
20-
"standard-jsx"
21-
],
22-
"rules": {
23-
"react/jsx-no-bind": ["error", {
24-
"allowArrowFunctions": true,
25-
"allowBind": false,
26-
"ignoreRefs": true
27-
}],
28-
"react/no-did-update-set-state": "error",
29-
"react/no-unknown-property": "error",
30-
"react/no-unused-prop-types": "error",
31-
"react/react-in-jsx-scope": "error",
32-
"jsx-quotes": "off",
33-
"react/jsx-indent": "off"
8+
"sourceType": "module"
9+
},
10+
"settings": {
11+
"react": {
12+
"version": "16.0"
3413
}
14+
},
15+
"plugins": [
16+
"react"
17+
],
18+
"extends": [
19+
"standard-jsx"
20+
],
21+
"rules": {
22+
"react/jsx-no-bind": ["error", {
23+
"allowArrowFunctions": true,
24+
"allowBind": false,
25+
"ignoreRefs": true
26+
}],
27+
"react/no-did-update-set-state": "error",
28+
"react/no-unknown-property": "error",
29+
"react/no-unused-prop-types": "error",
30+
"react/react-in-jsx-scope": "error",
31+
"jsx-quotes": "off",
32+
"react/jsx-indent": "off"
3533
}
34+
}

services/client/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# pull official base image
2-
FROM node:15.2.0-alpine
2+
FROM node:16-alpine
33

44
# set working directory
55
WORKDIR /usr/src/app
@@ -11,7 +11,7 @@ ENV PATH /usr/src/app/node_modules/.bin:$PATH
1111
COPY package.json .
1212
COPY package-lock.json .
1313
RUN npm ci
14-
14+
RUN npm install [email protected].3 -g --silent
1515

1616
# start app
1717
CMD ["npm", "start"]

services/client/Dockerfile.prod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
###########
44

55
# pull official base image
6-
FROM node:15.2.0-alpine as builder
6+
FROM node:16-alpine as builder
77

88
# set working directory
99
WORKDIR /usr/src/app
@@ -15,7 +15,7 @@ ENV PATH /usr/src/app/node_modules/.bin:$PATH
1515
COPY package.json .
1616
COPY package-lock.json .
1717
RUN npm ci
18-
RUN npm install [email protected].0 --silent
18+
RUN npm install [email protected].3 --silent
1919

2020

2121
# set environment variables
@@ -34,7 +34,7 @@ RUN npm run build
3434
#########
3535

3636
# base image
37-
FROM nginx:1.19.4-alpine
37+
FROM nginx:stable-alpine
3838

3939
# update nginx conf
4040
RUN rm -rf /etc/nginx/conf.d

0 commit comments

Comments
 (0)