Skip to content

Commit 6ca3bd1

Browse files
committed
update default prelaunch script for Phala Cloud
1 parent c484f64 commit 6ca3bd1

File tree

3 files changed

+29
-57
lines changed

3 files changed

+29
-57
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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.

prelaunch-script-private-registry/README.md

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)