-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
1865 lines (1709 loc) · 127 KB
/
Copy pathMakefile
File metadata and controls
1865 lines (1709 loc) · 127 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#===----------------------------------------------------------------------===#
# Copyright © 2026 container-compose project authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#===----------------------------------------------------------------------===#
override SHELL := /bin/bash
override .SHELLFLAGS := -euo pipefail -c
.DEFAULT_GOAL := all
.PHONY: fork-classifications-check upstream-divergence-report upstream-divergence-check upstream-divergence-release-check upstream-handoff-registry-update upstream-handoff-registry-check readme-upstream-metrics-update readme-upstream-metrics-check docs serve-docs
SWIFT ?= swift
SWIFT_RESOLVED_FLAGS ?= --disable-automatic-resolution
# Additional release compiler flags for deliberate toolchain experiments.
# Normal releases use SwiftPM's default speed-optimised production build.
SWIFT_RELEASE_FLAGS ?=
GO ?= go
GO_RELEASE_ENV ?= CGO_ENABLED=0
GO_RELEASE_BUILD_FLAGS ?= -trimpath
GO_RELEASE_LDFLAGS ?= -s -w
CODESIGN ?= codesign
CODESIGN_OPTS ?= --force --sign - --timestamp=none
PYTHON ?= python3
MARKDOWNLINT ?= markdownlint
HAWKEYE ?= $(shell command -v hawkeye 2>/dev/null || printf '%s' .local/bin/hawkeye)
CODEQL_CACHE_ROOT ?= .local/share/codeql
CODEQL_ARTIFACT_ROOT ?= .build/codeql
CODEQL_UPLOAD_REPOSITORY ?= stephenlclarke/container-compose
CODEQL_UPLOAD_REF ?=
CODEQL_UPLOAD_COMMIT ?=
CONTAINER_COMPOSE_CODEQL_CLEAN_MAKE_ENTRY ?=
# Preserve caller values as data rather than recursively expanding them as Make
# syntax, then pass them to the fixed Python entry point through its environment.
override CODEQL_CACHE_ROOT := $(value CODEQL_CACHE_ROOT)
override CODEQL_ARTIFACT_ROOT := $(value CODEQL_ARTIFACT_ROOT)
override CODEQL_UPLOAD_REPOSITORY := $(value CODEQL_UPLOAD_REPOSITORY)
override CODEQL_UPLOAD_REF := $(value CODEQL_UPLOAD_REF)
override CODEQL_UPLOAD_COMMIT := $(value CODEQL_UPLOAD_COMMIT)
override CONTAINER_COMPOSE_CODEQL_CLEAN_MAKE_ENTRY := $(value CONTAINER_COMPOSE_CODEQL_CLEAN_MAKE_ENTRY)
export CODEQL_CACHE_ROOT CODEQL_ARTIFACT_ROOT
export CODEQL_UPLOAD_REPOSITORY CODEQL_UPLOAD_REF CODEQL_UPLOAD_COMMIT
export CONTAINER_COMPOSE_CODEQL_CLEAN_MAKE_ENTRY
SWIFT_COVERAGE_MIN ?= 90
SWIFT_CORE_COVERAGE_MIN ?= $(SWIFT_COVERAGE_MIN)
SWIFT_RUNTIME_SPI_COVERAGE_MIN ?= 95
SWIFT_PROVIDER_COVERAGE_MIN ?= 75
SWIFT_PLUGIN_COVERAGE_MIN ?= 50
SWIFT_AGGREGATE_COVERAGE_MIN ?= 85
GO_COVERAGE_MIN ?= 85
DIST_DIR ?= dist
PLUGIN_ARCHIVE ?= container-compose-plugin-release-arm64.tar.gz
PLUGIN_ICON ?= docs/images/container-compose-icon-octopus.png
DOCS_OUTPUT_DIR ?= _site
DOCS_SERVER_DIR ?= _serve
DOCS_HOSTING_BASE_PATH ?= container-compose
DOCS_SCRATCH_PATH ?= .build/docc
COMPOSE_VERSION ?= 0.11.0
CONTAINER_COMPOSE_SOURCE ?= $(shell $(PYTHON) -c 'import subprocess; result = subprocess.run(["git", "remote", "get-url", "origin"], capture_output=True, text=True); url = result.stdout.strip() if result.returncode == 0 else ""; url = url[len("git@github.com:"):] if url.startswith("git@github.com:") else url; url = url[len("https://github.com/"):] if url.startswith("https://github.com/") else url; url = url[:-4] if url.endswith(".git") else url; print(url)')
CONTAINER_COMPOSE_BRANCH ?= $(shell git branch --show-current 2>/dev/null || git rev-parse --short HEAD)
CONTAINER_COMPOSE_LANE ?= $(shell $(PYTHON) -c 'branch = "$(CONTAINER_COMPOSE_BRANCH)"; print("main" if branch == "main" else "release" if branch == "release" or branch.startswith("release-") else "detached" if branch in ("", "HEAD") else "development")')
CONTAINER_COMPOSE_COMMIT ?= $(shell git rev-parse HEAD)
CONTAINER_SOURCE ?= stephenlclarke/container
CONTAINER_REF ?= $(shell $(PYTHON) Tools/release/resolve-container-ref.py 2>/dev/null || printf 'unspecified')
CONTAINERIZATION_SOURCE ?= $(shell $(PYTHON) Tools/release/resolve-containerization-pin.py --field source 2>/dev/null || printf 'unspecified')
CONTAINERIZATION_REF ?= $(shell $(PYTHON) Tools/release/resolve-containerization-pin.py --field ref 2>/dev/null || printf 'unspecified')
COMPOSE_GO_VERSION ?= $(shell $(PYTHON) Tools/release/go-module-version.py --go-mod Tools/compose-normalizer/go.mod github.com/compose-spec/compose-go/v2 2>/dev/null || printf 'unspecified')
SONAR_QUALITYGATE_WAIT ?= false
SONAR_SCAN_ATTEMPTS ?= 3
XCODE_SELECT_DEVELOPER_DIR ?= $(shell xcode-select -p 2>/dev/null || true)
SWIFT_RUNTIME_RESOURCE_PATH ?= $(shell $(SWIFT) -print-target-info 2>/dev/null | $(PYTHON) -c 'import json, sys; print(json.load(sys.stdin).get("paths", {}).get("runtimeResourcePath", ""))' 2>/dev/null || true)
SWIFT_RUNTIME_LIBRARY_PATHS ?= $(shell $(SWIFT) -print-target-info 2>/dev/null | $(PYTHON) -c 'import json, sys; print(" ".join(json.load(sys.stdin).get("paths", {}).get("runtimeLibraryPaths", [])))' 2>/dev/null || true)
SWIFT_TOOLCHAIN_USR_DIR = $(patsubst %/lib/swift,%,$(SWIFT_RUNTIME_RESOURCE_PATH))
SWIFT_XCODE_DEVELOPER_DIR = $(patsubst %/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift,%,$(filter %/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift,$(SWIFT_RUNTIME_RESOURCE_PATH)))
SWIFT_CLT_DEVELOPER_DIR = $(patsubst %/usr/lib/swift,%,$(filter-out %/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift,$(filter %/usr/lib/swift,$(SWIFT_RUNTIME_RESOURCE_PATH))))
SWIFT_ACTIVE_DEVELOPER_DIR ?= $(firstword $(SWIFT_XCODE_DEVELOPER_DIR) $(SWIFT_CLT_DEVELOPER_DIR) $(XCODE_SELECT_DEVELOPER_DIR))
SWIFT_LLVM_COV ?= $(firstword $(wildcard $(SWIFT_TOOLCHAIN_USR_DIR)/bin/llvm-cov) $(shell xcrun --find llvm-cov 2>/dev/null || command -v llvm-cov 2>/dev/null || true))
SWIFT_LLVM_PROFDATA ?= $(firstword $(wildcard $(SWIFT_TOOLCHAIN_USR_DIR)/bin/llvm-profdata) $(shell xcrun --find llvm-profdata 2>/dev/null || command -v llvm-profdata 2>/dev/null || true))
SWIFT_TEST_FRAMEWORK_CANDIDATES = \
$(SWIFT_ACTIVE_DEVELOPER_DIR)/Platforms/MacOSX.platform/Developer/Library/Frameworks \
$(SWIFT_ACTIVE_DEVELOPER_DIR)/Library/Developer/Frameworks \
$(XCODE_SELECT_DEVELOPER_DIR)/Platforms/MacOSX.platform/Developer/Library/Frameworks \
$(XCODE_SELECT_DEVELOPER_DIR)/Library/Developer/Frameworks
SWIFT_TEST_RUNTIME_LIBRARY_CANDIDATES = \
$(foreach path,$(SWIFT_RUNTIME_LIBRARY_PATHS),$(path)/testing $(path)) \
$(SWIFT_RUNTIME_RESOURCE_PATH)/macosx/testing \
$(SWIFT_ACTIVE_DEVELOPER_DIR)/Platforms/MacOSX.platform/Developer/usr/lib \
$(SWIFT_ACTIVE_DEVELOPER_DIR)/Library/Developer/usr/lib \
$(XCODE_SELECT_DEVELOPER_DIR)/Platforms/MacOSX.platform/Developer/usr/lib \
$(XCODE_SELECT_DEVELOPER_DIR)/Library/Developer/usr/lib
SWIFT_TEST_FRAMEWORK_SEARCH_PATH ?= $(firstword $(foreach path,$(SWIFT_TEST_FRAMEWORK_CANDIDATES),$(if $(wildcard $(path)/Testing.framework),$(path))))
SWIFT_TEST_RUNTIME_LIBRARY_PATH ?= $(firstword $(foreach path,$(SWIFT_TEST_RUNTIME_LIBRARY_CANDIDATES),$(if $(wildcard $(path)/libTesting.dylib $(path)/lib_TestingInterop.dylib),$(path))))
SWIFT_TEST_RESULT_LOG ?= .build/swift-test.log
SWIFT_RUNTIME_TEST_RESULT_LOG ?= .build/swift-runtime-test.log
SWIFT_TEST_ATTEMPTS ?= 2
# Coverage needs a normal Swift test exit; accepting a SwiftPM signal-13 fallback
# can leave incomplete profile data that reports false 0% coverage.
SWIFT_COVERAGE_TEST_ATTEMPTS ?= 3
SWIFT_TEST_RUN_FLAGS ?= --no-parallel
SWIFT_RUNTIME_TEST_FILTER ?= ComposeRuntimeTests
COMPOSE_TEST_BINARY ?= $(abspath .build/debug/compose)
CONTAINER_STACK_REPO ?= $(abspath ../container)
CONTAINERIZATION_STACK_REPO ?= $(abspath ../containerization)
CONTAINER_ENGINE_API_STACK_REPO ?= $(abspath ../container-engine-api)
CONTAINER_PACKAGE_PATH ?= $(if $(wildcard $(CONTAINER_STACK_REPO)/Package.swift),$(CONTAINER_STACK_REPO),)
CONTAINERIZATION_PACKAGE_PATH ?= $(if $(wildcard $(CONTAINERIZATION_STACK_REPO)/Package.swift),$(CONTAINERIZATION_STACK_REPO),)
CONTAINER_ENGINE_API_PACKAGE_PATH ?= $(if $(wildcard $(CONTAINER_ENGINE_API_STACK_REPO)/Package.swift),$(CONTAINER_ENGINE_API_STACK_REPO),)
PARITY_CONTAINER_REF ?= $(if $(CONTAINER_PACKAGE_PATH),$(shell git -C "$(CONTAINER_PACKAGE_PATH)" rev-parse HEAD 2>/dev/null),$(CONTAINER_REF))
PARITY_CONTAINERIZATION_REF ?= $(if $(CONTAINERIZATION_PACKAGE_PATH),$(shell git -C "$(CONTAINERIZATION_PACKAGE_PATH)" rev-parse HEAD 2>/dev/null),$(CONTAINERIZATION_REF))
PARITY_CONTAINER_ENGINE_API_REF ?= $(if $(CONTAINER_ENGINE_API_PACKAGE_PATH),$(shell git -C "$(CONTAINER_ENGINE_API_PACKAGE_PATH)" rev-parse HEAD 2>/dev/null),unspecified)
CONTAINER_BUILDER_SHIM_STACK_REPO ?= $(abspath ../container-builder-shim)
CONTAINER_K8S_STACK_REPO ?= $(abspath ../container-k8s)
HOMEBREW_TAP_REPO ?= $(abspath ../homebrew-tap)
LOCAL_CONTAINER_BINARY ?= $(abspath $(CONTAINER_STACK_REPO)/bin/container)
LOCAL_CONTAINER_PACKAGE_BINARY ?= $(abspath $(CONTAINER_STACK_REPO)/usr/local/bin/container)
CONTAINER_COMPOSE_CONTAINER ?= $(or $(firstword $(wildcard $(LOCAL_CONTAINER_BINARY) $(LOCAL_CONTAINER_PACKAGE_BINARY))),container)
CONTAINER_RUNTIME_APP_ROOT ?= $(abspath .build/container-runtime)
CONTAINER_RUNTIME_INIT_BLOCK_REPO ?= $(if $(wildcard $(CONTAINER_STACK_REPO)/Makefile),$(CONTAINER_STACK_REPO),)
CONTAINER_RUNTIME_INIT_IMAGE_ARCHIVE ?=
CONTAINERIZATION_INIT_SOURCE_PATH ?= $(if $(wildcard $(CONTAINERIZATION_STACK_REPO)/Package.swift),$(CONTAINERIZATION_STACK_REPO),)
# Prefer Docker's plugin form, while accepting the standalone Docker Compose V2
# executable that Homebrew installs on macOS. Parity targets pass this value to
# their scripts verbatim, so selecting it here keeps every documented `make
# docker-compose-…-parity` invocation runnable on either installation layout.
DOCKER_COMPOSE_REFERENCE ?= $(shell if docker compose version >/dev/null 2>&1; then printf '%s' 'docker compose'; elif command -v docker-compose >/dev/null 2>&1 && docker-compose version >/dev/null 2>&1; then printf '%s' docker-compose; else printf '%s' 'docker compose'; fi)
DOCKER_COMPOSE_REFERENCE_VERSION ?= 5.3.1
DOCKER_COMPOSE_E2E_REF ?= f32009d4a2c687dd405398cc7975d12dccaf8dff
DOCKER_TERMINAL_CANDIDATE_SOCKET ?= /tmp/container-engine-$(shell id -u)/docker.sock
DOCKER_REST_LOGGING_CANDIDATE_SOCKET ?= $(DOCKER_TERMINAL_CANDIDATE_SOCKET)
CONTAINER_COMPOSE_LIVE ?= 0
PARITY_EVIDENCE_DIR ?=
PARITY_REPETITIONS ?= 3
PARITY_TIMEOUT_SECONDS ?= 300
PARITY_ENV = \
CONTAINER_COMPOSE_CONTAINER="$(CONTAINER_COMPOSE_CONTAINER)" \
CONTAINER_COMPOSE_LIVE="$(CONTAINER_COMPOSE_LIVE)" \
CONTAINER_PACKAGE_PATH="$(CONTAINER_PACKAGE_PATH)" \
CONTAINERIZATION_PACKAGE_PATH="$(CONTAINERIZATION_PACKAGE_PATH)" \
CONTAINER_ENGINE_API_PACKAGE_PATH="$(CONTAINER_ENGINE_API_PACKAGE_PATH)" \
CONTAINER_ENGINE_API_REF="$(PARITY_CONTAINER_ENGINE_API_REF)" \
GIT_COMMIT="$(PARITY_CONTAINER_REF)" \
CONTAINER_SOURCE="$(CONTAINER_SOURCE)" \
CONTAINERIZATION_SOURCE="$(CONTAINERIZATION_SOURCE)" \
CONTAINERIZATION_REF="$(PARITY_CONTAINERIZATION_REF)" \
CONTAINER_STACK_REPO="$(CONTAINER_STACK_REPO)" \
CONTAINERIZATION_STACK_REPO="$(CONTAINERIZATION_STACK_REPO)" \
CONTAINER_ENGINE_API_STACK_REPO="$(CONTAINER_ENGINE_API_STACK_REPO)" \
DOCKER_COMPOSE="$(DOCKER_COMPOSE_REFERENCE)" \
DOCKER_COMPOSE_E2E_REF="$(DOCKER_COMPOSE_E2E_REF)" \
PARITY_EVIDENCE_DIR="$(PARITY_EVIDENCE_DIR)" \
PARITY_REPETITIONS="$(PARITY_REPETITIONS)" \
PARITY_TIMEOUT_SECONDS="$(PARITY_TIMEOUT_SECONDS)"
MARKDOWN_FILES = $(shell /usr/bin/git ls-files '*.md')
DOCKER_COMPOSE_PARITY_TARGETS := \
docker-compose-cli-surface-parity \
docker-compose-environment-parity \
docker-compose-format-template-actions-parity \
docker-compose-bridge-parity \
docker-compose-compatibility-names-parity \
docker-compose-config-all-resources-parity \
docker-compose-env-file-parity \
docker-compose-git-remote-parity \
docker-compose-commit-parity \
docker-compose-cp-stdio-archive-streams-parity \
docker-compose-build-builder-parity \
docker-compose-build-check-parity \
docker-compose-build-external-dockerfile-parity \
docker-compose-build-external-secret-parity \
docker-compose-build-isolation-parity \
docker-compose-build-no-cache-filter-parity \
docker-compose-build-secret-metadata-parity \
docker-compose-provider-services-parity \
docker-compose-bind-create-host-path-parity \
docker-compose-bind-propagation-parity \
docker-compose-image-volumes-parity \
docker-compose-deploy-job-modes-parity \
docker-compose-volume-labels-parity \
docker-compose-named-volume-reuse-parity \
docker-compose-deploy-endpoint-mode-parity \
docker-compose-deploy-resource-reservations-parity \
docker-compose-cpu-limit-parity \
docker-compose-cpu-cfs-parity \
docker-compose-cpu-shares-parity \
docker-compose-cpuset-parity \
docker-compose-pid-namespace-parity \
docker-compose-cgroup-namespace-parity \
docker-compose-cgroup-parent-parity \
docker-compose-ipc-uts-namespace-parity \
docker-compose-userns-mode-parity \
docker-compose-privileged-parity \
docker-compose-security-opt-parity \
docker-compose-stop-defaults-parity \
docker-compose-deploy-scheduler-metadata-parity \
docker-compose-memory-byte-precision-parity \
docker-compose-memory-swap-limit-parity \
docker-compose-pids-limit-parity \
docker-compose-device-cgroup-rules-parity \
docker-compose-devices-parity \
docker-compose-gpus-parity \
docker-compose-network-driver-opts-parity \
docker-compose-network-attachable-parity \
docker-compose-network-ipv6-parity \
docker-compose-network-ipam-options-parity \
docker-compose-network-service-discovery-parity \
docker-compose-links-parity \
docker-compose-oci-annotations-parity \
docker-compose-exposed-ports-parity \
docker-compose-empty-process-overrides-parity \
docker-compose-up-exit-code-from-parity \
docker-compose-up-menu-parity \
docker-compose-host-namespaces-parity \
docker-compose-health-wait-parity \
docker-compose-create-options-parity \
docker-compose-events-parity \
docker-compose-state-status-parity \
docker-compose-rm-parity \
docker-compose-lifecycle-hooks-parity \
docker-compose-signal-log-reliability-parity \
docker-compose-restart-policy-parity
# Some local toolchains can build Swift Testing targets without adding the
# framework and interop library to SwiftPM's generated test runner. Derive
# those paths from the selected Swift executable so `SWIFT=... make swift-test`
# does not mix Xcode and Command Line Tools runtimes.
SWIFT_TEST_FLAGS ?=
SWIFT_TEST_FLAGS += $(if $(strip $(SWIFT_TEST_FRAMEWORK_SEARCH_PATH)),-Xswiftc -F -Xswiftc '$(SWIFT_TEST_FRAMEWORK_SEARCH_PATH)' -Xlinker -rpath -Xlinker '$(SWIFT_TEST_FRAMEWORK_SEARCH_PATH)' $(if $(strip $(SWIFT_TEST_RUNTIME_LIBRARY_PATH)),-Xlinker -rpath -Xlinker '$(SWIFT_TEST_RUNTIME_LIBRARY_PATH)'))
.PHONY: all workflow ci ci-fast release-gate release-gate-hosted ci-release clean run build build-release test resolve swift-test-build swift-test swift-runtime-test-build swift-runtime-test swift-coverage go-test go-build go-release-check cli-smoke cli-smoke-built container-stack-build docker-log-fixtures docker-log-fixtures-update docker-compose-reference docker-compose-e2e-fixtures docker-compose-parity docker-compose-cli-surface-parity docker-compose-bridge-parity docker-compose-compatibility-names-parity docker-compose-config-all-resources-parity docker-compose-env-file-parity docker-compose-git-remote-parity docker-compose-commit-parity docker-compose-cp-stdio-archive-streams-parity docker-compose-build-builder-parity docker-compose-build-check-parity docker-compose-build-external-dockerfile-parity docker-compose-build-external-secret-parity docker-compose-build-isolation-parity docker-compose-build-no-cache-filter-parity docker-compose-build-secret-metadata-parity docker-compose-bind-create-host-path-parity docker-compose-bind-propagation-parity docker-compose-image-volumes-parity docker-compose-deploy-endpoint-mode-parity docker-compose-deploy-resource-reservations-parity docker-compose-cpu-limit-parity docker-compose-privileged-parity docker-compose-security-opt-parity docker-compose-deploy-scheduler-metadata-parity docker-compose-memory-byte-precision-parity docker-compose-memory-swap-limit-parity docker-compose-pids-limit-parity docker-compose-device-cgroup-rules-parity docker-compose-devices-parity docker-compose-gpus-parity docker-compose-network-driver-opts-parity docker-compose-network-service-discovery-parity docker-compose-links-parity docker-compose-up-menu-parity docker-compose-host-namespaces-parity docker-compose-health-wait-parity docker-compose-create-options-parity docker-compose-events-parity docker-compose-state-status-parity docker-compose-rm-parity docker-compose-lifecycle-hooks-parity docker-compose-signal-log-reliability-parity docker-compose-restart-policy-parity docker-compose-userns-mode-parity coverage coverage-check sonar sonar-scan release release-plan package package-release package-debug package-built stack-consistency coverage-tools-test lint format fmt check check-licenses update-licenses pre-commit
.PHONY: worktree-audit worktree-audit-strict
.PHONY: core-runtime-neutrality
.PHONY: codeql-local codeql-sarif-upload codeql-sarif-upload-dry-run
.PHONY: docker-compose-environment-parity docker-compose-named-volume-reuse-parity docker-compose-oci-annotations-parity docker-compose-exposed-ports-parity docker-compose-empty-process-overrides-parity docker-compose-provider-services-parity
.PHONY: docker-compose-phase4-parity
.PHONY: docker-compose-format-template-actions-parity
.PHONY: docker-compose-stop-defaults-parity docker-compose-cpu-cfs-parity docker-compose-cpu-shares-parity docker-compose-cpuset-parity docker-compose-pid-namespace-parity docker-compose-cgroup-namespace-parity docker-compose-cgroup-parent-parity docker-compose-ipc-uts-namespace-parity docker-compose-userns-mode-parity docker-compose-privileged-parity docker-compose-network-attachable-parity docker-compose-network-ipv6-parity docker-compose-deploy-job-modes-parity
.PHONY: docker-compose-up-exit-code-from-parity docker-compose-performance-matrix performance-matrix-harness-test signal-log-reliability-harness-test
.PHONY: docker-terminal-session-oracle docker-terminal-session-oracle-update docker-terminal-session-candidate-oracle docker-rest-logging-oracle docker-rest-logging-candidate docker-rest-logging-parity docker-rest-discovery-oracle docker-rest-discovery-candidate docker-rest-discovery-parity docker-rest-image-discovery-oracle docker-rest-image-discovery-candidate docker-rest-image-discovery-parity docker-rest-image-mutation-oracle docker-rest-image-mutation-candidate docker-rest-image-mutation-parity
all: workflow
workflow: ci package
ci: check coverage-check go-build cli-smoke-built
ci-fast: check test go-build cli-smoke-built
release-gate: container-stack-release-validation ci swift-runtime-test docker-compose-parity
release-gate-hosted: container-stack-hosted-release-validation ci
ci-release: release-gate package-release
release:
@test -n "$(VERSION_SELECTOR)" || { \
printf 'VERSION_SELECTOR is required, for example: make release VERSION_SELECTOR=--+\n' >&2; \
exit 2; \
}
./scripts/CONTAINER_STACK_RELEASE.sh release "$(VERSION_SELECTOR)" --execute
release-plan:
./scripts/CONTAINER_STACK_RELEASE.sh plan
resolve:
$(SWIFT) package resolve
build:
@if [[ -n "$(CONTAINER_PACKAGE_PATH)$(CONTAINERIZATION_PACKAGE_PATH)" ]]; then \
lock_backup="$$(mktemp "$${TMPDIR:-/tmp}/container-compose-package-resolved.XXXXXX")"; \
cp Package.resolved "$$lock_backup"; \
restore_lock() { trap - EXIT HUP INT TERM; cp "$$lock_backup" Package.resolved; rm -f "$$lock_backup"; }; \
trap restore_lock EXIT HUP INT TERM; \
$(PARITY_ENV) $(SWIFT) build --product compose; \
else \
$(SWIFT) build $(SWIFT_RESOLVED_FLAGS) --product compose; \
fi
build-release:
@if [[ -n "$(CONTAINER_PACKAGE_PATH)$(CONTAINERIZATION_PACKAGE_PATH)" ]]; then \
lock_backup="$$(mktemp "$${TMPDIR:-/tmp}/container-compose-package-resolved.XXXXXX")"; \
cp Package.resolved "$$lock_backup"; \
restore_lock() { trap - EXIT HUP INT TERM; cp "$$lock_backup" Package.resolved; rm -f "$$lock_backup"; }; \
trap restore_lock EXIT HUP INT TERM; \
$(PARITY_ENV) $(SWIFT) build -c release --product compose $(SWIFT_RELEASE_FLAGS); \
else \
$(SWIFT) build $(SWIFT_RESOLVED_FLAGS) -c release --product compose $(SWIFT_RELEASE_FLAGS); \
fi
run:
$(SWIFT) run $(SWIFT_RESOLVED_FLAGS) compose version
test: swift-test go-test
swift-test-build:
$(SWIFT) build $(SWIFT_RESOLVED_FLAGS) --build-tests --enable-code-coverage $(SWIFT_TEST_FLAGS)
swift-test: swift-test-build
@mkdir -p .build
@PYTHON="$(PYTHON)" SWIFT_TEST_RESULT_LOG="$(SWIFT_TEST_RESULT_LOG)" SWIFT_TEST_ATTEMPTS="$(SWIFT_TEST_ATTEMPTS)" Tools/ci/run-swift-test.sh $(SWIFT) test $(SWIFT_RESOLVED_FLAGS) --skip-build --enable-code-coverage $(SWIFT_TEST_RUN_FLAGS) $(SWIFT_TEST_FLAGS)
@if ! grep -Eq 'Test run with [1-9][0-9]* tests? .* passed|Executed [1-9][0-9]* tests?|swiftpm-testing-helper signal 13 toolchain failure' "$(SWIFT_TEST_RESULT_LOG)"; then \
printf 'swift test completed without running tests; check the active toolchain Testing.framework and rpath settings.\n' >&2; \
exit 1; \
fi
swift-runtime-test-build:
$(SWIFT) build $(SWIFT_RESOLVED_FLAGS) --build-tests $(SWIFT_TEST_FLAGS)
swift-runtime-test: container-stack-build build swift-runtime-test-build
container_binary="$(CONTAINER_COMPOSE_CONTAINER)"; \
if [[ "$$container_binary" == "container" ]]; then \
for candidate in "$(LOCAL_CONTAINER_BINARY)" "$(LOCAL_CONTAINER_PACKAGE_BINARY)"; do \
if [[ -x "$$candidate" ]]; then container_binary="$$candidate"; break; fi; \
done; \
fi; \
CONTAINER_RUNTIME_APP_ROOT="$(CONTAINER_RUNTIME_APP_ROOT)" \
CONTAINER_RUNTIME_INIT_BLOCK_REPO="$(CONTAINER_RUNTIME_INIT_BLOCK_REPO)" \
CONTAINER_RUNTIME_INIT_IMAGE_ARCHIVE="$(CONTAINER_RUNTIME_INIT_IMAGE_ARCHIVE)" \
CONTAINERIZATION_INIT_SOURCE_PATH="$(CONTAINERIZATION_INIT_SOURCE_PATH)" \
./scripts/run-with-container-runtime.sh "$$container_binary" \
env CONTAINER_COMPOSE_RUN_RUNTIME_TESTS=1 COMPOSE_TEST_BINARY="$(COMPOSE_TEST_BINARY)" \
CONTAINER_BIN="$$container_binary" CONTAINER_COMPOSE_CONTAINER="$$container_binary" \
PYTHON="$(PYTHON)" SWIFT_TEST_RESULT_LOG="$(SWIFT_RUNTIME_TEST_RESULT_LOG)" SWIFT_TEST_ATTEMPTS=1 \
Tools/ci/run-swift-test.sh $(SWIFT) test $(SWIFT_RESOLVED_FLAGS) --skip-build \
--filter "$(SWIFT_RUNTIME_TEST_FILTER)" $(SWIFT_TEST_RUN_FLAGS) $(SWIFT_TEST_FLAGS)
swift-coverage: swift-test-build
@if [[ -z "$(SWIFT_LLVM_COV)" ]]; then \
printf 'llvm-cov is required; install the active Swift toolchain or set SWIFT_LLVM_COV=/path/to/llvm-cov\n' >&2; \
exit 1; \
fi
@if [[ -z "$(SWIFT_LLVM_PROFDATA)" ]]; then \
printf 'llvm-profdata is required; install the active Swift toolchain or set SWIFT_LLVM_PROFDATA=/path/to/llvm-profdata\n' >&2; \
exit 1; \
fi
@rm -f .build/*/debug/codecov/*.profraw .build/*/debug/codecov/*.profdata .build/codecov/fallback.profdata coverage*.lcov coverage*.xml
@find .build -maxdepth 3 -path .build/index-build -prune -o -path '*/debug' -type d -exec mkdir -p '{}/codecov' \;
@PYTHON="$(PYTHON)" SWIFT_TEST_RESULT_LOG="$(SWIFT_TEST_RESULT_LOG)" SWIFT_TEST_ATTEMPTS="$(SWIFT_COVERAGE_TEST_ATTEMPTS)" SWIFT_TEST_ACCEPT_SIGNAL_13=0 Tools/ci/run-swift-test.sh $(SWIFT) test $(SWIFT_RESOLVED_FLAGS) --skip-build --enable-code-coverage $(SWIFT_TEST_RUN_FLAGS) $(SWIFT_TEST_FLAGS)
test_binary="$$(find .build -path '*.xctest/Contents/MacOS/container-composePackageTests' -type f | head -n 1)"; \
profile=".build/codecov/fallback.profdata"; \
if [[ -z "$$test_binary" ]]; then \
printf 'Swift test binary is missing; run make swift-test-build before make swift-coverage\n' >&2; \
exit 2; \
fi; \
raw_profile_count="$$(find .build -path .build/index-build -prune -o -name '*.profraw' -type f -print | wc -l | tr -d ' ')"; \
for _ in 1 2 3 4 5 6 7 8 9 10; do \
if [[ "$$raw_profile_count" -gt 0 ]]; then \
break; \
fi; \
sleep 1; \
raw_profile_count="$$(find .build -path .build/index-build -prune -o -name '*.profraw' -type f -print | wc -l | tr -d ' ')"; \
done; \
if [[ "$$raw_profile_count" -eq 0 ]]; then \
printf 'Swift coverage profile is missing and no raw .profraw files were found\n' >&2; \
exit 2; \
fi; \
mkdir -p .build/codecov; \
find .build -path .build/index-build -prune -o -name '*.profraw' -type f -print0 | xargs -0 "$(SWIFT_LLVM_PROFDATA)" merge -sparse -o "$$profile"; \
for coverage_target in \
core=Sources/ComposeCore \
runtime-spi=Sources/ComposeRuntimeSPI \
provider=Sources/ComposeContainerRuntime \
plugin=Sources/ComposePlugin \
aggregate=Sources; do \
name="$${coverage_target%%=*}"; \
source="$${coverage_target#*=}"; \
lcov_path="coverage-$${name}.lcov"; \
xml_path="coverage-$${name}.xml"; \
"$(SWIFT_LLVM_COV)" export \
-format=lcov \
-instr-profile="$$profile" \
"$$test_binary" \
--sources "$$source" \
> "$$lcov_path"; \
$(PYTHON) Tools/coverage/lcov-to-sonarqube-generic.py "$$lcov_path" "$$xml_path"; \
done; \
cp coverage-aggregate.lcov coverage.lcov; \
cp coverage-aggregate.xml coverage.xml
go-test:
cd Tools/compose-normalizer && $(GO) test ./... -coverpkg=./... -coverprofile=coverage.out -covermode=atomic
go-build:
cd Tools/compose-normalizer && $(GO_RELEASE_ENV) $(GO) build $(GO_RELEASE_BUILD_FLAGS) -ldflags "$(GO_RELEASE_LDFLAGS)" -o compose-normalizer .
$(MAKE) go-release-check
go-release-check:
@test -x Tools/compose-normalizer/compose-normalizer || { \
printf 'Tools/compose-normalizer/compose-normalizer is missing; run make go-build first\n' >&2; \
exit 1; \
}
@case " $(GO_RELEASE_BUILD_FLAGS) " in \
*" -trimpath "*) ;; \
*) \
printf 'GO_RELEASE_BUILD_FLAGS must include -trimpath for Homebrew package builds\n' >&2; \
exit 1; \
;; \
esac
@case " $(GO_RELEASE_LDFLAGS) " in \
*" -s "*) ;; \
*) \
printf 'GO_RELEASE_LDFLAGS must include -s for Homebrew package builds\n' >&2; \
exit 1; \
;; \
esac
@case " $(GO_RELEASE_LDFLAGS) " in \
*" -w "*) ;; \
*) \
printf 'GO_RELEASE_LDFLAGS must include -w for Homebrew package builds\n' >&2; \
exit 1; \
;; \
esac
@$(GO) version -m Tools/compose-normalizer/compose-normalizer | grep -E '^[[:space:]]*build[[:space:]]+-trimpath=true$$' >/dev/null || { \
printf 'compose-normalizer was not built with -trimpath; Homebrew packages require the release Go build path\n' >&2; \
$(GO) version -m Tools/compose-normalizer/compose-normalizer >&2; \
exit 1; \
}
@$(GO) version -m Tools/compose-normalizer/compose-normalizer | grep -E '^[[:space:]]*build[[:space:]]+CGO_ENABLED=0$$' >/dev/null || { \
printf 'compose-normalizer was not built with CGO_ENABLED=0; Homebrew packages require the release Go build path\n' >&2; \
$(GO) version -m Tools/compose-normalizer/compose-normalizer >&2; \
exit 1; \
}
@if otool -l Tools/compose-normalizer/compose-normalizer | grep -E '__DWARF|__debug' >/dev/null; then \
printf 'compose-normalizer contains DWARF debug sections; Homebrew packages require stripped release Go binaries\n' >&2; \
exit 1; \
fi
codeql-local:
/usr/bin/python3 -I Tools/ci/codeql-local.py \
--make-environment \
analyze
codeql-sarif-upload:
/usr/bin/python3 -I Tools/ci/codeql-local.py \
--make-environment \
upload
codeql-sarif-upload-dry-run:
/usr/bin/python3 -I Tools/ci/codeql-local.py \
--make-environment \
upload \
--dry-run
cli-smoke: build cli-smoke-built
cli-smoke-built:
@test -x .build/debug/compose || { \
printf '.build/debug/compose is missing; run make build or make swift-test-build before make cli-smoke-built\n' >&2; \
exit 2; \
}
.build/debug/compose --ansi never version >/dev/null
.build/debug/compose version --dry-run >/dev/null
version_short_output="$$(".build/debug/compose" version --short)"; \
[[ "$$version_short_output" == "0.11.0" ]]; \
version_pretty_output="$$(".build/debug/compose" version)"; \
[[ "$$version_pretty_output" == *"container-compose 0.11.0"* ]]; \
[[ "$$version_pretty_output" == *"container:"*" (custom)"* ]]; \
[[ "$$version_pretty_output" == *"containerization:"*" (custom)"* ]]; \
[[ "$$version_pretty_output" == *"compose-go: $(COMPOSE_GO_VERSION)"* ]]; \
[[ "$$version_pretty_output" == *"runtime-capability-schema: 1"* ]]; \
[[ "$$version_pretty_output" == *"runtime-capability: io.github.stephenlclarke.container.compose.archive-copy.v1"* ]]; \
version_json_output="$$(".build/debug/compose" version --format json)"; \
[[ "$$version_json_output" == *'"version":"0.11.0"'* ]]; \
[[ "$$version_json_output" == *'"containerSource":"stephenlclarke/container"'* ]]; \
[[ "$$version_json_output" == *'"containerRef":"$(CONTAINER_REF)"'* ]]; \
[[ "$$version_json_output" == *'"containerDistribution":"custom"'* ]]; \
[[ "$$version_json_output" == *'"containerizationSource":'* ]]; \
[[ "$$version_json_output" == *'"containerizationDistribution":"custom"'* ]]; \
[[ "$$version_json_output" == *'"composeGoVersion":"$(COMPOSE_GO_VERSION)"'* ]]; \
[[ "$$version_json_output" == *'"runtimeCapabilitySchemaVersion":1'* ]]; \
[[ "$$version_json_output" == *'"runtimeCapabilities":["io.github.stephenlclarke.container.compose.archive-copy.v1"'* ]]; \
version_short_format_output="$$(".build/debug/compose" version -f json)"; \
[[ "$$version_short_format_output" == *'"version":"0.11.0"'* ]]; \
version_compact_format_output="$$(".build/debug/compose" version -fjson)"; \
[[ "$$version_compact_format_output" == *'"version":"0.11.0"'* ]]; \
package_tmp="$$(mktemp -d)"; \
trap 'rm -rf "$$package_tmp"' EXIT; \
mkdir -p "$$package_tmp/compose/bin" "$$package_tmp/compose/resources" "$$package_tmp/bin"; \
cp .build/debug/compose "$$package_tmp/compose/bin/compose"; \
cp "$(PLUGIN_ICON)" "$$package_tmp/compose/resources/container-compose-icon.png"; \
test -f "$$package_tmp/compose/resources/container-compose-icon.png"; \
printf '%s\n' '{"version":"0.11.0","source":"stephenlclarke/container-compose","branch":"symlink-smoke","lane":"stable","commit":"packaged-smoke","buildType":"release","containerSource":"stephenlclarke/container","containerRef":"container-smoke","containerizationSource":"stephenlclarke/containerization","containerizationRef":"containerization-smoke","composeGoVersion":"$(COMPOSE_GO_VERSION)"}' > "$$package_tmp/compose/resources/build-info.json"; \
ln -s ../compose/bin/compose "$$package_tmp/bin/container-compose"; \
packaged_version_output="$$(cd /tmp && "$$package_tmp/bin/container-compose" version --format json)"; \
[[ "$$packaged_version_output" == *'"branch":"symlink-smoke"'* ]]; \
[[ "$$packaged_version_output" == *'"lane":"stable"'* ]]; \
[[ "$$packaged_version_output" == *'"containerRef":"container-smoke"'* ]]; \
version_bad_format_output="$$(".build/debug/compose" version --format yaml 2>&1 || true)"; \
[[ "$$version_bad_format_output" == *"unsupported compose feature: version --format 'yaml'; supported formats are pretty and json"* ]]; \
compat_tmp="$$(mktemp -d)"; \
trap 'rm -rf "$$compat_tmp"' EXIT; \
printf '%s\n' '#!/usr/bin/env bash' 'if [[ "$$*" == "system version --format json" ]]; then' ' printf '\''[{"appName":"container","buildType":"release","commit":"abc123","containerization":"apple/containerization@main","distribution":"apple","source":"apple/container","version":"0.5.0"}]\n'\''' ' exit 0' 'fi' 'exit 2' > "$$compat_tmp/container"; \
chmod +x "$$compat_tmp/container"; \
set +e; \
compat_output="$$(CONTAINER_COMPOSE_CONTAINER="$$compat_tmp/container" ".build/debug/compose" ps 2>&1)"; \
compat_status="$$?"; \
set -e; \
[[ "$$compat_status" -ne 0 ]]; \
[[ "$$compat_output" == *"The installed container components do not match the Compose functionality in this plugin."* ]]; \
[[ "$$compat_output" == *"brew upgrade stephenlclarke/tap/container stephenlclarke/tap/container-compose || brew install --formula stephenlclarke/tap/container-compose"* ]]; \
[[ "$$compat_output" == *"brew postinstall stephenlclarke/tap/container"* ]]; \
[[ "$$compat_output" == *"brew services restart stephenlclarke/tap/container"* ]]; \
[[ "$$compat_output" == *"https://github.com/stephenlclarke/container-compose/blob/main/INSTALL.md"* ]]; \
service_tmp="$$(mktemp -d)"; \
trap 'rm -rf "$$service_tmp"' EXIT; \
printf '%s\n' '{"version":"0.11.0","source":"stephenlclarke/container-compose","branch":"service-smoke","lane":"stable","commit":"service-smoke","buildType":"release","containerSource":"stephenlclarke/container","containerRef":"matched-container","containerizationSource":"stephenlclarke/containerization","containerizationRef":"matched-containerization","composeGoVersion":"$(COMPOSE_GO_VERSION)"}' > "$$service_tmp/build-info.json"; \
printf '%s\n' '#!/usr/bin/env bash' 'if [[ "$$*" == "system version --format json" ]]; then' ' printf '\''[{"appName":"container","buildType":"release","commit":"matched-container","containerization":"stephenlclarke/containerization@matched-containerization","distribution":"custom","runtimeCapabilitySchemaVersion":1,"runtimeCapabilities":["io.github.stephenlclarke.container.compose.archive-copy.v1","io.github.stephenlclarke.container.compose.build-extensions.v1","io.github.stephenlclarke.container.compose.create-configuration.v1","io.github.stephenlclarke.container.compose.image-filesystem.v1","io.github.stephenlclarke.container.compose.lifecycle.v1","io.github.stephenlclarke.container.compose.observation.v1"],"source":"stephenlclarke/container","version":"homebrew-main"}]\n'\''' ' exit 0' 'fi' 'if [[ "$$*" == "system status" ]]; then' ' printf '\''apiserver is not running and not registered with launchd\n'\'' >&2' ' exit 1' 'fi' 'exit 2' > "$$service_tmp/container"; \
chmod +x "$$service_tmp/container"; \
set +e; \
service_output="$$(CONTAINER_COMPOSE_BUILD_INFO="$$service_tmp/build-info.json" CONTAINER_COMPOSE_CONTAINER="$$service_tmp/container" ".build/debug/compose" ps 2>&1)"; \
service_status="$$?"; \
set -e; \
[[ "$$service_status" -ne 0 ]]; \
[[ "$$service_output" == *"container-compose requires the matching stephenlclarke container system service to be running."* ]]; \
[[ "$$service_output" == *"The installed container components match this plugin"* ]]; \
[[ "$$service_output" == *"container system start"* ]]; \
[[ "$$service_output" == *"brew postinstall stephenlclarke/tap/container"* ]]; \
[[ "$$service_output" == *"brew services restart stephenlclarke/tap/container"* ]]; \
[[ "$$service_output" == *"container system status: apiserver is not running and not registered with launchd"* ]]; \
ansi_escape="$$(printf '\033')"; \
root_help_output="$$(".build/debug/compose" --help)"; \
[[ "$$root_help_output" == *"$${ansi_escape}[32malpha$${ansi_escape}[0m"* ]]; \
[[ "$$root_help_output" == *"$${ansi_escape}[32mversion$${ansi_escape}[0m"* ]]; \
[[ "$$root_help_output" == *"$${ansi_escape}[38;5;208mup$${ansi_escape}[0m"* ]]; \
[[ "$$root_help_output" == *"$${ansi_escape}[38;5;208mcommit$${ansi_escape}[0m"* ]]; \
[[ "$$root_help_output" == *"$${ansi_escape}[32mhelp$${ansi_escape}[0m"* ]]; \
[[ "$$root_help_output" == *"$${ansi_escape}[32mpause$${ansi_escape}[0m"* ]]; \
[[ "$$root_help_output" == *"$${ansi_escape}[32m--file$${ansi_escape}[0m"* ]]; \
[[ "$$root_help_output" == *"$${ansi_escape}[32m--parallel$${ansi_escape}[0m"* ]]; \
plain_help_output="$$(".build/debug/compose" --ansi never --help)"; \
[[ "$$plain_help_output" == *"Support: supported | partially supported | not supported"* ]]; \
[[ "$$plain_help_output" != *"$${ansi_escape}["* ]]; \
compose_help_output="$$(".build/debug/compose" help)"; \
[[ "$$compose_help_output" == *"Usage: container compose [OPTIONS] COMMAND"* ]]; \
[[ "$$compose_help_output" == *"$${ansi_escape}[32mhelp$${ansi_escape}[0m"* ]]; \
alpha_output="$$(".build/debug/compose" alpha)"; \
[[ "$$alpha_output" == *"Usage: container compose alpha [OPTIONS] COMMAND"* ]]; \
alpha_help_output="$$(".build/debug/compose" alpha --help)"; \
[[ "$$alpha_help_output" == *"Support: $${ansi_escape}[32msupported$${ansi_escape}[0m"* ]]; \
[[ "$$alpha_help_output" == *"$${ansi_escape}[32m--dry-run$${ansi_escape}[0m"* ]]; \
alpha_scale_help_output="$$(".build/debug/compose" alpha scale --help)"; \
[[ "$$alpha_scale_help_output" == *"Usage: container compose alpha scale [OPTIONS] SERVICE=REPLICAS..."* ]]; \
[[ "$$alpha_scale_help_output" == *"$${ansi_escape}[32m--no-deps$${ansi_escape}[0m"* ]]; \
alpha_watch_help_output="$$(".build/debug/compose" alpha watch --help)"; \
[[ "$$alpha_watch_help_output" == *"Usage: container compose alpha watch [OPTIONS] [SERVICE...]"* ]]; \
[[ "$$alpha_watch_help_output" == *"$${ansi_escape}[32m--no-up$${ansi_escape}[0m"* ]]; \
[[ "$$alpha_watch_help_output" == *"$${ansi_escape}[32m--quiet$${ansi_escape}[0m"* ]]; \
version_help_output="$$(".build/debug/compose" version --help)"; \
[[ "$$version_help_output" == *"Support: $${ansi_escape}[32msupported$${ansi_escape}[0m"* ]]; \
[[ "$$version_help_output" == *"$${ansi_escape}[32m--dry-run$${ansi_escape}[0m"* ]]; \
[[ "$$version_help_output" == *"$${ansi_escape}[32m--format$${ansi_escape}[0m"* ]]; \
commit_help_output="$$(".build/debug/compose" commit --help)"; \
[[ "$$commit_help_output" == *"Support: $${ansi_escape}[38;5;208mpartially supported$${ansi_escape}[0m"* ]]; \
[[ "$$commit_help_output" == *"$${ansi_escape}[32m--author$${ansi_escape}[0m"* ]]; \
[[ "$$commit_help_output" == *"$${ansi_escape}[32m--pause$${ansi_escape}[0m"* ]]; \
config_help_output="$$(".build/debug/compose" config --help)"; \
[[ "$$config_help_output" == *"Support: $${ansi_escape}[32msupported$${ansi_escape}[0m"* ]]; \
[[ "$$config_help_output" == *"$${ansi_escape}[32m--format$${ansi_escape}[0m"* ]]; \
[[ "$$config_help_output" == *"$${ansi_escape}[32m--services$${ansi_escape}[0m"* ]]; \
[[ "$$config_help_output" == *"$${ansi_escape}[32m--images$${ansi_escape}[0m"* ]]; \
[[ "$$config_help_output" == *"$${ansi_escape}[32m--lock-image-digests$${ansi_escape}[0m"* ]]; \
[[ "$$config_help_output" == *"$${ansi_escape}[32m--output$${ansi_escape}[0m"* ]]; \
[[ "$$config_help_output" == *"$${ansi_escape}[32m--environment$${ansi_escape}[0m"* ]]; \
[[ "$$config_help_output" == *"$${ansi_escape}[32m--profiles$${ansi_escape}[0m"* ]]; \
[[ "$$config_help_output" == *"$${ansi_escape}[32m--resolve-image-digests$${ansi_escape}[0m"* ]]; \
[[ "$$config_help_output" == *"$${ansi_escape}[32m--variables$${ansi_escape}[0m"* ]]; \
[[ "$$config_help_output" == *"$${ansi_escape}[32m--no-consistency$${ansi_escape}[0m"* ]]; \
[[ "$$config_help_output" == *"$${ansi_escape}[32m--no-env-resolution$${ansi_escape}[0m"* ]]; \
[[ "$$config_help_output" == *"$${ansi_escape}[32m--no-interpolate$${ansi_escape}[0m"* ]]; \
[[ "$$config_help_output" == *"$${ansi_escape}[32m--no-normalize$${ansi_escape}[0m"* ]]; \
[[ "$$config_help_output" == *"$${ansi_escape}[32m--no-path-resolution$${ansi_escape}[0m"* ]]; \
build_help_output="$$(".build/debug/compose" build --help)"; \
[[ "$$build_help_output" == *"Support: $${ansi_escape}[38;5;208mpartially supported$${ansi_escape}[0m"* ]]; \
[[ "$$build_help_output" == *"Non-file/environment build-secret source forms are unavailable."* ]]; \
[[ "$$build_help_output" == *"$${ansi_escape}[32m--build-arg$${ansi_escape}[0m"* ]]; \
[[ "$$build_help_output" == *"$${ansi_escape}[32m--memory$${ansi_escape}[0m"* ]]; \
[[ "$$build_help_output" == *"$${ansi_escape}[32m--no-cache$${ansi_escape}[0m"* ]]; \
[[ "$$build_help_output" == *"$${ansi_escape}[32m--print$${ansi_escape}[0m"* ]]; \
[[ "$$build_help_output" == *"$${ansi_escape}[32m--provenance$${ansi_escape}[0m"* ]]; \
[[ "$$build_help_output" == *"$${ansi_escape}[32m--sbom$${ansi_escape}[0m"* ]]; \
[[ "$$build_help_output" == *"Use --provenance=false to explicitly disable."* ]]; \
[[ "$$build_help_output" == *"Use --sbom=false to explicitly disable."* ]]; \
[[ "$$build_help_output" == *"$${ansi_escape}[32m--ssh$${ansi_escape}[0m"* ]]; \
attach_help_output="$$(".build/debug/compose" attach --help)"; \
[[ "$$attach_help_output" == *"Support: $${ansi_escape}[38;5;208mpartially supported$${ansi_escape}[0m"* ]]; \
[[ "$$attach_help_output" == *"$${ansi_escape}[38;5;208m--detach-keys$${ansi_escape}[0m"* ]]; \
[[ "$$attach_help_output" == *"Ignored with --no-stdin output-only attach."* ]]; \
[[ "$$attach_help_output" == *"$${ansi_escape}[32m--no-stdin$${ansi_escape}[0m"* ]]; \
[[ "$$attach_help_output" == *"$${ansi_escape}[32m--sig-proxy$${ansi_escape}[0m"* ]]; \
stats_help_output="$$(".build/debug/compose" stats --help)"; \
[[ "$$stats_help_output" == *"Usage: container compose stats [OPTIONS] [SERVICE]"* ]]; \
[[ "$$stats_help_output" == *"Support: $${ansi_escape}[38;5;208mpartially supported$${ansi_escape}[0m"* ]]; \
[[ "$$stats_help_output" == *"Go-template control blocks and nested object paths are unavailable."* ]]; \
[[ "$$stats_help_output" == *"$${ansi_escape}[32m--format$${ansi_escape}[0m"* ]]; \
ls_help_output="$$(".build/debug/compose" ls --help)"; \
[[ "$$ls_help_output" == *"Support: $${ansi_escape}[32msupported$${ansi_escape}[0m"* ]]; \
[[ "$$ls_help_output" == *"$${ansi_escape}[32m--filter$${ansi_escape}[0m"* ]]; \
[[ "$$ls_help_output" == *"$${ansi_escape}[32m--format$${ansi_escape}[0m"* ]]; \
[[ "$$ls_help_output" == *"Format the output. Values: [table | json]"* ]]; \
ps_help_output="$$(".build/debug/compose" ps --help)"; \
[[ "$$ps_help_output" == *"Support: $${ansi_escape}[38;5;208mpartially supported$${ansi_escape}[0m"* ]]; \
[[ "$$ps_help_output" == *"Go-template control blocks and nested object paths are unavailable."* ]]; \
[[ "$$ps_help_output" == *"$${ansi_escape}[32m--filter$${ansi_escape}[0m"* ]]; \
[[ "$$ps_help_output" == *"$${ansi_escape}[32m--format$${ansi_escape}[0m"* ]]; \
[[ "$$ps_help_output" == *"$${ansi_escape}[32m--no-trunc$${ansi_escape}[0m"* ]]; \
[[ "$$ps_help_output" == *"$${ansi_escape}[32m--orphans$${ansi_escape}[0m"* ]]; \
[[ "$$ps_help_output" == *"$${ansi_escape}[32m--status$${ansi_escape}[0m"* ]]; \
images_help_output="$$(".build/debug/compose" images --help)"; \
[[ "$$images_help_output" == *"Support: $${ansi_escape}[32msupported$${ansi_escape}[0m"* ]]; \
[[ "$$images_help_output" == *"$${ansi_escape}[32m--format$${ansi_escape}[0m"* ]]; \
[[ "$$images_help_output" == *"Format the output. Values: [table | json]"* ]]; \
cp_help_output="$$(".build/debug/compose" cp --help)"; \
[[ "$$cp_help_output" == *"Support: $${ansi_escape}[32msupported$${ansi_escape}[0m"* ]]; \
[[ "$$cp_help_output" != *"Tar-stream operands stage through the host filesystem"* ]]; \
[[ "$$cp_help_output" == *"$${ansi_escape}[32m--archive$${ansi_escape}[0m"* ]]; \
[[ "$$cp_help_output" == *"$${ansi_escape}[32m--follow-link$${ansi_escape}[0m"* ]]; \
logs_help_output="$$(".build/debug/compose" logs --help)"; \
[[ "$$logs_help_output" == *"-f, --follow"* ]]; \
[[ "$$logs_help_output" == *"Support: $${ansi_escape}[38;5;208mpartially supported$${ansi_escape}[0m"* ]]; \
[[ "$$logs_help_output" == *"$${ansi_escape}[32m--follow$${ansi_escape}[0m"* ]]; \
[[ "$$logs_help_output" == *"$${ansi_escape}[32m--tail$${ansi_escape}[0m"* ]]; \
[[ "$$logs_help_output" == *"$${ansi_escape}[32m--timestamps$${ansi_escape}[0m"* ]]; \
[[ "$$logs_help_output" == *"$${ansi_escape}[32m--since$${ansi_escape}[0m"* ]]; \
[[ "$$logs_help_output" == *"$${ansi_escape}[32m--until$${ansi_escape}[0m"* ]]; \
logs_misordered_help_output="$$(".build/debug/compose" logs help)"; \
[[ "$$logs_misordered_help_output" == *"Usage: container compose logs [OPTIONS] [SERVICE...]"* ]]; \
[[ "$$logs_misordered_help_output" != *"compose-normalizer"* ]]; \
logs_plain_misordered_help_output="$$(".build/debug/compose" --ansi never logs help)"; \
[[ "$$logs_plain_misordered_help_output" == *"Usage: container compose logs [OPTIONS] [SERVICE...]"* ]]; \
[[ "$$logs_plain_misordered_help_output" != *"$${ansi_escape}["* ]]; \
run_help_output="$$(".build/debug/compose" run --help)"; \
[[ "$$run_help_output" == *"Support: $${ansi_escape}[38;5;208mpartially supported$${ansi_escape}[0m"* ]]; \
[[ "$$run_help_output" == *"Container-facing DNS aliases are unavailable."* ]]; \
[[ "$$run_help_output" == *"-p, --publish stringArray"* ]]; \
[[ "$$run_help_output" == *"$${ansi_escape}[32m--build$${ansi_escape}[0m"* ]]; \
[[ "$$run_help_output" == *"$${ansi_escape}[32m--interactive$${ansi_escape}[0m"* ]]; \
[[ "$$run_help_output" == *"$${ansi_escape}[32m--quiet$${ansi_escape}[0m"* ]]; \
[[ "$$run_help_output" == *"$${ansi_escape}[32m--quiet-build$${ansi_escape}[0m"* ]]; \
[[ "$$run_help_output" == *"$${ansi_escape}[32m--quiet-pull$${ansi_escape}[0m"* ]]; \
[[ "$$run_help_output" == *"$${ansi_escape}[32m--remove-orphans$${ansi_escape}[0m"* ]]; \
[[ "$$run_help_output" == *"$${ansi_escape}[32m--publish$${ansi_escape}[0m"* ]]; \
[[ "$$run_help_output" == *"$${ansi_escape}[38;5;208m--use-aliases$${ansi_escape}[0m"* ]]; \
up_help_output="$$(".build/debug/compose" up --help)"; \
[[ "$$up_help_output" == *"Support: $${ansi_escape}[38;5;208mpartially supported$${ansi_escape}[0m"* ]]; \
[[ "$$up_help_output" == *"Container-facing DNS aliases are unavailable."* ]]; \
up_wait_support="$${ansi_escape}[38;5;208m--wait$${ansi_escape}[0m"; \
up_wait_timeout_support="$${ansi_escape}[38;5;208m--wait-timeout$${ansi_escape}[0m"; \
[[ "$$up_help_output" == *"$${ansi_escape}[32m--abort-on-container-exit$${ansi_escape}[0m"* ]]; \
[[ "$$up_help_output" == *"$${ansi_escape}[32m--abort-on-container-failure$${ansi_escape}[0m"* ]]; \
[[ "$$up_help_output" == *"$${ansi_escape}[32m--attach$${ansi_escape}[0m"* ]]; \
[[ "$$up_help_output" == *"$${ansi_escape}[32m--attach-dependencies$${ansi_escape}[0m"* ]]; \
[[ "$$up_help_output" == *"$${ansi_escape}[32m--detach$${ansi_escape}[0m"* ]]; \
[[ "$$up_help_output" == *"$${ansi_escape}[32m--menu$${ansi_escape}[0m"* ]]; \
[[ "$$up_help_output" == *"Use --menu=false to explicitly disable the helper menu."* ]]; \
[[ "$$up_help_output" == *"$${ansi_escape}[32m--no-attach$${ansi_escape}[0m"* ]]; \
[[ "$$up_help_output" == *"$${ansi_escape}[32m--exit-code-from$${ansi_escape}[0m"* ]]; \
[[ "$$up_help_output" == *"$${ansi_escape}[32m--no-color$${ansi_escape}[0m"* ]]; \
[[ "$$up_help_output" == *"$${ansi_escape}[32m--renew-anon-volumes$${ansi_escape}[0m"* ]]; \
[[ "$$up_help_output" == *"$${ansi_escape}[32m--timestamps$${ansi_escape}[0m"* ]]; \
[[ "$$up_help_output" == *"$${up_wait_support}"* ]]; \
[[ "$$up_help_output" == *"$${up_wait_timeout_support}"* ]]; \
[[ "$$up_help_output" == *"$${ansi_escape}[32m--watch$${ansi_escape}[0m"* ]]; \
[[ "$$up_help_output" == *"$${ansi_escape}[32m--yes$${ansi_escape}[0m"* ]]; \
rm_help_output="$$(".build/debug/compose" rm --help)"; \
[[ "$$rm_help_output" == *"-f, --force"* ]]; \
start_help_output="$$(".build/debug/compose" start --help)"; \
[[ "$$start_help_output" == *"Support: $${ansi_escape}[32msupported$${ansi_escape}[0m"* ]]; \
[[ "$$start_help_output" == *"$${ansi_escape}[32m--wait$${ansi_escape}[0m"* ]]; \
[[ "$$start_help_output" == *"$${ansi_escape}[32m--wait-timeout$${ansi_escape}[0m"* ]]; \
create_help_output="$$(".build/debug/compose" create --help)"; \
[[ "$$create_help_output" == *"Support: $${ansi_escape}[32msupported$${ansi_escape}[0m"* ]]; \
[[ "$$create_help_output" == *"$${ansi_escape}[32m--scale$${ansi_escape}[0m"* ]]; \
stop_help_output="$$(".build/debug/compose" stop --help)"; \
[[ "$$stop_help_output" == *"Support: $${ansi_escape}[32msupported$${ansi_escape}[0m"* ]]; \
top_help_output="$$(".build/debug/compose" top --help)"; \
[[ "$$top_help_output" == *"Support: $${ansi_escape}[32msupported$${ansi_escape}[0m"* ]]; \
[[ "$$top_help_output" == *"$${ansi_escape}[32m--dry-run$${ansi_escape}[0m"* ]]; \
kill_help_output="$$(".build/debug/compose" kill --help)"; \
[[ "$$kill_help_output" == *"$${ansi_escape}[32m--remove-orphans$${ansi_escape}[0m"* ]]; \
export_help_output="$$(".build/debug/compose" export --help)"; \
[[ "$$export_help_output" == *"Support: $${ansi_escape}[32msupported$${ansi_escape}[0m"* ]]; \
version_help_output="$$(".build/debug/compose" version --help)"; \
[[ "$$version_help_output" == *"$${ansi_escape}[32m--dry-run$${ansi_escape}[0m"* ]]; \
wait_help_output="$$(".build/debug/compose" wait --help)"; \
[[ "$$wait_help_output" == *"--down-project"* ]]; \
[[ "$$wait_help_output" != *"unsupported compose feature"* ]]; \
bridge_help_output="$$(".build/debug/compose" bridge --help)"; \
[[ "$$bridge_help_output" == *"Support: $${ansi_escape}[32msupported$${ansi_escape}[0m"* ]]; \
[[ "$$bridge_help_output" == *"Management Commands:"* ]]; \
bridge_misordered_help_output="$$(".build/debug/compose" bridge help)"; \
[[ "$$bridge_misordered_help_output" == *"Usage: container compose bridge [OPTIONS] COMMAND"* ]]; \
bridge_convert_help_output="$$(".build/debug/compose" bridge convert --help)"; \
[[ "$$bridge_convert_help_output" == *"Support: $${ansi_escape}[32msupported$${ansi_escape}[0m"* ]]; \
[[ "$$bridge_convert_help_output" == *"Usage: container compose bridge convert"* ]]; \
[[ "$$bridge_convert_help_output" == *"-o, --output string"* ]]; \
[[ "$$bridge_convert_help_output" == *"$${ansi_escape}[32m--output$${ansi_escape}[0m"* ]]; \
bridge_transformations_help_output="$$(".build/debug/compose" bridge transformations --help)"; \
[[ "$$bridge_transformations_help_output" == *"Support: $${ansi_escape}[32msupported$${ansi_escape}[0m"* ]]; \
[[ "$$bridge_transformations_help_output" == *"Usage: container compose bridge transformations [OPTIONS] COMMAND"* ]]; \
bridge_transformations_create_help_output="$$(".build/debug/compose" bridge transformations create --help)"; \
[[ "$$bridge_transformations_create_help_output" == *"Support: $${ansi_escape}[32msupported$${ansi_escape}[0m"* ]]; \
[[ "$$bridge_transformations_create_help_output" == *"Usage: container compose bridge transformations create [OPTION] PATH"* ]]; \
bridge_transformations_list_help_output="$$(".build/debug/compose" bridge transformations list --help)"; \
[[ "$$bridge_transformations_list_help_output" == *"Support: $${ansi_escape}[32msupported$${ansi_escape}[0m"* ]]; \
[[ "$$bridge_transformations_list_help_output" == *"Usage: container compose bridge transformations list"* ]]; \
[[ "$$bridge_transformations_list_help_output" == *"$${ansi_escape}[32m--format$${ansi_escape}[0m"* ]]; \
commit_help_output="$$(".build/debug/compose" commit --help)"; \
[[ "$$commit_help_output" == *"Support: $${ansi_escape}[38;5;208mpartially supported$${ansi_escape}[0m"* ]]; \
[[ "$$commit_help_output" == *"$${ansi_escape}[32m--pause$${ansi_escape}[0m"* ]]; \
tmpdir="$$(mktemp -d)"; \
trap 'rm -rf "$$tmpdir"' EXIT; \
printf 'enabled=true\n' > "$$tmpdir/api.conf"; \
printf 'token\n' > "$$tmpdir/api-token.txt"; \
printf 'services:\n api:\n image: alpine\n annotations:\n example.com/owner: platform\n depends_on:\n - db\n ports:\n - "8080:80"\n mac_address: "02:42:ac:11:00:03"\n configs:\n - source: api_config\n target: /etc/api.conf\n secrets:\n - api_token\n volumes_from:\n - db:ro\n volumes:\n - /scratch\n - cache:/cache\n dns_opt:\n - use-vc\n networks:\n default:\n driver_opts:\n com.docker.network.driver.mtu: "1450"\n db:\n image: alpine\n volumes:\n - cache:/db-cache\n debugger:\n image: alpine\n profiles:\n - dev\n - debug\n job:\n image: alpine\n depends_on:\n db:\n condition: service_healthy\n restart: true\n shell:\n image: alpine\n tty: true\n stdin_open: true\n isolated:\n image: alpine\n network_mode: none\nnetworks:\n default:\n internal: true\n ipam:\n config:\n - subnet: "10.77.0.0/24"\n - subnet: "fd77::/64"\nvolumes:\n cache:\n driver: local\n driver_opts:\n journal: ordered\n size: 64m\nconfigs:\n api_config:\n file: ./api.conf\nsecrets:\n api_token:\n file: ./api-token.txt\n' > "$$tmpdir/compose.yml"; \
printf 'services:\n api:\n image: alpine\n ports:\n - "80"\n' > "$$tmpdir/dynamic-ports.yml"; \
printf 'services:\n api:\n image: alpine\n attach: false\n' > "$$tmpdir/attach-false.yml"; \
printf 'services:\n api:\n image: alpine\n networks:\n default:\n aliases:\n - api\n' > "$$tmpdir/aliases.yml"; \
mkdir -p "$$tmpdir/src"; \
printf 'services:\n api:\n image: alpine\n develop:\n watch:\n - path: ./src\n action: rebuild\n' > "$$tmpdir/watch.yml"; \
printf 'services:\n worker:\n image: alpine\n' > "$$tmpdir/scale.yml"; \
printf 'services:\n worker:\n image: alpine\n scale: 2\n' > "$$tmpdir/logs-scale.yml"; \
printf 'services:\n api:\n image: alpine\n depends_on:\n - db\n db:\n image: alpine\n' > "$$tmpdir/scale-deps.yml"; \
printf 'services:\n api:\n image: alpine\n ports:\n - "8080-8081:80"\n' > "$$tmpdir/scale-ports.yml"; \
printf 'services:\n api:\n image: alpine\n volumes:\n - /scratch\n' > "$$tmpdir/scale-volumes.yml"; \
printf 'services:\n api:\n image: alpine\n pull_policy: daily\n' > "$$tmpdir/pull-window.yml"; \
printf 'services:\n api:\n image: example/api:build\n build:\n context: ./api\n pull_policy: build\n' > "$$tmpdir/pull-build.yml"; \
printf 'services:\n api:\n image: alpine\n volumes:\n - type: tmpfs\n target: /scratch\n tmpfs:\n size: 64m\n mode: 1777\n' > "$$tmpdir/tmpfs-options.yml"; \
mkdir -p "$$tmpdir/api"; \
printf 'FROM alpine:3.20\n' > "$$tmpdir/api/Dockerfile"; \
printf 'secret\n' > "$$tmpdir/build-token.txt"; \
printf 'services:\n api:\n image: example/api:build\n build:\n context: ./api\n secrets:\n - source: file_token\n - source: env_token\n target: npm_token\nsecrets:\n file_token:\n file: ./build-token.txt\n env_token:\n environment: NPM_TOKEN\n' > "$$tmpdir/build-secrets.yml"; \
printf 'name: inline-build\nservices:\n api:\n image: example/api:inline\n build:\n context: ./api\n dockerfile_inline: |\n FROM alpine:3.20\n RUN echo inline\n' > "$$tmpdir/build-inline.yml"; \
printf 'services:\n worker:\n build:\n context: ./api\n' > "$$tmpdir/build-only.yml"; \
printf 'services:\n api:\n image: "$${IMAGE_NAME:-alpine}:$${IMAGE_TAG:-3.20}"\n environment:\n REQUIRED: "$${REQUIRED?must set}"\n WHEN_PRESENT: "$${OPTIONAL:+enabled}"\n' > "$$tmpdir/variables.yml"; \
printf 'services:\n api:\n image: alpine\n' > "$$tmpdir/no-variables.yml"; \
printf 'VALUE=from-env-file\n' > "$$tmpdir/service.env"; \
printf 'services:\n api:\n image: alpine\n env_file:\n - service.env\n' > "$$tmpdir/env-file.yml"; \
printf 'services:\n api:\n image: alpine\n build:\n context: ./api\n volumes:\n - ./src:/src\n' > "$$tmpdir/relative-paths.yml"; \
printf 'services:\n api:\n image: alpine\n depends_on:\n - missing\n' > "$$tmpdir/missing-dependency.yml"; \
version_compact_global_output="$$(".build/debug/compose" -pcompact -f"$$tmpdir/compose.yml" version --short)"; \
[[ "$$version_compact_global_output" == "0.11.0" ]]; \
config_output="$$(".build/debug/compose" -f "$$tmpdir/compose.yml" config)"; \
[[ "$$config_output" == *"name: \"demo\""* ]]; \
[[ "$$config_output" == *"services:"* ]]; \
config_json_output="$$(".build/debug/compose" -f "$$tmpdir/compose.yml" config --format json)"; \
[[ "$$config_json_output" == *'"name":"demo"'* ]]; \
config_yaml_output="$$(".build/debug/compose" -f "$$tmpdir/compose.yml" config --format yaml api)"; \
[[ "$$config_yaml_output" == *"services:"* ]]; \
[[ "$$config_yaml_output" == *" api:"* ]]; \
[[ "$$config_yaml_output" == *' image: "alpine"'* ]]; \
[[ "$$config_yaml_output" != *" db:"* ]]; \
config_services_output="$$(".build/debug/compose" -f "$$tmpdir/compose.yml" config --services)"; \
[[ "$$config_services_output" == *"api"* ]]; \
[[ "$$config_services_output" == *"db"* ]]; \
[[ "$$config_services_output" == *"job"* ]]; \
config_images_output="$$(".build/debug/compose" -f "$$tmpdir/compose.yml" config --images api)"; \
[[ "$$config_images_output" == "alpine" ]]; \
config_networks_output="$$(".build/debug/compose" -f "$$tmpdir/compose.yml" config --networks)"; \
[[ "$$config_networks_output" == "default" ]]; \
config_profiles_output="$$(".build/debug/compose" -f "$$tmpdir/compose.yml" config --profiles)"; \
[[ "$$config_profiles_output" == $$'debug\ndev' ]]; \
config_variables_output="$$(".build/debug/compose" -f "$$tmpdir/variables.yml" config --variables)"; \
[[ "$$config_variables_output" == *"IMAGE_NAME"*"false"*"alpine"* ]]; \
[[ "$$config_variables_output" == *"IMAGE_TAG"*"false"*"3.20"* ]]; \
[[ "$$config_variables_output" == *"OPTIONAL"*"false"*"enabled"* ]]; \
[[ "$$config_variables_output" == *"REQUIRED"*"true"* ]]; \
config_no_variables_output="$$(".build/debug/compose" -f "$$tmpdir/no-variables.yml" config --variables)"; \
[[ "$$config_no_variables_output" == "NAME REQUIRED DEFAULT VALUE ALTERNATE VALUE" ]]; \
config_no_interpolate_output="$$(".build/debug/compose" -f "$$tmpdir/variables.yml" config --no-interpolate --format json)"; \
[[ "$$config_no_interpolate_output" == *'$${IMAGE_NAME:-alpine}:$${IMAGE_TAG:-3.20}'* ]]; \
config_no_env_resolution_output="$$(".build/debug/compose" -f "$$tmpdir/env-file.yml" config --no-env-resolution --format json)"; \
[[ "$$config_no_env_resolution_output" == *'"envFiles"'* ]]; \
[[ "$$config_no_env_resolution_output" != *"from-env-file"* ]]; \
config_no_path_resolution_output="$$(".build/debug/compose" -f "$$tmpdir/relative-paths.yml" config --no-path-resolution --format json)"; \
[[ "$$config_no_path_resolution_output" == *'"context":"./api"'* ]]; \
[[ "$$config_no_path_resolution_output" == *'"source":"./src"'* ]]; \
config_no_normalize_output="$$(".build/debug/compose" -f "$$tmpdir/relative-paths.yml" config --no-normalize --format json)"; \
[[ "$$config_no_normalize_output" == *'"context":'* ]]; \
[[ "$$config_no_normalize_output" != *'"dockerfile":"Dockerfile"'* ]]; \
config_no_consistency_output="$$(".build/debug/compose" -f "$$tmpdir/missing-dependency.yml" config --no-consistency --services)"; \
[[ "$$config_no_consistency_output" == "api" ]]; \
config_volumes_output="$$(".build/debug/compose" -f "$$tmpdir/compose.yml" config --volumes)"; \
[[ "$$config_volumes_output" == "cache" ]]; \
config_hash_output="$$(".build/debug/compose" -f "$$tmpdir/compose.yml" config --hash api)"; \
[[ "$$config_hash_output" == api" "* ]]; \
config_filtered_output="$$(".build/debug/compose" -f "$$tmpdir/compose.yml" config api)"; \
[[ "$$config_filtered_output" == *'"api"'* ]]; \
[[ "$$config_filtered_output" != *'"db"'* ]]; \
convert_json_output="$$(".build/debug/compose" -f "$$tmpdir/compose.yml" convert --format json api)"; \
[[ "$$convert_json_output" == *'"api"'* ]]; \
[[ "$$convert_json_output" != *'"db"'* ]]; \
convert_services_output="$$(".build/debug/compose" -f "$$tmpdir/compose.yml" convert --services)"; \
[[ "$$convert_services_output" == *"api"* ]]; \
[[ "$$convert_services_output" == *"db"* ]]; \
convert_hash_output="$$(".build/debug/compose" -f "$$tmpdir/compose.yml" convert --hash api)"; \
[[ "$$convert_hash_output" == api" "* ]]; \
config_output_path="$$tmpdir/config-output.yaml"; \
".build/debug/compose" -f "$$tmpdir/compose.yml" config --output "$$config_output_path"; \
[[ -s "$$config_output_path" ]]; \
convert_output_path="$$tmpdir/convert-output.yaml"; \
".build/debug/compose" -f "$$tmpdir/compose.yml" convert --output "$$convert_output_path"; \
[[ -s "$$convert_output_path" ]]; \
config_environment_output="$$(COMPOSE_CONFIG_ENV_SMOKE=ok ".build/debug/compose" -f "$$tmpdir/compose.yml" config --environment)"; \
[[ "$$config_environment_output" == *"COMPOSE_CONFIG_ENV_SMOKE=ok"* ]]; \
compact_global_output="$$(".build/debug/compose" --dry-run -pcompact -f"$$tmpdir/compose.yml" up api)"; \
[[ "$$compact_global_output" == *"compact-db-1"* ]]; \
[[ "$$compact_global_output" == *"compact-api-1"* ]]; \
pull_options_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" pull --include-deps --ignore-pull-failures --policy missing -q api)"; \
[[ "$$(printf '%s\n' "$$pull_options_output" | grep -c "container image inspect alpine")" == "2" ]]; \
pull_window_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/pull-window.yml" up api)"; \
[[ "$$pull_window_output" == *"container image inspect alpine"* ]]; \
[[ "$$pull_window_output" == *"container image pull alpine"* ]]; \
[[ "$$pull_window_output" == *"container run"* ]]; \
pull_build_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/pull-build.yml" up api)"; \
[[ "$$pull_build_output" == *"container build --tag example/api:build"* ]]; \
[[ "$$pull_build_output" == *"container run"* ]]; \
tmpfs_options_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/tmpfs-options.yml" up api)"; \
[[ "$$tmpfs_options_output" == *"--mount type=tmpfs,destination=/scratch,size=67108864,mode=1777"* ]]; \
[[ "$$tmpfs_options_output" != *"--tmpfs /scratch"* ]]; \
push_options_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" push --include-deps --ignore-push-failures -q api)"; \
[[ "$$(printf '%s\n' "$$push_options_output" | grep -c "container image push alpine")" == "2" ]]; \
run_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run api echo hello)"; \
[[ "$$run_output" == *"container run"* ]]; \
[[ "$$run_output" == *"demo-db-1"* ]]; \
[[ "$$run_output" == *"--volume demo_cache:/db-cache:ro"* ]]; \
[[ "$$run_output" == *"--volume $$tmpdir/api.conf:/etc/api.conf:ro"* ]]; \
[[ "$$run_output" == *"--volume $$tmpdir/api-token.txt:/run/secrets/api_token:ro"* ]]; \
[[ "$$run_output" == *" alpine echo hello"* ]]; \
[[ "$$run_output" != *"--publish 8080:80"* ]]; \
run_service_ports_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run --service-ports api echo hello)"; \
[[ "$$run_service_ports_output" == *"--publish 8080:80"* ]]; \
run_dynamic_service_ports_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/dynamic-ports.yml" run --service-ports api echo hello)"; \
[[ "$$run_dynamic_service_ports_output" == *"--publish "*":80"* ]]; \
run_publish_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run -p 9090:90 api echo hello)"; \
[[ "$$run_publish_output" == *"--publish 9090:90"* ]]; \
[[ "$$run_publish_output" != *"--publish 8080:80"* ]]; \
run_aliases_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/aliases.yml" run --use-aliases api echo hello 2>&1 || true)"; \
[[ "$$run_aliases_output" == *"unsupported compose feature: service 'api' uses network aliases; apple/container registers aliases but cannot resolve them inside service containers until it exposes container-facing DNS"* ]]; \
run_capability_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run --cap-add SYS_PTRACE --cap-drop NET_RAW api echo hello)"; \
[[ "$$run_capability_output" == *"--cap-add SYS_PTRACE"* ]]; \
[[ "$$run_capability_output" == *"--cap-drop NET_RAW"* ]]; \
build_secret_output="$$(NPM_TOKEN=local-secret ".build/debug/compose" --dry-run -f "$$tmpdir/build-secrets.yml" build --pull --with-dependencies -q api)"; \
[[ "$$build_secret_output" == *"--secret id=file_token,src=$$tmpdir/build-token.txt"* ]]; \
[[ "$$build_secret_output" == *"--secret id=npm_token,env=NPM_TOKEN"* ]]; \
[[ "$$build_secret_output" == *"--pull"* ]]; \
[[ "$$build_secret_output" == *"--quiet"* ]]; \
build_arg_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/build-only.yml" build --build-arg VERSION=2 --memory 256m worker)"; \
[[ "$$build_arg_output" == *"--memory 256m"* ]]; \
[[ "$$build_arg_output" == *"--build-arg VERSION=2"* ]]; \
build_print_output="$$(BUILD_PRINT_ENV=ok ".build/debug/compose" --ansi never --progress quiet -f "$$tmpdir/build-only.yml" build --print --provenance=false --sbom=false --build-arg VERSION=2 --build-arg BUILD_PRINT_ENV worker)"; \
[[ "$$build_print_output" == *'"target"'* ]]; \
[[ "$$build_print_output" == *'"worker"'* ]]; \
[[ "$$build_print_output" == *'"VERSION" : "2"'* ]]; \
[[ "$$build_print_output" == *'"BUILD_PRINT_ENV" : "ok"'* ]]; \
[[ "$$build_print_output" == *'"type=docker"'* ]]; \
[[ "$$build_print_output" != *"container build"* ]]; \
build_provenance_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/build-only.yml" build --provenance=mode=max worker)"; \
[[ "$$build_provenance_output" == *"container build"*"--provenance mode=max"* ]]; \
build_sbom_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/build-only.yml" build --sbom=true worker)"; \
[[ "$$build_sbom_output" == *"container build"*"--sbom true"* ]]; \
build_ssh_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/build-only.yml" build --ssh default worker)"; \
[[ "$$build_ssh_output" == *"container build"*"--ssh default"* ]]; \
build_inline_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/build-inline.yml" build api)"; \
[[ "$$build_inline_output" == *"container build"* ]]; \
[[ "$$build_inline_output" == *"--tag example/api:inline"* ]]; \
[[ "$$build_inline_output" == *"--file "*"container-compose-inline-build-api-"*"/Dockerfile"* ]]; \
run_pull_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run --pull missing api true)"; \
[[ "$$run_pull_output" == *"container image inspect alpine"* ]]; \
[[ "$$run_pull_output" == *"container image pull alpine"* ]]; \
[[ "$$run_pull_output" == *" alpine true"* ]]; \
run_quiet_pull_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run --pull always --quiet-pull api true)"; \
[[ "$$run_quiet_pull_output" == *"container image pull --progress none alpine"* ]]; \
run_build_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/build-only.yml" run --build --quiet-build worker true)"; \
[[ "$$run_build_output" == *"container build"* ]]; \
[[ "$$run_build_output" == *"--quiet"* ]]; \
[[ "$$run_build_output" == *"container run"* ]]; \
run_interactive_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run --interactive api true)"; \
[[ "$$run_interactive_output" == *"--interactive"* ]]; \
run_quiet_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run --quiet api true)"; \
[[ "$$run_quiet_output" == *"container run"* ]]; \
[[ "$$run_quiet_output" == *" alpine true"* ]]; \
run_named_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run --name custom-api api echo hello)"; \
[[ "$$run_named_output" == *"--name custom-api"* ]]; \
[[ "$$run_named_output" == *" alpine echo hello"* ]]; \
run_entrypoint_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run --entrypoint "/bin/sh -c" api echo hello)"; \
[[ "$$run_entrypoint_output" == *"--entrypoint '/bin/sh -c'"* ]]; \
[[ "$$run_entrypoint_output" == *" alpine echo hello"* ]]; \
run_workdir_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run --workdir /workspace api pwd)"; \
[[ "$$run_workdir_output" == *"--workdir /workspace"* ]]; \
[[ "$$run_workdir_output" == *" alpine pwd"* ]]; \
run_user_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run -u 1000:1000 api id)"; \
[[ "$$run_user_output" == *"--user 1000:1000"* ]]; \
[[ "$$run_user_output" == *" alpine id"* ]]; \
run_compact_user_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run -u1000:1000 api id)"; \
[[ "$$run_compact_user_output" == *"--user 1000:1000"* ]]; \
[[ "$$run_compact_user_output" == *" alpine id"* ]]; \
run_env_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run -e LOG_LEVEL=debug --env-from-file .env.local api env)"; \
[[ "$$run_env_output" == *"--env LOG_LEVEL=debug"* ]]; \
[[ "$$run_env_output" == *"--env-file .env.local"* ]]; \
[[ "$$run_env_output" == *" alpine env"* ]]; \
run_compact_env_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run -eLOG_LEVEL=trace api env)"; \
[[ "$$run_compact_env_output" == *"--env LOG_LEVEL=trace"* ]]; \
[[ "$$run_compact_env_output" == *" alpine env"* ]]; \
run_label_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run -l com.example.role=job api true)"; \
[[ "$$run_label_output" == *"--label com.example.role=job"* ]]; \
[[ "$$run_label_output" == *" alpine true"* ]]; \
run_compact_label_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run -lcom.example.compact=true api true)"; \
[[ "$$run_compact_label_output" == *"--label com.example.compact=true"* ]]; \
[[ "$$run_compact_label_output" == *" alpine true"* ]]; \
run_volume_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run -v /host:/container:ro api ls)"; \
[[ "$$run_volume_output" == *"--volume /host:/container:ro"* ]]; \
[[ "$$run_volume_output" == *" alpine ls"* ]]; \
run_compact_volume_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run -v/host:/container:ro api ls)"; \
[[ "$$run_compact_volume_output" == *"--volume /host:/container:ro"* ]]; \
[[ "$$run_compact_volume_output" == *" alpine ls"* ]]; \
run_compact_workdir_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run -w/workspace api pwd)"; \
[[ "$$run_compact_workdir_output" == *"--workdir /workspace"* ]]; \
[[ "$$run_compact_workdir_output" == *" alpine pwd"* ]]; \
run_detached_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run -d api sleep 60)"; \
[[ "$$run_detached_output" == *"--detach"* ]]; \
[[ "$$run_detached_output" == *" alpine sleep 60"* ]]; \
run_tty_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run shell sh)"; \
[[ "$$run_tty_output" == *"--tty"* ]]; \
[[ "$$run_tty_output" == *"--interactive"* ]]; \
run_no_tty_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run -T shell sh)"; \
[[ "$$run_no_tty_output" != *"--tty"* ]]; \
[[ "$$run_no_tty_output" == *"--interactive"* ]]; \
run_deps_metadata_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run job true 2>&1 || true)"; \
[[ "$$run_deps_metadata_output" == *"container inspect "*"db-1"* ]]; \
[[ "$$run_deps_metadata_output" == *"--name "*"db-1 --detach"* ]]; \
[[ "$$run_deps_metadata_output" == *"--name "*"job-run-"* ]]; \
[[ "$$run_deps_metadata_output" == *" alpine true"* ]]; \
run_no_deps_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run --no-deps job true)"; \
[[ "$$run_no_deps_output" == *"container run"* ]]; \
[[ "$$run_no_deps_output" == *" alpine true"* ]]; \
run_no_network_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" run isolated true)"; \
[[ "$$run_no_network_output" == *"--network none"* ]]; \
[[ "$$run_no_network_output" == *" alpine true"* ]]; \
up_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" up api)"; \
[[ "$$up_output" == *"container network create --internal --subnet 10.77.0.0/24 --subnet-v6 fd77::/64"* ]]; \
[[ "$$up_output" == *"container volume create --opt journal=ordered --opt size=64m"* ]]; \
[[ "$$up_output" == *"container run"* ]]; \
[[ "$$up_output" == *"demo-db-1"* ]]; \
[[ "$$up_output" == *"--publish 8080:80"* ]]; \
[[ "$$up_output" == *"--volume demo_cache:/db-cache:ro"* ]]; \
[[ "$$up_output" == *"--volume $$tmpdir/api.conf:/etc/api.conf:ro"* ]]; \
[[ "$$up_output" == *"--volume $$tmpdir/api-token.txt:/run/secrets/api_token:ro"* ]]; \
[[ "$$up_output" == *"--dns-option use-vc"* ]]; \
[[ "$$up_output" == *"--network demo_default,mac=02:42:ac:11:00:03,mtu=1450"* ]]; \
[[ "$$up_output" == *"--label example.com/owner=platform"* ]]; \
[[ "$$up_output" == *"--name demo-db-1 --detach"* ]]; \
[[ "$$up_output" != *"--name demo-api-1 --detach"* ]]; \
up_no_attach_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" up --no-attach api api)"; \
[[ "$$up_no_attach_output" != *"--name demo-db-1 --detach"* ]]; \
[[ "$$up_no_attach_output" == *"--name demo-api-1 --detach"* ]]; \
up_attach_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" up --attach api api)"; \
[[ "$$up_attach_output" == *"--name demo-db-1 --detach"* ]]; \
[[ "$$up_attach_output" == *"--name demo-api-1 --detach"* ]]; \
[[ "$$up_attach_output" == *"compose-runtime logs --follow demo-api-1"* ]]; \
[[ "$$up_attach_output" != *"compose-runtime logs --follow demo-db-1"* ]]; \
up_attach_dependencies_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" up --attach api --attach-dependencies api)"; \
[[ "$$up_attach_dependencies_output" == *"compose-runtime logs --follow demo-db-1"* ]]; \
[[ "$$up_attach_dependencies_output" == *"compose-runtime logs --follow demo-api-1"* ]]; \
up_exit_code_from_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" up --exit-code-from api api)"; \
[[ "$$up_exit_code_from_output" == *"--name demo-db-1 --detach"* ]]; \
[[ "$$up_exit_code_from_output" == *"--name demo-api-1 --detach"* ]]; \
[[ "$$up_exit_code_from_output" == *"compose-runtime wait demo-api-1"* ]]; \
[[ "$$up_exit_code_from_output" == *"container stop demo-db-1"* ]]; \
[[ "$$up_exit_code_from_output" == *"container delete demo-api-1"* ]]; \
up_attach_false_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/attach-false.yml" up api)"; \
[[ "$$up_attach_false_output" == *"--name demo-api-1 --detach"* ]]; \
for unsupported_up_option in \
"--menu"; do \
up_unsupported_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" up $$unsupported_up_option api 2>&1 || true)"; \
up_unsupported_name="$${unsupported_up_option%% *}"; \
[[ "$$up_unsupported_output" == *"unsupported compose feature: up $$up_unsupported_name"* ]]; \
done; \
up_timestamps_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" up --timestamps api)"; \
[[ "$$up_timestamps_output" == *"--name demo-api-1 --detach"* ]]; \
[[ "$$up_timestamps_output" == *"compose-runtime logs --follow --timestamps demo-api-1"* ]]; \
up_watch_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/watch.yml" up --watch --no-deps api)"; \
[[ "$$up_watch_output" == *"compose: watch project demo services api"* ]]; \
[[ "$$up_watch_output" == *"compose: watch initial-up enabled"* ]]; \
[[ "$$up_watch_output" == *"compose: watch api rebuild path="*"/src"* ]]; \
up_watch_detach_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/watch.yml" up --watch --detach api 2>&1 || true)"; \
[[ "$$up_watch_detach_output" == *"unsupported compose feature: up --detach cannot be combined with --watch"* ]]; \
up_watch_wait_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/watch.yml" up --watch --wait api 2>&1 || true)"; \
[[ "$$up_watch_wait_output" == *"unsupported compose feature: up --wait cannot be combined with --watch"* ]]; \
up_detached_log_options_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" up --detach --no-color --no-log-prefix --timestamps api)"; \
[[ "$$up_detached_log_options_output" == *"container run"* ]]; \
[[ "$$up_detached_log_options_output" == *"--name demo-api-1 --detach"* ]]; \
up_wait_log_options_output="$$(".build/debug/compose" --dry-run -f "$$tmpdir/compose.yml" up --wait --no-color --no-log-prefix --timestamps api)"; \