File tree 6 files changed +22
-32
lines changed
6 files changed +22
-32
lines changed Original file line number Diff line number Diff line change
1
+
2
+
1
3
# Build the react frontend
2
4
FROM node:18-alpine
3
5
@@ -13,25 +15,23 @@ COPY viewer/index.html ./index.html
13
15
COPY viewer/public ./public
14
16
COPY viewer/src ./src
15
17
18
+ ARG ROOT_PATH=/xreds/
19
+ ENV VITE_XREDS_BASE_URL=${ROOT_PATH}
16
20
RUN npm run build
17
21
18
22
# Build the python service layer
19
23
FROM public.ecr.aws/b1r9q1p5/rps-matplotlib:latest
20
24
21
25
# Native dependencies
22
- RUN dnf -y install \
23
- gcc \
24
- gcc-c++ \
25
- make \
26
+ RUN apt-get update && apt-get install -y \
26
27
git \
27
- gcc-gfortran \
28
- openblas-devel \
29
- geos-devel \
30
- netcdf-devel \
31
- proj-devel \
32
- udunits2-devel \
33
- eccodes-devel
34
- # RUN apt-get install -y git libc-dev gcc g++ libffi-dev build-essential libudunits2-dev libgdal-dev libnetcdf-dev libeccodes-dev libgeos-dev cmake libopenblas-dev
28
+ libhdf5-dev \
29
+ libopenblas-dev \
30
+ libgeos-dev \
31
+ libnetcdf-dev \
32
+ libproj-dev \
33
+ libudunits2-dev \
34
+ libeccodes-dev
35
35
36
36
# Create a folder for the app to live in
37
37
RUN mkdir -p /opt/xreds
@@ -64,17 +64,8 @@ COPY --from=0 /opt/viewer/dist ./viewer/dist
64
64
65
65
# Set the port to run the server on
66
66
ENV PORT 8090
67
- ENV ROOT_PATH "/xreds/"
68
-
69
- RUN dnf -y remove \
70
- wget \
71
- make \
72
- gcc \
73
- gcc-c++ \
74
- git \
75
- && dnf autoremove -y \
76
- && dnf clean dbcache \
77
- && dnf clean all
67
+ ARG ROOT_PATH=/xreds/
68
+ ENV ROOT_PATH ${ROOT_PATH}
78
69
79
70
# Run the webserver
80
71
CMD ["sh" , "-c" , "gunicorn --workers=1 --worker-class=uvicorn.workers.UvicornWorker --log-level=debug --bind=0.0.0.0:${PORT} app:app" ]
Original file line number Diff line number Diff line change @@ -35,6 +35,6 @@ scipy==1.13.0
35
35
kerchunk@git+https://github.com/fsspec/kerchunk@8d8e84c619a63d4372b33b05c9bfe35fdcb6e61d
36
36
xpublish-opendap@git+https://github.com/xpublish-community/xpublish-opendap@6020c0464f9b7f872f4307dab9d7c97d5d981387
37
37
xpublish-wms@git+https://github.com/xpublish-community/xpublish-wms@9574a71405e43c479b7ebcfa1e5d0def04c598d5
38
- xpublish-edr@git+https://github.com/xpublish-community/xpublish-edr@0a4505b30696dec30dc95e0ffe12ea6b598930d7
38
+ xpublish-edr@git+https://github.com/xpublish-community/xpublish-edr@019e53acd2e0ad5a1d909d1acfe9863f2e90e51b
39
39
opendap-protocol < 1.2.0
40
40
xarray-subset-grid@git+https://github.com/asascience-open/xarray-subset-grid@81ce464b6357e7353deaaf350ad1be22295d238e
Original file line number Diff line number Diff line change 5
5
"type" : " module" ,
6
6
"scripts" : {
7
7
"dev" : " vite" ,
8
- "build" : " tsc && vite build" ,
8
+ "check" : " tsc --noEmit" ,
9
+ "build" : " vite build" ,
9
10
"preview" : " vite preview"
10
11
},
11
12
"dependencies" : {
Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ const router = createBrowserRouter([
19
19
element : < SubsetTool /> ,
20
20
errorElement : < ErrorPage /> ,
21
21
} ,
22
- ] ) ;
22
+ ] , {
23
+ basename : import . meta. env . VITE_XREDS_BASE_URL ,
24
+ } ) ;
23
25
24
26
const queryClient = new QueryClient ( ) ;
25
27
Original file line number Diff line number Diff line change @@ -418,6 +418,7 @@ function App() {
418
418
{ datasets . at ( i ) ?. isFetched && (
419
419
< >
420
420
< a
421
+ target = "_blank"
421
422
href = { `/datasets/${ datasetIds . data . at ( i ) } /` }
422
423
>
423
424
< MaterialIcon
Original file line number Diff line number Diff line change @@ -6,16 +6,11 @@ import Map from '../components/map';
6
6
import '@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css' ;
7
7
import MapboxDraw from '@mapbox/mapbox-gl-draw' ;
8
8
9
- import {
10
- useDatasetIdsQuery ,
11
- useDatasetMetadataQuery ,
12
- useDatasetsQuery ,
13
- } from '../query/datasets' ;
14
9
import Spinner from '../components/spinner' ;
15
10
import { useQuery } from '@tanstack/react-query' ;
16
- import MaterialIcon from '../components/material_icon' ;
17
11
import CopyUrl from '../components/copy_url' ;
18
12
import { useSearchParams } from 'react-router-dom' ;
13
+ import { useDatasetIdsQuery } from '../query/datasets' ;
19
14
20
15
const useExportThreshold = ( ) =>
21
16
useQuery ( {
You can’t perform that action at this time.
0 commit comments