@@ -51,16 +51,12 @@ Commands:
5151 security Run security checks
5252 lint Run linting (shellcheck, yamllint)
5353 check-all Run all checks (validate, security, lint)
54- build <example> Build Docker image for an example
5554 docs Show documentation status
5655 help Show this help message
5756
5857Examples:
5958 $0 validate attestation/configid-based
60- $0 build custom-domain/dstack-ingress
6159 $0 check-all
62-
63- Note: Examples run in dstack cloud environments, not locally.
6460EOF
6561}
6662
@@ -202,31 +198,6 @@ lint_checks() {
202198 log_success " Lint checks completed"
203199}
204200
205- # Build Docker image
206- build_image () {
207- local example=$1
208-
209- if [ -z " ${example} " ]; then
210- log_error " Please specify an example: $0 build <path/to/example>"
211- exit 1
212- fi
213-
214- if [ ! -d " ${example} " ]; then
215- log_error " Example directory not found: ${example} "
216- exit 1
217- fi
218-
219- if [ -f " ${example} /build-image.sh" ]; then
220- log_info " Building Docker image using build script: ${example} "
221- cd " ${example} " && ./build-image.sh
222- elif [ -f " ${example} /Dockerfile" ]; then
223- log_info " Building Docker image: ${example} "
224- cd " ${example} " && docker build -t " $( basename " ${example} " ) :latest" .
225- else
226- log_warning " No Dockerfile or build script found in: ${example} "
227- fi
228- }
229-
230201# Documentation status
231202docs_status () {
232203 log_info " Documentation status:"
@@ -279,9 +250,6 @@ main() {
279250 check-all)
280251 check_all
281252 ;;
282- build)
283- build_image " ${2:- } "
284- ;;
285253 docs)
286254 docs_status
287255 ;;
@@ -297,4 +265,4 @@ main() {
297265}
298266
299267# Run main function
300- main " $@ "
268+ main " $@ "
0 commit comments