initial commit
This commit is contained in:
18
build.sh
Executable file
18
build.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Check if a name argument was provided
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 <name>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
containerfile="$1.Containerfile"
|
||||
|
||||
# Check if the containerfile exists
|
||||
if [ ! -f "$containerfile" ]; then
|
||||
echo "Error: Containerfile '$containerfile' not found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
podman build -t "devc-$1" -f $containerfile
|
||||
Reference in New Issue
Block a user