-
Notifications
You must be signed in to change notification settings - Fork 9
/
caldp-setup
executable file
·57 lines (42 loc) · 1.94 KB
/
caldp-setup
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
#! /bin/bash
# Add caldp development and config scripts to PATH
export PATH=`pwd`/scripts:${PATH}
# Define the exact version of reference files you want to use.
# Specify "hst-operational" if you want it defined automatically
# by the CRDS server and/or cache.
export CRDS_CONTEXT=hst_1169.pmap
# Version of stsci/hst-pipeline base image to use
export BASE_IMAGE_TAG=2024.10.1.1-mostlycos-py311
# Docker repo
#
# export CALDP_IMAGE_REPO=218835028644.dkr.ecr.us-east-1.amazonaws.com/caldp-sb
export CALDP_IMAGE_REPO=alphasentaurii/caldp
# Docker image tag
export CALDP_IMAGE_TAG=latest
# The host directory specified by CALDP_HOME is mounted r/w in the container
# during development over /home/developer.
# Use "none" to avoid r/w mount of storage into Docker
# export CALDP_HOME="none"
export CALDP_HOME=`pwd`
# Primarily configures CRDS to work based on:
# local cache of reference files in /grp/crds/cache, VPN, no server
# export CALDP_CONFIG=caldp-config-onsite
# S3 copies of references files, no server
# export CALDP_CONFIG=caldp-config-aws
# dynamic downloads of CRDS files, requires server
export CALDP_CONFIG=caldp-config-offsite
# When configured -offsite, it pays to mount a CRDS cache into Docker which
# either avoids or caches CRDS file downloads for reuse.
export CRDS_PATH=$HOME/crds_cache
# Fail if code coverage is below this number
export CALDP_COVERAGE=70
# vvvvvvvvvvvvvv unlikely to change vvvvvvvvvvvvvvvvvvvvvvvvv
# Base image with CALDP package and fitscut added.
export CALDP_DOCKER_IMAGE=${CALDP_IMAGE_REPO}:${CALDP_IMAGE_TAG}
# Fundamental calibration s/w image CALDP image inherits from
export CAL_BASE_IMAGE=stsci/hst-pipeline:${BASE_IMAGE_TAG}
# The root of the git clone, don't change this, scripts cd here
export CALDP_CLONE=`pwd`
# --------------------------------------------------------------
# Add stupid little conveniences as aliases here instead of script files
alias caldp-bnt="caldp-image-build && caldp-test"