/
docker-compose.yml
39 lines (37 loc) · 1.44 KB
/
docker-compose.yml
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
version: "3"
services:
notebook-samples-test:
container_name: notebook-samples
image: finbourne/notebook-runner2:latest
environment:
- FBN_LUSID_API_URL=${FBN_BASE_API_URL}/api
- FBN_LUMI_API_URL=${FBN_BASE_API_URL}/honeycomb
- FBN_LUSID_IDENTITY_URL=${FBN_BASE_API_URL}/identity
- FBN_LUSID_ACCESS_URL=${FBN_BASE_API_URL}/access
- FBN_DRIVE_API_URL=${FBN_BASE_API_URL}/drive
- FBN_NOTIFICATIONS_API_URL=${FBN_BASE_API_URL}/notifications
- FBN_SCHEDULER_API_URL=${FBN_BASE_API_URL}/scheduler2
- FBN_INSIGHTS_API_URL=${FBN_BASE_API_URL}/insights
- FBN_CONFIGURATION_API_URL=${FBN_BASE_API_URL}/configuration
- FBN_ACCESS_TOKEN
- FBN_TOKEN_URL
- FBN_USERNAME
- FBN_PASSWORD
- FBN_CLIENT_ID
- FBN_CLIENT_SECRET
- FBN_SECRETS_PATH
volumes:
- .:/usr/notebooks
entrypoint: /bin/bash
command:
- -ce
- |
pip config set global.disable-pip-version-check true
export FBN_NOTEBOOK_FOLDER=/usr/notebooks
cd $${FBN_NOTEBOOK_FOLDER}
pip install -r requirements.txt
# Get the (A)dded, (C)opied, (M)odified, (R)enamed, (T)ype changed file names
# between develop branch
# and tip of merge request
export GIT_DIFF=$$(git --git-dir=$${FBN_NOTEBOOK_FOLDER}/.git diff --name-only --diff-filter=ACMRT origin/develop..HEAD)
python /usr/src/nbrunner/main.py -f "$$GIT_DIFF" -d $$'\n'