before_build.sh 665 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash

source _ci/functions.sh

# Makes sure we activate the base environment if available
run_cmd source ${CONDA_ROOT}/etc/profile.d/conda.sh
run_cmd conda activate base
export_env PATH

# installs the base conda environment
11
run_cmd conda env create -f dev.yml
12
13
14
15
16
conda activate beat-web

# runs buildout
run_cmd buildout

17
18
19
20
# pull docker images
destdir="$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd)"
check_env destdir

21
run_cmd curl -o ${destdir}/_core_docker_pull.sh --silent "https://gitlab.idiap.ch/beat/beat.core/raw/1.7.x/scripts/docker_pull.sh"
22
23
run_cmd chmod 755 ${destdir}/_core_docker_pull.sh
run_cmd ${destdir}/_core_docker_pull.sh