This repository was archived by the owner on Jun 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 1
1
version : 0.2
2
-
2
+ env :
3
+ variables :
4
+ DLC_IMAGES : " 515193369038.dkr.ecr.us-west-2.amazonaws.com/sagemaker-sparkml-serving:3.3"
5
+ IS_GENERIC_IMAGE : " True"
6
+ CODEBUILD_RESOLVED_SOURCE_VERSION : " sparkml-v33"
3
7
phases :
8
+ install :
9
+ runtime-versions :
10
+ python : latest
11
+ commands :
12
+ - pip3 install pytest
13
+ - pip3 install -r $CODEBUILD_SRC_DIR_Source2/src/requirements.txt
14
+ - pip3 install -r $CODEBUILD_SRC_DIR_Source2/test/requirements.txt
4
15
pre_build :
5
16
commands :
6
17
- echo Logging in to Amazon ECR...
@@ -9,11 +20,15 @@ phases:
9
20
commands :
10
21
- echo Build started on `date`
11
22
- echo Building the Docker image...
12
- - ls
13
23
- docker build -t sagemaker-sparkml-serving:3.3 .
14
- - docker tag sagemaker-sparkml-serving:3.3 515193369038.dkr.ecr.us-west-2.amazonaws.com/sagemaker-sparkml-serving:3.3
24
+ - docker tag sagemaker-sparkml-serving:3.3 $DLC_IMAGES
15
25
post_build :
16
26
commands :
17
27
- echo Build completed on `date`
18
28
- echo Pushing the Docker image...
19
- - docker push 515193369038.dkr.ecr.us-west-2.amazonaws.com/sagemaker-sparkml-serving:3.3
29
+ - echo $CODEBUILD_RESOLVED_SOURCE_VERSION
30
+ - docker push $DLC_IMAGES
31
+ - cd $CODEBUILD_SRC_DIR_Source2
32
+ - export PYTHONPATH=$(pwd)/src
33
+ - cd test/dlc_tests
34
+ - pytest -s sanity/test_ecr_scan.py::test_ecr_enhanced_scan
You can’t perform that action at this time.
0 commit comments