forked from amazon-braket/amazon-braket-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
28 lines (27 loc) · 1.13 KB
/
buildspec.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
version: 0.2
phases:
install:
commands:
- echo Initializing docker daemon...
- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay&
- timeout 15 sh -c "until docker info; do echo .; sleep 1; done"
pre_build:
commands:
- echo Logging in to Amazon ECR...
- aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com
- pip install -r src/requirements.txt
- echo The following is only required if we use DLC images as our base 'FROM' images.
- aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 763104351884.dkr.ecr.us-east-1.amazonaws.com
build:
commands:
- echo Build started on `date`
- echo Building $FRAMEWORK framework...
- python src/main.py --buildspec $FRAMEWORK/buildspec.yml --framework $FRAMEWORK
post_build:
commands:
- echo Build step finished on `date`
artifacts:
files:
- $BUILD_RESULTS_PATH
name: BUILD_RESULTS
discard-paths: yes