-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: dgboss <[email protected]>
- Loading branch information
Showing
9 changed files
with
17,786 additions
and
12,622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,21 +5,27 @@ | |
# the cpu pool size to something realistic. | ||
ARG NODE_OPTIONS="--v8-pool-size=4" | ||
|
||
# PHASE 1 - build static html. | ||
# PHASE 1 - build frontend. | ||
# Pull from local registry - we can't pull from docker due to limits. | ||
# see https://catalog.redhat.com/software/containers/ubi8/nodejs-14/5ed7887dd70cc50e69c2fabb for | ||
# see https://catalog.redhat.com/software/containers/ubi9/nodejs-20/64770ac7a835530172eee6a9 for | ||
# details | ||
FROM registry.access.redhat.com/ubi9/nodejs-20 as static | ||
|
||
# Switch to root user for package installs | ||
USER 0 | ||
|
||
ADD web . | ||
# NOTE: Can't use "--production=true", build will fail. | ||
RUN npm install -g [email protected] | ||
RUN npm config set @psu:registry https://artifacts.developer.gov.bc.ca/artifactory/api/npm/pe1e-psu-npm-local/ | ||
RUN npm config set //artifacts.developer.gov.bc.ca/artifactory/api/npm/pe1e-psu-npm-local/:_authToken ${ARTIFACTORY_SVCACCT_TOKEN} | ||
RUN npm install -g yarn@latest && yarn install --frozen-lockfile | ||
COPY web/package.json . | ||
COPY web/yarn.lock . | ||
COPY web/.yarnrc.yml . | ||
# do install first so it will be cached | ||
RUN npm install -g --ignore-scripts corepack | ||
RUN corepack enable | ||
RUN yarn set version berry | ||
RUN yarn config set npmScopes.psu.npmRegistryServer https://artifacts.developer.gov.bc.ca/artifactory/api/npm/pe1e-psu-npm-local/ | ||
RUN yarn config set npmScopes.psu.npmAlwaysAuth true | ||
RUN yarn config set npmScopes.psu.npmAuthToken ${ARTIFACTORY_SVCACCT_TOKEN} | ||
RUN CYPRESS_INSTALL_BINARY=0 yarn install --immutable | ||
COPY web . | ||
RUN yarn run build:prod | ||
|
||
# Remove sourcemaps after they've been uploaded to sentry | ||
|
@@ -28,7 +34,7 @@ RUN rm build/static/js/**.map | |
# Switch back to default user | ||
USER 1001 | ||
|
||
# # PHASE 2 - prepare hosting. | ||
# PHASE 2 - prepare hosting. | ||
# https://catalog.redhat.com/software/containers/ubi8/nginx-120/6156abfac739c0a4123a86fd | ||
FROM registry.access.redhat.com/ubi8/nginx-120 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
|
||
# Sentry Config File | ||
.sentryclirc | ||
.pnp.* | ||
.yarn/* | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ | |
"lodash": "^4.17.21", | ||
"luxon": "^3.0.2", | ||
"match-sorter": "^6.3.1", | ||
"nyc": "^17.0.0", | ||
"ol": "9.2.4", | ||
"ol-pmtiles": "^0.5.0", | ||
"prettier": "^3.3.3", | ||
|
@@ -125,5 +126,6 @@ | |
"src/serviceWorker.ts", | ||
"src/app/store.ts" | ||
] | ||
} | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
Oops, something went wrong.