forked from openshift/ocm-container
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.source.sample
More file actions
60 lines (51 loc) · 2.1 KB
/
env.source.sample
File metadata and controls
60 lines (51 loc) · 2.1 KB
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
59
60
### Select container subsystem, options include:
### - "docker"
### - "sudo docker"
### - "podman"
### How its used:
### build.sh: time ${CONTAINER_SUBSYS} build
### ocm-container.sh: ${CONTAINER_SUBSYS} run -it --rm
# REQUIRED: change this env to containerization tool
export CONTAINER_SUBSYS="sudo docker"
### Select cli, options include:
### - "ocm"
### - "rosa"
### defaults to "ocm"
export CLI=${CLI:-}
### The Url in which you want your ocm queries to go to
### you can use 'staging' or 'integration'
###
### for more information see `ocm login -h`
export OCM_URL=${OCM_URL:-}
### Your user for ocm, passed to ocm
# REQUIRED: change this env to your local user
export OCM_USER=${OCM_USER:-your_user}
### Default namespace for velero
# set this if you want to change the default velero namespace in container.
# export DEFAULT_VELERO_NS=openshift-velero
### Your ocm Offline Access Token from
### https://cloud.redhat.com/openshift/token
# REQUIRED: change this env to offline token
export OFFLINE_ACCESS_TOKEN="\
your \
token \
here \
"
### OPS_UTILS_DIR
### The OPS_UTILS_DIR setting is an absolute path to any necessary scripts you wish
### to have automatically mounted into your container. This is mounted in the
### `/root/sop-utils` directory in the container, and you can optionally add that to
### the path below if you wish
# export OPS_UTILS_DIR=/Users/myuser/path/to/ops-sop/v4/utils
### OPS_UTILS_DIR_RW is a boolean flag to allow mounting the ops-sop directory as
### read/write instead of the default readonly. This is useful when debugging or
### writing a script.
# export OPS_UTILS_DIR_RW=true
### SCRATCH_DIR
### the SCRATCH_DIR setting is used to mount an optional scratch directory into your container.
### This will be mounted under /home/scratch
# export SCRATCH_DIR='/home/myuser/ocm-scratch-dir/'
### Configure the PATH variable inside the container
### the ${HOME}/.config/ocm-contianer is mounted to the container at /root/.config/ocm-container
### this can be used to add additional tooling to the container without modifying the dockerfile
# export PATH=${PATH}:/root/.config/ocm-container/bin