-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into feat/fine-tuning-6b
- Loading branch information
Showing
23 changed files
with
93 additions
and
518 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: mlflow-tracking | ||
toolchainRegion: us-east-1 | ||
forceDependencyRedeploy: true | ||
groups: | ||
- name: networking | ||
path: manifests/mlflow-tracking/networking-modules.yaml | ||
- name: storage | ||
path: manifests/mlflow-tracking/storage-modules.yaml | ||
- name: sagemaker-studio | ||
path: manifests/mlflow-tracking/sagemaker-studio-modules.yaml | ||
- name: images | ||
path: manifests/mlflow-tracking/images-modules.yaml | ||
- name: mlflow | ||
path: manifests/mlflow-tracking/mlflow-modules.yaml | ||
targetAccountMappings: | ||
- alias: primary | ||
accountId: | ||
valueFrom: | ||
envVariable: PRIMARY_ACCOUNT | ||
default: true | ||
regionMappings: | ||
- region: us-east-1 | ||
default: true |
2 changes: 1 addition & 1 deletion
2
...-experiments-tracking/images-modules.yaml → ...fests/mlflow-tracking/images-modules.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,21 @@ | ||
build_type: BUILD_GENERAL1_SMALL | ||
publishGenericEnvVariables: true | ||
|
||
deploy: | ||
phases: | ||
install: | ||
commands: | ||
- npm install -g [email protected] | ||
- pip install -r requirements.txt | ||
build: | ||
commands: | ||
- cdk deploy --require-approval never --progress events --app "python app.py" --outputs-file ./cdk-exports.json | ||
# Export metadata | ||
- seedfarmer metadata convert -f cdk-exports.json || true | ||
post_build: | ||
commands: | ||
- echo "Build successful" | ||
|
||
- aws ecr describe-repositories --repository-names ${SEEDFARMER_PARAMETER_ECR_REPOSITORY_NAME} || aws ecr create-repository --repository-name ${SEEDFARMER_PARAMETER_ECR_REPOSITORY_NAME} --image-scanning-configuration scanOnPush=true | ||
- export COMMIT_HASH=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7) | ||
- export IMAGE_TAG=${COMMIT_HASH:=latest} | ||
- export REPOSITORY_URI=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/${SEEDFARMER_PARAMETER_ECR_REPOSITORY_NAME} | ||
- aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com | ||
- echo Building the Docker image... | ||
- cd src/ && docker build -t $REPOSITORY_URI:latest . | ||
- docker tag $REPOSITORY_URI:latest $REPOSITORY_URI:$IMAGE_TAG | ||
- docker push $REPOSITORY_URI:latest && docker push $REPOSITORY_URI:$IMAGE_TAG | ||
- seedfarmer metadata add -k ImageUri -v $REPOSITORY_URI:latest | ||
destroy: | ||
phases: | ||
install: | ||
commands: | ||
- npm install -g [email protected] | ||
- pip install -r requirements.txt | ||
build: | ||
commands: | ||
- cdk destroy --force --app "python app.py" | ||
post_build: | ||
commands: | ||
- echo "Destroy successful" | ||
- aws ecr delete-repository --repository-name ${SEEDFARMER_PARAMETER_ECR_REPOSITORY_NAME} --force | ||
# build_type: BUILD_GENERAL1_LARGE |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
AWSTemplateFormatVersion: 2010-09-09 | ||
Description: This stack deploys a Module specific IAM permissions | ||
|
||
Parameters: | ||
# DeploymentName: | ||
# Type: String | ||
# Description: The name of the deployment | ||
# ModuleName: | ||
# Type: String | ||
# Description: The name of the Module | ||
RoleName: | ||
Type: String | ||
Description: The name of the IAM Role | ||
ECRRepositoryName: | ||
Type: String | ||
Description: The name of the ECR repository | ||
|
||
Resources: | ||
Policy: | ||
Type: "AWS::IAM::Policy" | ||
Properties: | ||
PolicyDocument: | ||
Statement: | ||
- Effect: Allow | ||
Action: | ||
- "ecr:Describe*" | ||
- "ecr:Get*" | ||
- "ecr:List*" | ||
Resource: "*" | ||
- Action: | ||
- "ecr:Create*" | ||
- "ecr:Delete*" | ||
- "ecr:*LayerUpload" | ||
- "ecr:UploadLayerPart" | ||
- "ecr:Batch*" | ||
- "ecr:Put*" | ||
Effect: Allow | ||
Resource: | ||
- !Sub "arn:${AWS::Partition}:ecr:${AWS::Region}:${AWS::AccountId}:repository/${ECRRepositoryName}" | ||
Version: 2012-10-17 | ||
PolicyName: "modulespecific-policy" | ||
Roles: [!Ref RoleName] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.