mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-03 07:04:18 -07:00
dockerize front end (#558)
* initial docker * adds concurrency to be able to run yarn install * adds 0.0.0.0 to allow docker access * adds web service * adds env variables * updates root path * adds volumes * adds docker to readme * adds score server client docker * docker updates after convo * speeds up build and removes env vars * adds client as volume * updates to docker setup * checkpoint * updates the docker file * adds .env.* files * replaces serve with http-server for cors Co-authored-by: Jorge Escobar <jorge.e.escobar@omb.eop.gov>
This commit is contained in:
parent
fba3090d36
commit
89c23faf7a
11 changed files with 113 additions and 30 deletions
|
@ -2,22 +2,21 @@ import {LngLatBoundsLike} from 'maplibre-gl';
|
|||
import {isMobile as isMobileReactDeviceDetect} from 'react-device-detect';
|
||||
import {defineMessages} from 'react-intl';
|
||||
|
||||
// URLS
|
||||
export const DOWNLOAD_ZIP_URL = 'https://justice40-data.s3.amazonaws.com/data-pipeline/data/score/downloadable/Screening+Tool+Data.zip';
|
||||
export const DOWNLOAD_ZIP_URL = [
|
||||
process.env.GATSBY_DATA_ROOT_PATH,
|
||||
process.env.GATSBY_DATA_PIPELINE_SCORE_PATH,
|
||||
process.env.GATSBY_SCORE_DOWNLOAD_FILE_PATH,
|
||||
].join('/');
|
||||
|
||||
// This is the URL for the origin S3 bucket:
|
||||
// export const ORIGIN_BASE_URL = 'https://justice40-data.s3.amazonaws.com';
|
||||
|
||||
// This is the URL for the CDN that delivers the tile data
|
||||
export const FEATURE_TILE_BASE_URL = 'https://d3jqyw10j8e7p9.cloudfront.net';
|
||||
const FEATURE_TILE_PATH = 'data-pipeline/data/score/tiles';
|
||||
|
||||
// This is the URL for the CDN that delivers the application
|
||||
// const APP_BASE_URL = 'https://d2zjid6n5ja2pt.cloudfront.net';
|
||||
const XYZ_SUFFIX = '{z}/{x}/{y}.pbf';
|
||||
|
||||
export const featureURLForTilesetName = (tilesetName :string ) : string => {
|
||||
return `${FEATURE_TILE_BASE_URL}/${FEATURE_TILE_PATH}/${tilesetName}/${XYZ_SUFFIX}`;
|
||||
return [
|
||||
process.env.GATSBY_DATA_ROOT_PATH,
|
||||
process.env.GATSBY_DATA_PIPELINE_SCORE_PATH,
|
||||
process.env.GATSBY_MAP_TILES_PATH,
|
||||
tilesetName,
|
||||
XYZ_SUFFIX,
|
||||
].join('/');
|
||||
};
|
||||
export const FEATURE_TILE_HIGH_ZOOM_URL = featureURLForTilesetName('high');
|
||||
export const FEATURE_TILE_LOW_ZOOM_URL = featureURLForTilesetName('low');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue