Skip to content

Commit 24d5acb

Browse files
committed
feat(ae): add pull image option
1 parent d7be126 commit 24d5acb

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

docker-run.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ YELLOW='\033[1;33m'
1010
NC='\033[0m' # No Color
1111

1212
# Default values
13-
IMAGE_NAME="psi-ae:latest"
13+
IMAGE_NAME="ghcr.io/ucrparlay/spacetreelib:latest"
1414
CONTAINER_NAME="psi-artifact-evaluation"
1515
NODE_SIZE="1000000000"
1616

@@ -34,6 +34,7 @@ Usage: $0 [COMMAND] [OPTIONS]
3434
3535
Commands:
3636
build Build the Docker image
37+
pull Pull the Docker image from GitHub Container Registry
3738
run Run the container interactively
3839
full Run full artifact evaluation (NODE_SIZE=1000000000)
3940
shell Start a bash shell in the container
@@ -49,6 +50,7 @@ Options:
4950
5051
Examples:
5152
$0 build
53+
$0 pull
5254
$0 run --data-path /mnt/large-disk/experiments
5355
$0 run --data-path /home/user/data --node-size 100000
5456
$0 full --data-path /mnt/ssd/experiments --node-size 1000000000 --memory 512g
@@ -80,6 +82,13 @@ build_image() {
8082
print_info "Build complete!"
8183
}
8284

85+
# Function to pull the image
86+
pull_image() {
87+
print_info "Pulling Docker image from GitHub Container Registry: $IMAGE_NAME"
88+
docker pull "$IMAGE_NAME"
89+
print_info "Pull complete!"
90+
}
91+
8392
# Function to create host directories for volume mounts
8493
create_host_dirs() {
8594
mkdir -p script_ae/data script_ae/logs script_ae/plots
@@ -279,6 +288,9 @@ case $COMMAND in
279288
build)
280289
build_image
281290
;;
291+
pull)
292+
pull_image
293+
;;
282294
run)
283295
NODE_SIZE_TO_USE="${CUSTOM_NODE_SIZE:-$NODE_SIZE}"
284296
run_container "$NODE_SIZE_TO_USE" "$CPUS" "$MEMORY" "$CUSTOM_DATA_PATH"

0 commit comments

Comments
 (0)