diff --git a/Dockerfile b/Dockerfile index 5beb2be..9352901 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,3 +2,9 @@ FROM python:3.9 RUN apt-get update -y ; apt-get install -y nano netcdf-bin RUN pip install xarray netcdf4 numpy scipy pymongo shapely geopy argovisHelpers +WORKDIR /app +COPY populate-AR.py populate-AR.py +COPY loaddata.sh loaddata.sh +COPY parameters/basinmask_01.nc parameters/basinmask_01.nc +RUN chown -R 1000660000 /app + diff --git a/loaddata.sh b/loaddata.sh new file mode 100644 index 0000000..07c88df --- /dev/null +++ b/loaddata.sh @@ -0,0 +1,23 @@ +# python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2000.nc +# python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2001.nc +# python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2002.nc +# python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2003.nc +# python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2004.nc +python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2005.nc +python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2006.nc +python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2007.nc +python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2008.nc +python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2009.nc +# python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2010.nc +# python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2011.nc +# python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2012.nc +# python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2013.nc +# python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2014.nc +# python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2015.nc +# python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2016.nc +# python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2017.nc +# python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2018.nc +# python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2019.nc +# python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2020.nc +# python populate-AR.py /tmp/Rutz_ARCatalog_MERRA2_2021.nc + diff --git a/pod.yaml b/pod.yaml new file mode 100644 index 0000000..c818b1f --- /dev/null +++ b/pod.yaml @@ -0,0 +1,28 @@ +apiVersion: v1 +kind: Pod +metadata: + name: ar-sync + labels: + tier: api +spec: + volumes: + - name: ar + persistentVolumeClaim: + claimName: ar + containers: + - name: schema + imagePullPolicy: Always + image: argovis/ar-sync:dev + command: ['sleep', '1000000'] + #command: ['bash', 'loaddata.sh'] + volumeMounts: + - mountPath: "/tmp" + name: ar + resources: + requests: + memory: "0Gi" + cpu: "0m" + limits: + memory: 1Gi + cpu: 1000m + restartPolicy: Never \ No newline at end of file