We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 573ff6a commit 662bd4aCopy full SHA for 662bd4a
1 file changed
custom-domain/dstack-ingress/build-image.sh
@@ -22,6 +22,19 @@ while [[ $# -gt 0 ]]; do
22
;;
23
esac
24
done
25
+
26
+require_command() {
27
+ local cmd="$1"
28
+ if ! command -v "$cmd" >/dev/null 2>&1; then
29
+ echo "Error: required command '$cmd' not found in PATH" >&2
30
+ exit 1
31
+ fi
32
+}
33
34
+for required in docker skopeo jq git; do
35
+ require_command "$required"
36
+done
37
38
# Check if buildkit_20 already exists before creating it
39
if ! docker buildx inspect buildkit_20 &>/dev/null; then
40
docker buildx create --use --driver-opt image=moby/buildkit:v0.20.2 --name buildkit_20
0 commit comments