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
from dateutil import rrule | |
from datetime import datetime | |
def get_selection_profiles_loop(start, end, shape, pres): | |
now = datetime.strptime(start, "%Y-%m-%d") | |
later = datetime.strptime(end, "%Y-%m-%d") | |
previous = start | |
profiles = [] |
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
FROM python:3.6 | |
WORKDIR /usr/src/argo-database | |
COPY ./requirements.txt ./requirements.txt | |
RUN apt-get update && \ | |
apt-get --assume-yes install libhdf5-serial-dev netcdf-bin libnetcdf-dev nano | |
RUN pip install -r requirements.txt | |
RUN pip install wget==3.2 |
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
from wodpy import wod | |
def find_instrument_code(profile, varcode): | |
''' | |
given a wodpy profile and a variable code varcode as defined in table 3 of [reference 1], | |
return the instrument code from [reference 2] associated with this measurement, if it is available; | |
if not, return None. | |
[reference 1]: https://www.ncei.noaa.gov/data/oceans/woa/WOD/DOC/wodreadme.pdf | |
[reference 2]: https://www.ncei.noaa.gov/data/oceans/woa/WOD/CODES/PDF/v_5_instrument.pdf | |
''' |
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
--- | |
apiVersion: policy/v1beta1 | |
kind: PodSecurityPolicy | |
metadata: | |
name: psp.flannel.unprivileged | |
annotations: | |
seccomp.security.alpha.kubernetes.io/allowedProfileNames: docker/default | |
seccomp.security.alpha.kubernetes.io/defaultProfileName: docker/default | |
apparmor.security.beta.kubernetes.io/allowedProfileNames: runtime/default | |
apparmor.security.beta.kubernetes.io/defaultProfileName: runtime/default |
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
--- | |
# Source: calico/templates/calico-config.yaml | |
# This ConfigMap is used to configure a self-hosted Calico installation. | |
kind: ConfigMap | |
apiVersion: v1 | |
metadata: | |
name: calico-config | |
namespace: kube-system | |
data: | |
# Typha is disabled. |
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
import io, pickle, sqlite3, sys, pandas | |
import numpy as np | |
def parse(results): | |
return results.apply(unpack_qc) | |
def unpack_qc(value): | |
print(value, type(value)) | |
qc = np.load(io.BytesIO(value)) |
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
version: "3.6" | |
services: | |
database: | |
environment: | |
POSTGRES_DB: ddev | |
POSTGRES_PASSWORD_FILE: /run/secrets/postgres-password | |
image: ${dockerID}/ddev_db | |
build: | |
context: database |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: bb-database | |
namespace: default | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
bb: db |
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
version: '3.7' | |
services: | |
bb-db: | |
image: ${dockerId}/bb-db:v2 | |
networks: | |
- bb-net | |
volumes: | |
- sqlbackup:/var/opt/mssql |
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
version: '3.7' | |
services: | |
bb-app: | |
image: ${dockerId}/bb-app:v2 | |
networks: | |
- bb-net | |
bb-db: | |
image: ${dockerId}/bb-db:v2 | |
networks: |
NewerOlder