# This is a sample .condarc file.
# It adds the r Anaconda.org channel and enables
# the show_channel_urls option.

# channel locations. These override conda defaults, i.e., conda will
# search *only* the channels listed here, in the order given.
# Use "defaults" to automatically include all default channels.
# Non-url channels will be interpreted as Anaconda.org usernames
# (this can be changed by modifying the channel_alias key; see below).
# The default is just 'defaults'.
ssl_verify: {{ .Values.dockerImage.conda.ssl_verify }}

channels:
{{ if .Values.dockerImage.conda.use_defaults -}}
  - defaults
{{ else }}
{{ toYaml .Values.dockerImage.conda.default_mirrors | indent 2 }}
{{ end }}

# Use symlinks in python interpreter paths
{{ if .Values.dockerImage.conda.envs_dirs  }}
envs_dirs: 
{{ toYaml .Values.dockerImage.conda.envs_dirs | indent 2 }}
{{ end }}

{{ if .Values.dockerImage.conda.pkgs_dirs  }}
pkgs_dirs:
{{ toYaml .Values.dockerImage.conda.pkgs_dirs | indent 2 }}
{{ end }}

# Cache repodata information for faster envs creation/libs install
local_repodata_ttl: {{ .Values.dockerImage.conda.repo_data_ttl | default 43200 }}

# Show channel URLs when displaying what is going to be downloaded
# and in 'conda list'. The default is False.
show_channel_urls: True

# Conda commands should never automatically upgrade the conda version as we are parsing output from conda, it must always be fixed
auto_update_conda: False

{{ if .Values.dockerImage.conda.proxy.enabled }}
proxy_servers:
  {{ .Values.dockerImage.conda.proxy.protocol }}: {{ .Values.dockerImage.conda.proxy.url }}
{{ end }}

