forked from arjunrajlaboratory/ImageAnalysisProject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_property_and_annotation_workers2.sh
executable file
·62 lines (46 loc) · 4.46 KB
/
build_property_and_annotation_workers2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
# Detect architecture
ARCH=$(uname -m)
echo "Architecture: $ARCH"
# Set Dockerfile based on architecture
if [ "$ARCH" == "arm64" ]; then
echo "Compiling for M1 architecture"
DOCKERFILE="Dockerfile_M1"
else
echo "Compiling for Intel architecture"
DOCKERFILE="Dockerfile"
fi
# Build Docker image
# Annotation workers
echo "Building annotation worker: connect_to_nearest"
docker build -f ./workers/annotations/connect_to_nearest/$DOCKERFILE -t annotations/connect_to_nearest:latest ./workers/annotations/connect_to_nearest/
echo "Building annotation worker: connect_sequential"
docker build -f ./workers/annotations/connect_sequential/$DOCKERFILE -t annotations/connect_sequential:latest ./workers/annotations/connect_sequential/
# Property workers
echo "Building property worker: blob_metrics_worker"
docker build -f ./workers/properties/blobs/blob_metrics_worker/$DOCKERFILE -t properties/blob_metrics:latest ./workers/properties/blobs/blob_metrics_worker/
# docker build -f ./workers/properties/blobs/blob_metrics_worker/Dockerfile_M1 -t properties/blob_metrics:latest ./workers/properties/blobs/blob_metrics_worker/
echo "Building property worker: blob_intensity_worker"
docker build -f ./workers/properties/blobs/blob_intensity_worker/$DOCKERFILE -t properties/blob_intensity:latest ./workers/properties/blobs/blob_intensity_worker/
# docker build -f ./workers/properties/blobs/blob_intensity_worker/Dockerfile_M1 -t properties/blob_intensity:latest ./workers/properties/blobs/blob_intensity_worker/
echo "Building property worker: blob_annulus_intensity_worker"
docker build -f ./workers/properties/blobs/blob_annulus_intensity_worker/$DOCKERFILE -t properties/blob_annulus_intensity:latest ./workers/properties/blobs/blob_annulus_intensity_worker/
# docker build -f ./workers/properties/blobs/blob_annulus_intensity_worker/Dockerfile_M1 -t properties/blob_annulus_intensity:latest ./workers/properties/blobs/blob_annulus_intensity_worker/
echo "Building property worker: blob_point_count_worker"
docker build -f ./workers/properties/blobs/blob_point_count_worker/$DOCKERFILE -t properties/blob_point_count:latest ./workers/properties/blobs/blob_point_count_worker/
# docker build -f ./workers/properties/blobs/blob_point_count_worker/Dockerfile_M1 -t properties/blob_point_count:latest ./workers/properties/blobs/blob_point_count_worker/
echo "Building property worker: blob_point_count_3D_projection_worker"
docker build -f ./workers/properties/blobs/blob_point_count_3D_projection_worker/$DOCKERFILE -t properties/blob_point_count_3d_projection:latest ./workers/properties/blobs/blob_point_count_3D_projection_worker/
# docker build -f ./workers/properties/blobs/blob_point_count_3D_projection_worker/Dockerfile_M1 -t properties/blob_point_count_3d_projection:latest ./workers/properties/blobs/blob_point_count_3D_projection_worker/
echo "Building property worker: parent_child_worker"
docker build -f ./workers/properties/connections/parent_child_worker/$DOCKERFILE -t properties/parent_child:latest ./workers/properties/connections/parent_child_worker/
# docker build -f ./workers/properties/connections/parent_child_worker/Dockerfile_M1 -t properties/parent_child:latest ./workers/properties/connections/parent_child_worker/
echo "Building property worker: point_metrics_worker"
docker build -f ./workers/properties/points/point_metrics_worker/$DOCKERFILE -t properties/point_metrics:latest ./workers/properties/points/point_metrics_worker/
# docker build -f ./workers/properties/points/point_metrics_worker/Dockerfile_M1 -t properties/point_metrics:latest ./workers/properties/points/point_metrics_worker/
# echo "Building property worker: point_circle_intensity_worker"
# docker build -f ./workers/properties/points/point_circle_intensity_mean_worker/$DOCKERFILE -t properties/point_circle_intensity:latest ./workers/properties/points/point_circle_intensity_mean_worker/
# # docker build -f ./workers/properties/points/point_circle_intensity_mean_worker/Dockerfile_M1 -t properties/point_circle_intensity:latest ./workers/properties/points/point_circle_intensity_mean_worker/
echo "Building property worker: point_circle_intensity_worker"
docker build -f ./workers/properties/points/point_circle_intensity_worker/$DOCKERFILE -t properties/point_intensity:latest ./workers/properties/points/point_circle_intensity_worker/
# docker build -f ./workers/properties/points/point_circle_intensity_worker/Dockerfile_M1 -t properties/point_intensity:latest ./workers/properties/points/point_circle_intensity_worker/