Skip to content

Commit 9ef8483

Browse files
authored
Merge pull request #144 from bcgov/2.3.9
2.3.9
2 parents 36f470c + cf877f8 commit 9ef8483

9 files changed

+63
-36
lines changed

.pipeline/lib/config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use strict";
22
const options = require("@bcgov/pipeline-cli").Util.parseArguments();
33
const changeId = options.pr; // aka pull-request
4-
const version = "2.3.7";
4+
const version = "2.3.9";
55
const name = "transaction";
66

77
Object.assign(options.git, { owner: "ychung-mot", repository: "TransAction" });
@@ -26,7 +26,7 @@ const phases = {
2626
instance: `${name}-dev-${changeId}`,
2727
version: `${version}-${changeId}`,
2828
tag: `dev-${version}-${changeId}`,
29-
host: `transaction-${changeId}-55b94d-dev.apps.silver.devops.gov.bc.ca`,
29+
host: `transaction-55b94d-dev.apps.silver.devops.gov.bc.ca`,
3030
dotnet_env: "Development",
3131
transient: true,
3232
resources: {

.pipeline/package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/Dockerfile

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
FROM image-registry.openshift-image-registry.svc:5000/55b94d-tools/node:1 AS builder
1+
FROM image-registry.openshift-image-registry.svc:5000/55b94d-tools/node-python:1 AS builder
22
LABEL maintainer="[email protected]"
33

44
COPY . ./src
55

6-
RUN cd ./src && \
7-
apk add --no-cache --virtual .gyp \
8-
python \
9-
make \
10-
g++ && \
11-
npm ci && \
12-
npm run build
6+
RUN cd ./src && npm ci && npm run build
137

148
FROM image-registry.openshift-image-registry.svc:5000/55b94d-tools/nginx-116-rhel8:1
159

client/package-lock.json

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"@fortawesome/fontawesome-svg-core": "^1.2.30",
77
"@fortawesome/free-solid-svg-icons": "^5.14.0",
88
"@fortawesome/react-fontawesome": "^0.1.11",
9-
"axios": "^0.21.1",
9+
"axios": "^0.21.4",
1010
"bootstrap": "^4.5.2",
1111
"core-js": "^3.6.5",
1212
"http-proxy-middleware": "^1.0.5",

client/src/js/components/fragments/EventTeamStandings.js

+8-10
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ class EventTeamStandings extends React.Component {
1111
componentDidMount() {
1212
this.setState({ loading: true });
1313

14-
Promise.all([this.props.fetchTeamStandings(this.props.eventId), this.props.fetchTeams('', 0, 2147483647)]).then(
15-
() => {
16-
this.setState({ loading: false });
17-
}
18-
);
14+
Promise.all([
15+
this.props.fetchTeamStandings(this.props.eventId, 200),
16+
this.props.fetchTeams('', 0, 2147483647),
17+
]).then(() => {
18+
this.setState({ loading: false });
19+
});
1920
}
2021

2122
renderContent() {
@@ -61,14 +62,11 @@ class EventTeamStandings extends React.Component {
6162
}
6263
}
6364

64-
const mapStateToProps = state => {
65+
const mapStateToProps = (state) => {
6566
return {
6667
teamStandings: state.scores.teamStandings,
6768
teams: state.teams,
6869
};
6970
};
7071

71-
export default connect(
72-
mapStateToProps,
73-
{ fetchTeamStandings, fetchTeams }
74-
)(EventTeamStandings);
72+
export default connect(mapStateToProps, { fetchTeamStandings, fetchTeams })(EventTeamStandings);

openshift/api-build-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ objects:
1717
- annotations: null
1818
from:
1919
kind: DockerImage
20-
name: registry.redhat.io/dotnet/dotnet-31-rhel7:3.1-5
20+
name: registry.redhat.io/dotnet/dotnet-31-rhel7:3.1-24
2121
name: "3.1"
2222
referencePolicy:
2323
type: Local

openshift/client-build-config.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,41 @@ objects:
3636
name: "1"
3737
referencePolicy:
3838
type: Local
39+
- apiVersion: image.openshift.io/v1
40+
kind: ImageStream
41+
metadata:
42+
creationTimestamp: null
43+
labels:
44+
shared: "true"
45+
name: node-python
46+
spec:
47+
lookupPolicy:
48+
local: false
49+
- apiVersion: build.openshift.io/v1
50+
kind: BuildConfig
51+
metadata:
52+
creationTimestamp: null
53+
labels:
54+
build: node-python
55+
name: node-python
56+
spec:
57+
output:
58+
to:
59+
kind: ImageStreamTag
60+
name: node-python:1
61+
source:
62+
type: Dockerfile
63+
dockerfile: |
64+
FROM image-registry.openshift-image-registry.svc:5000/55b94d-tools/node:1 AS builder
65+
LABEL maintainer="[email protected]"
66+
RUN apk add --no-cache --virtual .gyp \
67+
python \
68+
make \
69+
g++
70+
strategy:
71+
dockerStrategy:
72+
noCache: true
73+
type: Docker
3974
- apiVersion: v1
4075
kind: ImageStream
4176
metadata:

openshift/client-deploy-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ objects:
9595
annotations:
9696
haproxy.router.openshift.io/timeout: 1h
9797
creationTimestamp: null
98-
name: ${NAME}${SUFFIX}
98+
name: ${NAME}-${ENV}
9999
spec:
100100
host: ${HOST}
101101
path: "/"

0 commit comments

Comments
 (0)