-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96b20c8
commit efe23e3
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
ocean-prefilter | ||
*.swp | ||
module.tar.gz | ||
ocean-prefilter-appimage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# check if Docker is installed | ||
if ! command -v docker &> /dev/null; then | ||
echo "Docker is not installed. Please install Docker and try again." | ||
exit 1 | ||
fi | ||
|
||
# check the architecture | ||
ARCH=$(uname -m) | ||
|
||
# pull the Docker image and log in | ||
DOCKER_IMAGE="ghcr.io/viamrobotics/ocean-prefilter:$ARCH" | ||
|
||
docker pull $DOCKER_IMAGE | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "Failed to pull Docker image: $DOCKER_IMAGE" | ||
exit 1 | ||
fi | ||
|
||
docker run --rm \ | ||
-e ARCH_TAG=$ARCH \ | ||
-v "$(pwd)":/workspace \ | ||
-w /workspace \ | ||
$DOCKER_IMAGE \ | ||
/bin/bash -c "make ocean-prefilter && make ocean-prefilter-appimage && make module.tar.gz" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters