File tree 3 files changed +34
-0
lines changed
3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1
1
ocean-prefilter
2
2
* .swp
3
+ module.tar.gz
4
+ ocean-prefilter-appimage
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # check if Docker is installed
4
+ if ! command -v docker & > /dev/null; then
5
+ echo " Docker is not installed. Please install Docker and try again."
6
+ exit 1
7
+ fi
8
+
9
+ # check the architecture
10
+ ARCH=$( uname -m)
11
+
12
+ # pull the Docker image and log in
13
+ DOCKER_IMAGE=" ghcr.io/viamrobotics/ocean-prefilter:$ARCH "
14
+
15
+ docker pull $DOCKER_IMAGE
16
+
17
+ if [ $? -ne 0 ]; then
18
+ echo " Failed to pull Docker image: $DOCKER_IMAGE "
19
+ exit 1
20
+ fi
21
+
22
+ docker run --rm \
23
+ -e ARCH_TAG=$ARCH \
24
+ -v " $( pwd) " :/workspace \
25
+ -w /workspace \
26
+ $DOCKER_IMAGE \
27
+ /bin/bash -c " make ocean-prefilter && make ocean-prefilter-appimage && make module.tar.gz"
28
+
Original file line number Diff line number Diff line change 9
9
"model" : " viam-labs:vision:ocean-prefilter"
10
10
}
11
11
],
12
+ "build" : {
13
+ "build" : " ./build.sh" ,
14
+ "arch" : [" linux/arm64" , " linux/amd64" ]
15
+ },
12
16
"entrypoint" : " ocean-prefilter-appimage"
13
17
}
You can’t perform that action at this time.
0 commit comments