-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changelog: - container-wrapper.sh is a script for detecting and running podman or docker. It displays a useful message when none of them is installed. - Adds the server/scripts folder for holding all those utility scripts - Adds a name to the container (planner-agent-ui) through the Makefile's run-image target for easy removal after it is no longer used. Signed-off-by: Jonathan Kilzi <[email protected]>
- Loading branch information
Showing
3 changed files
with
27 additions
and
3 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
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,20 @@ | ||
#!/bin/bash | ||
|
||
command_exists() { | ||
command -v "$1" >/dev/null 2>&1 | ||
} | ||
|
||
# Determine which container runtime to use | ||
if command_exists podman; then | ||
CONTAINER_RUNTIME="podman" | ||
elif command_exists docker; then | ||
CONTAINER_RUNTIME="docker" | ||
else | ||
echo "Neither Podman nor Docker is installed. Please install one of them to proceed." | ||
exit 1 | ||
fi | ||
|
||
# Print the selected container runtime | ||
#echo "Using $CONTAINER_RUNTIME as the container runtime." | ||
|
||
$CONTAINER_RUNTIME "$@" |
File renamed without changes.