-
Notifications
You must be signed in to change notification settings - Fork 3
/
cloudbuild-tiles.yaml
58 lines (51 loc) · 1.6 KB
/
cloudbuild-tiles.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
steps:
- name: gcr.io/cloud-builders/gsutil
id: 'download-netcdfs'
entrypoint: '/bin/bash'
args:
- "-c"
- "mkdir /data/netcdfs && gsutil -m cp -r gs://esa-cfs-cate-data/${_LAYER_ID}/*.nc /data/netcdfs/"
- name: gcr.io/esa-climate-from-space/cate:latest
id: 'cate-export-data-cube'
entrypoint: '/bin/bash'
args:
- "-c"
- "conda run -n cate-env python data/write-zarr.py --layer ${_LAYER_ID} --variable ${_VARIABLE_ID} --zoom-levels ${_ZOOM_LEVELS} --min ${_MIN} --max ${_MAX} --output /data/dataset.zarr"
- name: gcr.io/esa-climate-from-space/xcube:latest
id: 'xcube-generate-full-images'
entrypoint: '/bin/bash'
args:
- "-c"
- "conda run -n xcube xcube tile --verbose --config ./style.yaml --style cfs --output /data/images /data/dataset.zarr"
- name: dpokidov/imagemagick:latest-stretch
id: 'imagemagick-resize'
entrypoint: '/bin/bash'
args:
- "./data/resize-images.sh"
- name: geographica/gdal2:2.4.0
id: 'gdal-generate-tiles'
entrypoint: '/bin/bash'
args:
- "./data/gdal-tiles.sh"
- "${_ZOOM_LEVELS}"
- name: gcr.io/esa-climate-from-space/tile-mover
id: 'prepare-upload'
entrypoint: '/bin/bash'
args:
- "./data/prepare-tile-upload.sh"
- "${_VARIABLE_ID}"
- "${_LAYER_ID}"
- name: gcr.io/cloud-builders/gsutil
id: 'upload-to-storage'
args:
- "-m"
- "-q"
- "cp"
- "-r"
- "/data/upload/${_LAYER_ID}/*"
- "gs://esa-cfs-tiles/${_VERSION}/${_LAYER_ID}/"
options:
diskSizeGb: 50
volumes:
- name: 'vol1'
path: '/data'