File tree Expand file tree Collapse file tree 3 files changed +29
-57
lines changed
phala-cloud-prelaunch-script
prelaunch-script-private-registry Expand file tree Collapse file tree 3 files changed +29
-57
lines changed Original file line number Diff line number Diff line change 1+ # Default Pre-launch script of Phala Cloud
2+
3+ ## Overview
4+
5+ This pre-launch script for Phala Cloud handles:
6+
7+ - Pull private images from Docker Hub
8+ - Pull private images from AWS ECR
9+ - Remove unused images and containers from local disk
10+ - Expose App ID via ` DSTACK_APP_ID ` environment variable
11+
12+ ## Private registry support
13+
14+ ### Docker Hub Authentication
15+
16+ Set these encrypted environment variables:
17+
18+ - ` DSTACK_DOCKER_USERNAME ` - Your Docker Hub username
19+ - ` DSTACK_DOCKER_PASSWORD ` - Your Docker Hub password or access token
20+
21+ ### AWS ECR Authentication
22+
23+ Set these encrypted environment variables:
24+
25+ - ` DSTACK_AWS_ACCESS_KEY_ID ` - Your AWS access key ID
26+ - ` DSTACK_AWS_SECRET_ACCESS_KEY ` - Your AWS secret access key
27+ - ` DSTACK_AWS_REGION ` - AWS region for your ECR repository
28+ - ` DSTACK_AWS_ECR_REGISTRY ` - Your AWS ECR registry URL
29+ - ` DSTACK_AWS_SESSION_TOKEN ` - Only needed for temporary AWS credentials
File renamed without changes.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments