summaryrefslogtreecommitdiffstats
path: root/recipes-containers/docker-compose
Commit message (Collapse)AuthorAgeFilesLines
* recipes/golang: improve reproducibilityChangqing Li2026-02-091-3/+3
| | | | | | | | | | | | | Refer [1], cgo will embeded cgo_ldflags in the intermediary output, which make content ID will be incfluenced by cgo_ldflags. '--sysroot=xxx' includes build path, which will make the binary not reproducible, these recipes can build successfully without --sysroot, so remove it [1] https://git.openembedded.org/openembedded-core/commit/?id=1797741aad02b8bf429fac4b81e30cdda64b5448 Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: regenerate go-mod/shallow/hybridBruce Ashfield2026-01-044-1201/+960
| | | | | | | | | There were some issues with hyrid vcs mode and shallow clones. The tools have been updated to deal with those issues, so we regenerate to pick them up. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: refresh hybrid gomod filesBruce Ashfield2026-01-033-11/+5
| | | | | | | | | | | After a hybrid fetcher fix to remove duplicates, the following was run: python3 scripts/oe-go-mod-fetcher-hybrid.py \ --recipedir recipes-containers/docker-compose/ \ --git "github.com/containerd,github.com/kubernetes" Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: convert to hybrid gmod-vcsBruce Ashfield2025-12-084-2/+596
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: update to v5.0.0Bruce Ashfield2025-12-083-567/+563
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumping compose to version v2.26.1-849-g9fada6cc2, which comprises the following commits: 9fada6cc2 Bumped build images: tonistiigi/xx:1.9.0, crazymax/osxcross:15.5 85ea24b62 Fix grammar: pluralize 'service' and remove apostrophes in lets 000a4a4b9 check buildx version before comparing it 08de90c26 bump golang 1.24.11 cfcee45a8 fix SDK example 13d70b1c1 refactor: replace interface{} with any for clarity and modernization 72f4d655e Bump compose go to v2.10.0 dc66e6bad golangci-lint: use gci formatter instead of goimports 8d9d5259e Fix grammar: change 'adopted' to 'adopt' in Docker Swarm note b32297dcc add --wait option to start command af8cac576 just warn user 8477a85ce feat(model): reject runtime flags in model configuration 6ee714635 build(deps): bump golang.org/x/crypto v0.45.0 f28503426 build(deps): bump github.com/hashicorp/go-version from 1.7.0 to 1.8.0 e0977c2df only check for env_file 2d569916f skip includes preparing publish 3975f0215 refactor: use strings.Builder to improve performance fa832d72d Added support for build.no_cache_filter 822f5a702 refactor: replace Split in loops with more efficient SplitSeq 68bb7a71b bump dependencies 6f365395e Fix support for port range 305293462 build(deps): bump github.com/docker/buildx from v0.29.1 to v0.30.0 428abab16 build(deps): bump github.com/moby/buildkit from v0.25.2 to v0.26.0 755618e70 build(deps): bump go.opentelemetry.io/otel v1.38.0, go.opentelemetry.io/contrib v0.63.0 c47b8c32e Dockerfile: update golangci-lint to v2.6.2 89d394483 fix linting issues f2b14fe1a gha: use custom names for matrix bd2257b6d gha: test against docker v29, v28 d7e5f20eb images command should display image Created time or N/A if not available 2b4543935 next release will be major version v5.x f0dce1b97 sdk docs: patch 6e55832b1 add (restore) support for detach keys 45def5111 make DRYRUN_PREFIX a display attribute, move DryRunClient out of pkg/api aff5c115d move progress UI components into cmd 5ef495c89 removed unecessary check 9de7e2a38 SDK docs dc90c4e44 Grammatical fix 91e1753d8 Grammatical fix 9db27a65c Making the American/British spellings consistent to the error messages efd7424da build(deps): bump golang.org/x/sync from 0.17.0 to 0.18.0 02109c8d3 build(deps): bump golang.org/x/sys from 0.37.0 to 0.38.0 c37ede62d on up buildOptions must include all enabled services 7eb5adeef introduce --insecure-registry, reserved for testing purpose 0793ad7c6 document support for OCI and Git remote resources 8137b2bce build(deps): bump github.com/docker/cli 4e3372b47 build(deps): bump github.com/containerd/containerd/v2 fef26fb37 build(deps): bump github.com/docker/docker a32e13a2b build(deps): bump github.com/moby/buildkit from 0.25.1 to 0.25.2 67e39a41f fixes dc1283289 fix: use NewParallelCLI in compose_run_build_once_test.go 0c596ed3c build(deps): bump github.com/containerd/platforms 13870006f disable progress UI when build is ran with --print af579ebd4 drop support for internal buildkit builder fc2a7d13f from Compose CLI, we know the streams used to configure LogConsumer d70bb8cf5 distinguish event (short) status text and details bff3d3530 render events in order they were first received b80bb0586 Migrate CLI commands to use LoadProject API d74274bc0 Add LoadProject method to Compose SDK API 10f15cacd fix typo in error message 3658a063b add AlwaysOkPrompt to replace 'AlwaysYes' current implementation' 74a4ccdd8 fix various linting issues 6719f47bd test checking bake internal load build definition 3eb2934eb bump compose-go to version v2.9.1 c416ea703 fix compose_run_build_once_test.go 0d396bbac fix(git): Add validation for Git subdirectory paths to prevent traversal fc74c7896 Update e2e tests in compose_run_build_once_test.go to use project names for Docker Compose commands. 658bff335 Revert "no parallel in compose_run_build_once_test.go" 80030e139 no parallel in compose_run_build_once_test.go 6a35be511 lint fix 0c854a6ab add e2e tests 557e0b6ec fix(run): Ensure images exist only for the target service in run command a8933c91e stop progress UI during build to prevent interference with buildkit Display 7e3993bca skip Start[ed|ing] events to avpd mix with container logs fd4f2f99c register TTYWritter as an Event Processor ae25d27e5 remove unused RunWithStatus, always pass operation as title 394466683 use eventBus to collect tasks progress e5c8b6864 decouple Event from tty progress writer bf50c9919 pretend cli.Out is a containerd console.File 8274be8d0 configure Compose service with io.Reader and io.Writer remove usage of internal IO interfaces 86e91e010 Add streamOverrideWrapper to intercepts command.Cli stream methods and transparently returns custom streams when provided via options Add new GetConfiguredStreams function to Compose API definition e1678c5c4 Introduce abstractions to support SDK usage without requiring Docker CLI 5924387e8 run hooks on restart 7f668bd7f Setup Compose service using functional parameters This commit introduces WithMaxConcurrency and WithDryRun to replace direct mutators on composeService commands and flags are translated into a set of functional parameters which are eventually applied as a ComposeService is created just before being actually used by a command 3ce52883c prompt default implementation to prevent a panic ac3b8fd8a Code Cleanup 8619f5d72 Fix help output for "exec --no-tty" option e59150baa fix OCI compose override support 6a90742ef Test to check writeComposeFile detects invalid OCI artifact 6007d4c7e publish env_file references as opaque hash to prevent paths conflicts 69bcb962b Enforce compose files from OCI artifact all get into the same target (cache) folder 9b4fcce03 introduce WithPrompt to configure compose backend to use a plugable UI component for user interaction da5c57c29 test digest or canonical reference, not only tag, when checking if an image is already present e25265dd5 remove unused code to only rely on api.Service e19e1278b fail build if minimal required version of buildx isn't installed 585c4db4f Compose can't create a tar with adequate uid:gid ownership as we can't get container UID/GID as int by ContainerInspect revert https://github.com/docker/compose/pull/13288 be8c7e6c6 make CTRL+Z a no-op operation on Windows 27f59d7f4 Detect failure to access os.TempDir 2681ed17a mutualize code from injectSecrets / injectConfigs ee75be342 Set secret/config uid:gid to match container's USER 157617480 fix race-condition bug in publish command 88aae9c46 support Ctrl+Z to run compose in background 775530234 use fixed version of compose bridge transformer images to avoid CI issue on Compose when a new version is released and change the outputs 147923c44 bump golang to version 1.24.9 289faae5f fix(publish): in `publish()`, select all profiles in the `project` to publish. e7aa484b7 fix(publish): in `processFile()`, load the compose file passing the `project.Profiles` to the `loader.Options`. ae3309afa pkg/compose: build with bake: drop support for buildx v0.16 and lower 0b5fb36eb build(deps): bump docker/buildx v0.29.1, moby/buildkit v0.25.1 63920c4cc pkg/compose: align classic builder implementation with docker/cli a03f2562d bake only interpolates ${*} a07f2b8de build(deps): bump golang.org/x/sys from 0.36.0 to 0.37.0 f45a3ebcf build(deps): bump github.com/docker/cli 7fec70b6c build(deps): bump github.com/docker/docker ce463d50b Fix: set PWD only if not set fa7e85ed8 Write error to watcher error channel if Start() fails d9423f687 build(deps): bump github.com/docker/cli 5add90240 build(deps): bump github.com/docker/docker 07602f207 publish Compose application as compose.yaml + images cf7e31f73 escape $ in bake.json as interpolation already has been managed by compose fa0812745 use containerd client for OCI operations 4ee52ad16 pass bake secrets by env 4a4776ec5 cmd/compose: fix minor linting issues 713de5bb9 pkg/compose: explicitly map AuthConfig fields instead of a direct cast 9ded1684c gha: update test-matrix: remove docker 26.x 8bc8593fd provider services: use '--project-name=' notation 8978c1027 use containerd registry client 032e0309e cmd: pluginMain: use WithUserAgent option 38ba35e16 pkg/mocks: re-generate mocks 56e0ba808 build(deps): bump github.com/docker/docker, docker/cli v28.5.0-rc.1 9752fa550 pluginMain: remove uses of DockerCLI.Apply 4761fd88b pkg/compose: build: remove permissions warning on Windows 02c8e6354 pkg/watch: remove unused IsWindowsShortReadError ab7a6e932 pkg/compose: remove uses of deprecated mitchellh/mapstructure module 2ca7b96e3 resolve secrets based on env var before executing bake a32dc3da7 test: Set stop_signal to SIGTERM db260938c bump compose-go to version v2.9.0 5aea94794 Update comment on run command with tty & piped command d07c437ce dectect if piped run command and disable tty if so da72230c3 remove tty attribute from run options and use dedicated variable to avoid confusion a429c09df fix support for build with bake when target docker endpoint requires TLS df3c27c86 add deprecation warning for x-initialSync + e2e test 956891af5 add support of develop.watch.initial_sync attribute a47334105 volume ls command can run without a project 385b3f5c9 bump compose-go to version v2.8.2 2d482e61c propagate docker endpoint to bake using DOCKER_* env variables c75418ee0 Apply suggestions from code review 0cdc5c9bf rename --no-TTY => --no-tty for consistency b768232c0 document (hidden) --tty --interactive flags 09689400e fix run --build support for service:* reference in additional_context cb3691154 detect container is restarted b387ba4a0 only load COMPOSE_* from $PWD/.env 7cd569922 only propagate os.Env to bake, not the whole project.Environment eec2bb7ea only force plain mode build if progress is set to auto 2c15aef2e build(deps): bump golang.org/x/sys from 0.35.0 to 0.36.0 290366205 build(deps): bump golang.org/x/sync from 0.16.0 to 0.17.0 a91ca95a7 bump golang to version 1.24.7 to align with moby/moby version beb81a73f pkg/compose: remove aliases for container-state consts f21720787 pkg/compose: use state consts from moby API 02ffe2ac6 prefer application container vs one-off running `exec` without index f48131fb6 build(deps): bump github.com/spf13/pflag from 1.0.9 to 1.0.10 4dd369bdc fix sigint/sigterm support in logs --follow ad73766bf build(deps): bump github.com/docker/buildx from 0.28.0-rc2 to 0.28.0 3c1f5a181 go.mod: bump github.com/docker/docker, docker/cli v28.4.0 42d1e4c33 build(deps): bump github.com/spf13/cobra from 1.9.1 to 1.10.1 6ca8663bd build(deps): bump github.com/spf13/pflag from 1.0.7 to 1.0.9 b33ecf65e go.mod: bump buildx v0.28.0-rc2, buildkit v0.24.0-rc2 04b8ac5fe Unquote volume names in creation events d09948da4 build(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.1 f1efbb832 use enum-consts for State and Health 1d52012b8 go.mod: bump buildkit v0.24.0-rc1, buildx v0.28.0-rc1 1d69f4a68 pkg/compose: composeService.Up: rewrite without go-multierror 6078b4d99 Fix: use image created time when last tag time is not present Signed-off-by: Kian Eliasi <kian.elbo@gmail.com> 73e593e69 Fix: incorrect time when last tag time is not set 51499f645 pkg/compose: pull: use native multi-errors 5165b0f81 internal/tracing: replace go-multierror.Group with sync.WaitGroup 93dd1a455 internal/sync: replace go-multierror.Group with golang.org/x/sync/errgroup ba3f5664c cmd/formatter: remove unused SetMultiErrorFormat c420bc44c check the assume yes publish flag command before the presence of bind mounts 60681a824 Add e2e test to verify `docker compose down` works even when env file is missing 19ad737ee Fix runtime ops with missing env file d3a260e53 add completions for the --progress flag e75329dce build(deps): bump go.uber.org/mock from 0.5.2 to 0.6.0 1dc0be2c3 go.mod: github.com/docker/buildx v0.27.0 3bac9ffd0 Refactor to use maps.Copy f266715dd add --provenance and --sbom flag to generated bake command line, also add attestation per-service configuration to generated bake target c2cb0aef6 only monitor attached services on up command fbc62d111 bump golang to 1.23.12 0d40064ce build(deps): bump golang.org/x/sys from 0.34.0 to 0.35.0 91a6eafa1 build(deps): bump github.com/docker/go-connections from 0.5.0 to 0.6.0 f36ee00f7 Add go as a prerequesite in build instructions 29ede3ba7 build(deps): bump github.com/containerd/containerd/v2 bf6d7bf47 define pull and no_cache from either service or flags values when building with bake fc66da06d pkg/compose: simplify getting auth-config key 909211dd6 use cli-plugins/metadata package 0dc9852c6 build(deps): bump github.com/docker/docker a47870223 build(deps): bump github.com/docker/cli 2c12ad19d use log API for containers we didn't attached to 038ea8441 apply BUILDKIT_PROGRESS value when building with bake 9e98e6101 add missing _MODEL suffix to model variable pass to dependent services of a model 52f04229c fixed lint error 28895d032 fix lint error a926f7d71 Elimneted magic string fe046915e buildkit require os.Stdout to access the raw terminal adbd61e5d fixed lint error e37ac0432 deleted useless comment cab2c2a44 Refactoring of redundant condition checks 1946de598 improved lint error 8e29a138a improved test 3c8da0afe Add test of json.go 1b12c867c add Streams Comment 1a4fc55fd bump compose-go to v2.8.1 efc939dce add info about models usage to OpenTelemetry spans d6e9f79ba Integration of SetAttributes calls b4c44a431 Eliminate magic number in init functions fb5a8644c Efficiency of ansiColorCode function 95660c5e5 bump buildx to v0.26.1 f6ddd6ae8 use output registry when push true and load to docker store if not 4ae706695 build(deps): bump google.golang.org/grpc from 1.73.0 to 1.74.2 fd954f266 show build progress during watch rebuild d62e21025 forward git command error to user 6a2d16bd1 bump compose-go to version v2.8.0 4d47da6dc do not pass user id on Windows system as engine is not able to handel it 8f91793fb introduce build.provenance and sbom support 1d2223fb2 pkg/compose: use local copy of pkg/system.IsAbs d4f600071 remove import aliases for containerd/errdefs c50d16cd7 pkg/compose: remove uses of moby/errdefs 3875e13fa simpler stop UI c89f30170 force plain displaymode if stdout isn't a terminal 41a9b9188 warn user COMPOSE_BAKE=false is deprecated 5fc2b2a71 fix yaml indentation b1cd40c31 swarm 362ab0733 build(deps): bump github.com/spf13/pflag from 1.0.6 to 1.0.7 f35d2cfb3 monitor must watch events even when context is cancelled 17ba6c718 abstract model-cli commands execution with a model (pseudo) API 1c37f1abb use logs API with Since to collect the very first logs after restart 485b6200e (refactoring) introduce monitor to manage containers events and application termination 8c17a3560 don't run navigation menu if stdin isn't a terminal 6b9667401 fix the helm bridge e2e tests after the latest update of the templates 9a1e589ce Fix report image name in bake result 5e147e852 add default compose labels to images built from bake 29308cb97 keep containers attached on stop to capture termination logs 0b0242d0a add dry-run support to bake build 5a704004d Add a space character to separate the timestamp from the log message cb9591001 chore: print model attribute instead of model name used in compose file f42226e35 feat: add --models flag to config command 0cc3c7a55 bump dependencies f7ee9c8a0 feat(os): add FreeBSD support 35efa97b7 feat: add since & until flags to events command 9e17a091b build(deps): bump github.com/docker/docker 4bbc6c609 add USER_AGENT variable to cmd when shellouting 69f1430a4 resolve Dockerfile symlink but file name 7cf7c6414 build resolves enabled service after project has been loaded 0e0ed91a3 fix: lint errors 66524e772 feat: add --networks flag to config command c626befee fix the way we're checking if the provider metadata are empty or not 60ee6adcd a single place for shell-out command setup 8faf1eb80 build(deps): bump github.com/docker/cli 3b0601b67 build(deps): bump github.com/moby/buildkit from 0.23.1 to 0.23.2 f42374bb1 add a Done event to model progress display b046a5ef7 chore: fix some minor issues in the comments 1570c6c07 bump go-viper/mapstructure to version v2.3.0 Fix https://github.com/advisories/GHSA-fv92-fjc5-jj9h 674e13fb6 bump golang to v1.23.10 Fix Vulnerability Report: GO-2025-3751 6fa173124 (reactoring) avoid a global variable by introducing logConsumer decorator 2c69fc3d4 pkg/compose: remove redundant uses of strslice.StrSlice 317ebcd3b implement model_variable 5cf1f0e2a bump compose-go to version v2.7.1 6198ed5bd fix linting errors 00ccddbde add volumes command test cases 63b441401 add volumes docs/reference/ 3a7982fe4 add service filter to volumes command 5430caa17 add volumes command ee1b1e0a9 run docker model configure 26e46d7cc e2e tests in CI a9e76943f introduce support for models b6a0df8d3 e2e compose run --env 5a063b751 fix provider concurrent environment map accesses ae49bba9b build(deps): bump github.com/docker/docker 51acc5845 mount /var/run/docker.sock for --use-api-socket 7c999d7f9 improve publish bind mount warning message ad750d614 remove publish limitation on bind mount list all bind mounts and ask user validation before publishing fe382df50 build(deps): bump github.com/docker/cli 6501d59ef pass project.environment to bake 33a782572 fix: typos 65803ea12 remove error message from exec outpout by default Add the error as a log for verbose mode f61337937 make sure the post_start hooks fails before we were assuming the container will be close before the post_start will be executed 3553aa26a add a default statut messsage to exec error to avoid empty line display 257ea7b75 Swap to Reader in bake to avoid hangs on output d219aa66f don't fail down cmd if services with pre_stop hook already stopped/removed c9ebfad78 exclude provider services from the list of dependencies that Compose should wait for 8e57362a0 use errdefs.IsNotImplemented to check if the logging is not implemented 29630f184 check progress default value instead of empty string to use BUILDKIT_PROGRESS env variable value 6514c680a only expose API socket to service asking for it 3394bf031 propagate target docker host set by --host to Bake 832a08f57 build(deps): bump github.com/moby/buildkit from 0.23.0 to 0.23.1 aadce87b1 inject secrets/config just before container is started b3207c455 setting buildOptions.Services triggers image to be always rebuilt 769b7391b don't create from run command during dependencies creation process 149b882eb don't create from run command during dependencies creation process c97e40e2b pkg/compose: remove uses of ExecOptions.Detach 22e23bd4d networkMode 2dde5faeb add support for cache_to with bake f7825a56b bump buildx to v0.25 4cf075ea0 bump compose-go to v2.6.5 4f491ffa9 fix panic using w shortcut on project without watch support ea1c26d22 restore ContainerName in images --json 9a5fa05ad add (temporary) support for use_api_socket 276c22945 move `run` logic inside backend eef448dc6 build(deps): bump github.com/containerd/containerd/v2 343117233 build(deps): bump google.golang.org/grpc from 1.72.2 to 1.73.0 f599a8cdd add support for extra_hosts building with bake 63b06f556 fix panic on failure starting plugin server 1d34661e9 fix support for additional_contexts with service sub-dependencies 0f9e6ab83 Fix the generated manifest for compose artifacts so that the empty config is not added as a layer. 15c9651a3 restore os.Remove(metadataFile) 4893a8b9a don't create metadatafile, just generate a random name 97530790f only look for required image in bake metadata 213c03f99 produce bake targets for all services, group for services to build ebd7b761f sanitize service name so they can be used as bake targets ea48480d8 Restore images format list format behaviour 8151b5928 bump golang.org/x/sync v0.15.0 ec49baca5 do not forgot to remove the bake metadata file few DD e2e tests failed on Windows due to permission issues 7b9ad9624 fix SIGSEGV on Enable Watch 9b67a48c3 (refactoting) Move watch logic into a dedicated Watcher type 0d0e12cc8 use Bake by default 92fafccfb add validation for required parameters of provider service when metadata are available fee8aee8f save provider metadata for Docker LSP 40f5786e6 add support of metadata subcommand for provider services This command will let Compose and external tooling know about which parameters should be passed to the Compose plugin 61e44da93 debug message to help diagnose platform mismatch 0bf7d1ea2 pull does not require env_file being resolved 80ace63df build(deps): bump google.golang.org/grpc from 1.72.1 to 1.72.2 27e90a3fd end-to-end test 3ca75bdf5 Fix the inability to restart the Compose stack after network configuration change eb3074bbd include platform and creation date listing image used by running compose application f4fc010d6 build dependent service images when required 693b9ef07 fix support for BUILDKIT_PROGRESS 046879a4a replace uses of golang.org/x/exp/(maps|slices) for stdlib 7c79b2300 pkg/bridge: fix importShadow: shadow of imported package (gocritic) ad4cbee49 bump github.com/docker/docker, docker/cli v28.2.2 60256a875 fix typo in suggestion log 45bd60c33 resolve symlinks while making dockerfile path absolute cf89fd1aa also (re)start dependent services after watch rebuilt image 23fef850b prefer use of slices.DeleteFunc 12b73bea7 remove utils.Contains to prefer slice.ContainsFunc 2e71440be refactor: use slices.Contains to simplify code d49a68ecb bridge - run transformer container as current user be83f63f2 add e2e tests for bridge convert and transformers ls commands 9a9227ce6 add new bridge commands documentation 024f8ebdc add convert subcommand to bridge command 8c622da20 add bridge command and transformations subcommands bbb2b76a1 bump cli-doc-tools to v0.10.0 and update the documentation to pass CI checks e45e58b3e bumpd buildkit v0.22.0 and buildx v0.24.0 f52af4c86 bump compose-go to v2.6.4 a54814ff3 e2e test a2d7548ca fix up --build with additional_context dependency 8a2cb90a3 example provider implementation cc50ada72 report error (re)creating container 5c74f0799 build(deps): bump github.com/containerd/containerd/v2 7e198ee6a remove provenance build flag for now 0566431c6 only use attestation when building image outside the development inner loop when building a image, by default attestation are generated and modify the image ID which trigger a container recreation on up, run command even if there isn't any changes on the image content itself 4f6cc2a33 run ContainerStart sequentially 2352a4a01 introduce config --lock-image-digests 1f076a378 bump compose-go to v2.6.3 009a23951 remove convert alias from config command 305957428 build(deps): bump google.golang.org/grpc from 1.72.0 to 1.72.1 1229a6938 build(deps): bump github.com/containerd/containerd/v2 f2a88e02a ensure build dependencies are enabled 7f9101845 report cancelled pull after another one failed 944e5e67a do not throw an error on build with provider services 23fc76a54 Fix quiet option when using COMPOSE_BAKE=1 053d22582 append .exe to provider name doing executable lookup on windows 93b597cce remove Docker EULA licensing which isn't relevant since Docker switched to a subscription model 4dcaf94c3 add support of 'debug' messages in the communication between Compose and provider binaries 07e7619f4 set provider environment ed81185c5 fix provider info message 22f8a7009 provider.options can be an array 91a0aa026 skip push step for provider services 7cea455c4 simplification 559a51e59 build(deps): bump golang.org/x/sys from 0.32.0 to 0.33.0 480a556bf build(deps): bump golang.org/x/sync from 0.13.0 to 0.14.0 626336119 build(deps): bump github.com/moby/buildkit from 0.21.0 to 0.21.1 9ee03c3fe bump compose-go to v2.6.2 4bf18d232 docs: regenerate f0f47a8aa e2e: add tests d6e3fa6d7 Fix config --variables not honoring the --format flag 16e83f002 introduce build --check 2dbef234d document behavior on missing extension 20f0ffec0 seach for provider binary in PATH cee6a3c66 document extensibility using service.provider fc8c56b40 select services implicitly declared by a service:xx build dependency 9c998a934 fix collect image digests for service images built by bake 0403f0d76 e2e test for start_interval 91d04a5ca build(deps): bump go.uber.org/mock from 0.5.1 to 0.5.2 d2274ebe6 display proper event message for provider services on up and down 6e3565218 fix support for remote absolute path 5bb46035c Set --progress flag default value from env if provided f8dae06df Add support for COMPOSE_PROGRESS env variable 955e4ed94 introduce networks.interface_name 60385e606 bump compose-go to v2.6.1 fixing parsing of npipe as volume type f5491328b remove support of Synchronize File Shares integration with Docker Desktop f46689a75 build(deps): bump github.com/containerd/containerd/v2 8fd0c297f build(deps): bump google.golang.org/grpc from 1.71.1 to 1.72.0 f3bbfdae5 build(deps): bump github.com/docker/docker 322c531a8 build(deps): bump github.com/docker/cli bf6b44726 fix: concurrent map writes when pulling a96c305b2 build: write --print output to stdout 2d7cd2a99 go.mod: bump github.com/docker/cli v28.1.0 cbb616ca0 go.mod: bump github.com/docker/docker v28.1.0 640c7deae downgrade go-difflib and go-spew to tagged releases 75b48cfc8 go.mod: bump github.com/docker/buildx v0.23.0 047899c3e go.mod: bump github.com/moby/buildkit v0.21.0 f91b41875 go.mod: bump github.com/docker/docker-credential-helpers v0.9.3 42cccb1fe go.mod: bump golang.org/x/net v0.39.0 674af0d66 go.mod: bump golang.org/x/crypto v0.37.0 877d23233 go.mod: bump golang.org/x/term v0.31.0 4bba13233 go.mod: bump golang.org/x/text v0.24.0 a786e70b0 go.mod: bump golang.org/x/time v0.11.0 13cd780f3 migrate to use github.com/moby/go-archive 8e2f799cd chore: make function comment match function name 2a84dfecf build(deps): bump golang.org/x/crypto from 0.32.0 to 0.35.0 f6913b086 build(deps): bump go.uber.org/mock from 0.5.0 to 0.5.1 d629fffa9 build(deps): bump google.golang.org/grpc from 1.71.0 to 1.71.1 7471e16d8 build(deps): bump github.com/moby/buildkit from 0.20.1 to 0.20.2 51907d9f7 fix zizmor security alerts on GHA workflows a3f88a0a1 test to cover preference for bind API c83f1285a use bind API for bind mounts 29e642e23 ci(bin-image): free disk space 0c37c1096 mount API is not strictly equivalent to bind 43cc2be8c build(deps): bump github.com/compose-spec/compose-go/v2 01e83defc introduce volume.type=image 846161d44 Fix linting issue with resp.Body.Close() 0bcc629fb refactor: improve Desktop client structure 482b62228 pkg/compose: implement Export using atomicwriter ee3314302 capture git fetch output when debug output is enabled cb0b5f6e2 build(deps): bump golang.org/x/sync from 0.12.0 to 0.13.0 138485353 build(deps): bump golang.org/x/sys from 0.31.0 to 0.32.0 096b1e32d plugin provider support: check docker model runner status bf71138df cleanup runPluging function a1f673dcf Update secret detector to fix vulnerability https://github.com/golang-jwt/jwt/security/advisories/GHSA-mh63-6h87-95cp 02c747a7d bump compose-go to custom version of v2.5.0 should be replace by v2.5.1 it will be released 88f4f265d communicate with plugin using json events e67348222 DRAFT external services plugin support b54338070 feat(run): Add --quiet and --quiet-build options for the run command 2e75185a0 bump golang to 1.23.8 7bedb5a02 bump golangci-lint to version v2.0.2 and apply migration script f9cd4d0b1 bump docker,cli,buildx 0badcf3c8 include implicit build dependencies in build command ec49db98d fix: replace docker-compose.yml with compose.yaml e5a353b34 fix: replace docker-compose.yml with compose.yaml 43e456145 fix scale completion 75368c785 introduce `build --print` to dump equivalent bakefile 6e814eac3 fix(secrets): Reverted secrets file mode 440 -> 444 a0d1c3f94 introduce config --no-env-resolution 0c5bd16da bake parses "${}" in DockerfileInline as a variable b0badf1eb Set watch option --prune=true as default 342a2a9e7 Fix support for depends_on.restart in up and restart commands 7814e5798 build(deps): bump github.com/containerd/containerd/v2 42b2e1109 build(deps): bump github.com/docker/buildx from 0.21.2 to 0.21.3 6a8c0988c run only loads required service env_file and ignores others 9129abe51 Fix edge-case bug path prefix check for watch & bind mounts f38f3f754 PWD ea07ba8e2 fix support for secret set by env inside included file 432ae23b0 Test commandName subcommand order b6f313b8a bump compose-go to version v2.4.9 13618756d make publish a regular command of Compose 6c1e21572 lint: address gofumpt issues 33e863ac6 fix linting issue f70209cf1 review: move Summary/Replica collection from cmd/ to pkg/ 62e832eb5 compose top: reduce tabwriter padding 80e8fda14 compose top: ensure CMD is right-most column 375a27978 top: expose container labels a766e1669 condense output of `compose top` 793c6f171 add cli.isatty attribute to spans generated by compose 8e3e1f7f8 build(deps): bump tags.cncf.io/container-device-interface 83cafe283 Add support to pass env-from-file to docker compose run 55b5f233c use Defang secret-detector to identify potential secret leaks before publishing OCI artifacts c3a0c3568 implement extends.file replace without yqlib 8615e9a7c deprecate --y, prefer --yes b23728941 only load env_file after services have been selected 1a7343bc8 build(deps): bump github.com/moby/buildkit from 0.20.0 to 0.20.1 41e609404 add warning message when a remote configuration include an another remote config 66a47169d Publish compose file with required siblings used by `extends` 4c72d3a0e build(deps): bump golang.org/x/sys from 0.30.0 to 0.31.0 59f39b999 build(deps): bump google.golang.org/grpc from 1.70.0 to 1.71.0 7ab65ba12 build(deps): bump golang.org/x/sync from 0.11.0 to 0.12.0 d9f05d72d improve message suggesting using bake 7b88c5b0e display interpolation variables and their values when running a remote stack eaf980094 build(deps): bump github.com/opencontainers/image-spec Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: update to go-mod-vcs formatBruce Ashfield2025-12-086-2636/+1311
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: limit the amount of data copiedBruce Ashfield2025-04-182-2/+32
| | | | | | | | | | | | | | | The AWS dependency includes a VERY large set of directories, which are over 9G in size. To avoid some of this data movement, we suggest shallow clones and update our vendor rsync to exclude directories over 500M. This drastically speeds up the copy and overall build time. More investigation needs to be done, and perhaps a switch away from git clones for this recipe as the data over the network during fetch is still an issue. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* metadata: relocation.inc: add whitespace around assignmentsMartin Jansa2025-04-031-1/+1
| | | | | | | | | With: https://lists.openembedded.org/g/bitbake-devel/message/17508 there are many WARNINGs from this layer Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* metadata: src_uri.inc: add whitespace around assignmentsMartin Jansa2025-04-031-192/+192
| | | | | | | | | With: https://lists.openembedded.org/g/bitbake-devel/message/17508 there are many WARNINGs from this layer Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* metadata: add whitespace around assignmentsMartin Jansa2025-04-031-1/+1
| | | | | | | | | | With: https://lists.openembedded.org/g/bitbake-devel/message/17508 there are many WARNINGs from this layer will cover src_uri.inc files in next commit. Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: update to v2.33.1Bruce Ashfield2025-03-114-793/+1729
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumping compose to version v2.26.1-364-geaf980094, which comprises the following commits: eaf980094 build(deps): bump github.com/opencontainers/image-spec 4c2ecb542 reject compose file with bind mounts bcd000ab4 refuse to publish compose file with local include 8092ce941 build(deps): bump github.com/docker/buildx from 0.21.1 to 0.21.2 97595066e build(deps): bump github.com/docker/docker 508309414 build(deps): bump github.com/docker/cli b6c8a2b9f display the location of OCI or GIT Compose stack download 19571c2c8 e2e test for watch.include 0ef7bbcdd introduce watch.include 66dfa7d18 block the publication of an OCI artifact if one or more services contain only a build section 876ecc48b Test version command c7bf302c2 wrap builder execution within a project/build span 7b3bdbe03 otel attribute to track builder implementation selected 094b48fd7 build(deps): bump github.com/google/go-cmp from 0.6.0 to 0.7.0 43c52e2a8 build(deps): bump tags.cncf.io/container-device-interface 6c1ee1069 support refresh pull policy e38b729a3 fix service: additional_contexts running internal buildkit client 145bb8466 Update yaml docs acac18413 Link to configuration file docs 3292740c1 build: only print COMPOSE_BAKE recommendation when disabled cae8e8463 require go 1.23|1.24 (stable) da2eff4ba add support for gw_priority, enable_ipv4 (requires docker v28.0) 20f780e95 make the mocks generator happy cf2fc2005 go.mod: docker/docker, docker/cli v28.0.0, buildx v0.21.1 d0398a468 go.mod: github.com/moby/buildkit v0.20.0 ac40aae4c go.mod: golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f f25fea5e6 pkg/compose: stopDependentContainers: rename var that shadowed b27f56eb1 fix error message when detach is implied by wait 4e593ed07 Fix pull --parallel and --no-parallel deprecation warnings missing d956ff13d don't display bake suggestion when using --progress with quiet or json option 5f7c9a2b4 report error using non-file secret|config with read-only service fd0c23a1c build(deps): bump google.golang.org/grpc from 1.68.1 to 1.70.0 7aa64ae9c run watch standalone if menu fails to start c23eea934 build(deps): bump github.com/spf13/cobra from 1.8.1 to 1.9.1 036da4795 go.mod: remove toolchain directive 33172d5e4 let user know bake is now supported 3f1a6b72a build(deps): bump gotest.tools/v3 from 3.5.1 to 3.5.2 f9a6e6c41 build(deps): bump golang.org/x/sync from 0.10.0 to 0.11.0 18ef6e592 build(deps): bump github.com/spf13/pflag from 1.0.5 to 1.0.6 2884d6df0 Fix ls --quiet help description 4459012a4 Dockerfile: update golangci-lint to v1.63.4 6f1f76c0e pkg/e2e: fix contains: use assert.Contains (testifylint) ed72c2187 use BlockUntilContext fa4cfb652 build(deps): bump github.com/jonboulle/clockwork from 0.4.0 to 0.5.0 200638b02 build(deps): bump github.com/otiai10/copy from 1.14.0 to 1.14.1 a0320f12e build(deps): bump golang.org/x/sys from 0.28.0 to 0.30.0 f8a912ab9 bump compose-go v2.4.8 c23a7e728 golangci-lint: enable copyloopvar linter 49575ef49 gha: add docker engine v28.x to the test-matrix faa46d374 go.mod: github.com/moby/term v0.5.2 6ecb8d40a Full test coverage for convert compatibility cmd a6a39422e remove cli.args opentelemetry attribute 40cd08f31 Update link in stats --help output 5e2abb6c2 support additional_context reference to another service 4db5fcd56 fix bake uses selected builder f14c15fa5 capture error message reported by bake and forward to compose 8d68ef587 fix exporter to only load image for default platform cde9ae595 pass --allow for filesystem read access 806ac91cf add warning when trying to publish env variables with OCI artifact 1c073c0a0 watch should ony build selected services 840288895 add --with-env flag to publish command this flag allow publishing env variables in the Compose OCI artifact 4b70ff0cc fix support for ssh key from CLI flags 23351ece8 remove exit code per error type used by legacy metrics system 7c7407672 bump docker to v27.5.1 25cfa66a9 bump buildx v0.20.1 and docker v27.5.0 f160333e9 ci: use main branch for docs upstream validation workflow d04b3f48e e2e test covering multi-service rebuild with common resources ed10804e0 manage `watch` applied to mulitple services 52578c099 Properly handle "builtin" seccomp profile bd2b49a1c add codeowners file 433a60e12 ci: fix provenance for binaries and generate sbom 489fe9cf0 add support for BUILDKIT_PROGRESS ef1931c8d add missing tag for build during merge workflow 9be7a3c9a ci: re-use local source to build binary images 666996bee ci: use local source for binary builds 083f67621 ci: update bake-action to v6 e81de103d simplification fa3950346 image can be set to a local ID, that isn't a valid docker ref a35158502 can't render progress concurrently with buildkit b6db1380e exclude one-off container running convergence 2ebb47543 Only override service mac if set on the main network. d474515d4 remove engine v25 from e2e test matrix The 1st version available for Ubuntu 24.x is Docker Engine v26 2b21c5df9 fix relative path in compose file 1f3c10eb4 bump compose-go to v2.4.7 68ad165a5 replace tibdex/github-app-token by official GitHub create-github-app-token 3060ed279 bump golang.org/x/net to v0.33.0 to fix potential security issue https://github.com/golang/go/issues/70906 be09b2e8c checkExpectedVolumes must ignore anonymous volumes 571a1af01 When retrying to resolveOrCreateNetwork, retry with a valid network name 8f644eea7 only check bind mount conflict if sync action is involved 56e92e34b use the 3 latest major versions of the engine to run e2e step a42a04dfe bump Golang version to v1.22.10 and update CI actions 34bcd03a7 add --pull to run command ed61e42f9 CI to validate fmt 65696bb1c `make fmt` so any contributor can enforce formatting 446e00520 format code with gofumpt c01c9c29f e2e test to prevent future regression 038c81f34 only check volume mounts for updated config a20b69ac5 e2e test for recreate volume 977530c22 build(deps): bump google.golang.org/grpc from 1.68.0 to 1.68.1 d4db8b6b1 build(deps): bump golang.org/x/crypto from 0.27.0 to 0.31.0 f8ce0f04e build(deps): bump golang.org/x/sys from 0.27.0 to 0.28.0 8e0520e71 prompt user to confirm volume recreation 332311358 Recreate container on volume configuration change df9e420dd introduce watch restart action 142f5dba8 bump otel dependencies to v1.28.0 and v0.53.0 to align with buildx, buildkit and engine versions 700c586bc bump docker/buildx to latest release fc566509d fix support for service.mac_address e73c2303f update xx to v1.6.1 for compatibility with alpine 3.21 and file 5.46+ 624303233 build(deps): bump golang.org/x/sync from 0.9.0 to 0.10.0 a1729c52d Update pkg/e2e/watch_test.go 254224c18 first watch action for a file event wins 0861e6845 fix af5b74850 revisit TestDebounceBatching 32a22c1f4 introduce sync+exec watch action e6ea8fb96 log configuration error as a watch log event 043465448 do not require a build section but for `rebuild` action 1d0839086 pull --quiet should not drop status message, only progress 69a83d130 use latest engine tags 781b9f1cd Bump buildx to 0.19.1 cbff0e555 be sure everything has been cleanup at the end of each tests e4222bff5 add local config.json to test configuration dir if exists 25197fe6d disable failing TestBuildSSH test 85cdaf9dd fix build with bake a8469db83 bump containerd to v1.7,24 08488dae5 bump google.golang.org/grpc to v1.68.0 cc3a216f2 build(deps): bump github.com/moby/buildkit from 0.17.1 to 0.17.2 6e818b9ae build(deps): bump github.com/compose-spec/compose-go/v2 6b3e57503 only stop dependent containers ... if there's some 8e497a128 disable TestNetworkConfigChanged which is unstable on CI 5aed70437 only check attached networks on running containers 1ff9b758d fix: commit tests 9eaba5597 feat: add commit command a85f8a40a run build tests against bake 095f65cb4 delegate build to buildx bake 208e57ded build(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 2d148faed use service.stop to stop dependent containers 43ac1e31c Update wait-timeout flag usage to include the unit 5561a778c go.mod: github.com/docker/cli v27.4.0-rc.2 ae48f488d go.mod: github.com/docker/docker v27.4.0-rc.2 5e3a09538 go.mod: github.com/docker/cli 8d1bacae3e49 (v27.4.0-rc.2-dev) a2a3eb72e go.mod: github.com/docker/cli v27.4.0-rc.1 3513b4242 go.mod: github.com/docker/docker v27.4.0-rc.1 d4fa63fdc Update pkg/compose/convergence.go c21d4cfb4 detect network config changes and recreate if needed 61f1d4f69 go.mod: github.com/docker/buildx v0.18.0 f7cce281d go.mod: github.com/moby/buildkit v0.17.1 bcaacc7f2 gha: test against docker engine v27.4.0 3f5898f8d push empty descriptor layer when using OCI version 1.1 for Compose artifact it fixes a repository creation issue when pushing the 1st time a Compose OCI artifact on the Hub 2bb67f270 remove ddev e2e tests bf521fe3a implement remove-orphans on run 11e9621da ci: enable testifylint linter a9de9abcf Emit events for building images 799ab842a Fix compose images that reutn a different image with the same ID 2f65ace2a remove obsolete containers first on scale down aa0a4189e pass stal bot inactivity limit from 6 to 3 months eba3ff8f3 fix(config): Print service names with --no-interpolate 6313365ba build(deps): bump golang.org/x/sys from 0.26.0 to 0.27.0 dbd51745c build(deps): bump golang.org/x/sync from 0.8.0 to 0.9.0 a8bfbc147 bump compose-go v2.4.4 fbbd6f83d Avoid starting all services on rebuild a00097898 remove ArtifactType from Config in OCI v1.1 definition of the artifact 361c0893a build(deps): bump github.com/compose-spec/compose-go/v2 513b6128c Service being declared in a profile must not trigger re-creation eececb9ad Add profile e2e test case to document in compose 501b5acde Update `MAINTAINERS` file f51bc4cd0 bump compose-go to version v2.4.2 517f87a37 bump google.golang.org/grpc to v1.67.1 718049cbd bump go.uber.org/mock to v0.5.0 02371f312 bump golang minimal version to 1.22 in go.mod a7c9de82b build(deps): bump github.com/containerd/containerd from 1.7.22 to 1.7.23 51ebeb544 introduce generate command as alpha command fafaa9c5b bump compose-go to version v2.4.1 fc9c3cde0 Add license header to dockerignore_test.go 73bfbab54 fix 2ac081b4c fix(dockerignore): Add wildcard support to dockerignore.go eeea049f1 push: Fix error message typo 26064d4b6 allow usage of -f flag with oci Compose artifact 7c46beb8a resurrect --all flag for cp to target oneoff container aa1ec4524 connect to external networks by name a4ee6ca7a don't warn about uid/gid not being supported while ... they are 5617eff0c bump compose-go to v2.4.0 fa24ab8e2 one-off container are not indexed, and must be ignored by exec --index command 0aad9595a don't use progress to render restart, which hides logs 813900180 compose-go clean volume target to avoid ambiguous comparisons 82417bd5b add support for bind.recursive 0cbb73c02 Improve error message to include expected network label 38e3d670a desktop: allow this client to be identified via user-agent 24c78728e bump compose-go to v2.3.0 9eeb2d315 convert gpus to DeviceRequests with implicit "gpu" capability 8da82c98e gha: set default permissions to "contents: read" 1a8c85548 Add security policy 15bd0b0c5 add support for raw env_file format 39d0f6477 build(deps): bump golang.org/x/sys from 0.25.0 to 0.26.0 3a95a0872 add support for CDI device request using `devices` f794c79eb Support Dockerfile-specific ignore-file with watch 407d82570 Remove feature flag integration with Docker Desktop for ComposeUI and ComposeNav 82b41b9eb introduce service hooks 6c06170eb pass device.options to engine 60c1311f6 chore: remove errors depricated pkg 17add87e4 fix: validate-go-mod bf0418bac fix: lint b9d0c77cd feat: add export command bdb854561 fix(convergence): Serialize access to observed state 41df35c1f Remove bind options when creating a volume type 3ef5045a0 Bump docker v27.3.1 d9df7aab6 fix(push): Fix unexpected EOF on alpha publish c9d96b449 use compose-go version fixing extra_hosts unicity issue 1744b4576 Show watch error message and open DD only when w is pressed 87f457e7d add tests to down.go abcc91e2b fix(down): Fix down command if specified services are not running 8b9fe8984 After container restart register printer consumer 34b18194f check secret source exists, as bind mount would create target as a folder otherwise ce27dba52 wait for dependent service up to delay set by --wait-timeout d2b945613 append unix-style relative path when computing container target path 9c60fe67d revert commits link to mount API over bind changes c16df17e1 don't set propagation if target engine isn't linux 20404db12 build(deps): bump github.com/docker/docker v27.3.0-rc.2 f2ff7fd75 build(deps): bump github.com/docker/cli v27.3.0-rc.2 cb00aaad2 set propagation default e885bc084 Remove custom codeql workflow 73d3a25eb fix import 3524bcfad chore(watch): Add debug log when skipping service without build context 1076f1d9a stop dependent containers before recreating diverged service 16652ed26 Fixed possible `nil` pointer dereference c6a76b9bd bump github.com/docker/buildx v0.17.1 3a0e3ba7e build(deps): bump docker, docker/cli to v27.3.0-rc.1 86ef8e62c gha: test against docker engine v27.3.0 8bf0627ea show sync files only in debug level 2e1419168 chore(watch): Add changed files path/count to log 155f64182 build(deps): bump golang.org/x/sync from 0.7.0 to 0.8.0 8db0cba0a bump compose-go to version v2.2.0 a7424435b Restore compose v1 behavior to recreate containers when ran with -V d445ebba3 fix linting issues with golangci-lint 1.60.2 f592aad10 bump golang to version 1.22.7 ef46445ed bump dependencies versions, engine and cli v27.2.1 containerd v1.7.22 buildx v0.17.0 buildkit v0.16.0 150593298 build(deps): bump golang.org/x/sys from 0.22.0 to 0.25.0 524a97e55 Fix typos 1d608e033 Use logrus instead of direct output to stderr. 329ad7392 attach: close streams when done b633c5c3e Fix typo in pull.go e6ef8629a Allow combination of bind mounts and 'rebuild' watches d658fecc6 service hash must exlude depends_on f9c7a0cc0 prefer mount API over bind 6e172d6b8 docs: duplicate documentation for root cmd 98e261ba3 docs(wait): Fix wait command description 11c7a25ae allow to add empty line in the logs when nav menu activated 234036756 upgrade docker versions 9c03797f9 initial sync files that modified after image creation 485c0eba5 initial sync for root directory 69384a9a0 Removes redundant condition from toAPIBuildOptions in build.go 1601ead7b docs: Update docker compose kill usage ea4ccf639 Fix stop on file chane for sync-restart action b1850ea4d bump engine and cli to v27.1.1, buildx to v0.16.1 adba639e8 remove all dependabot update PRs for OTel dependencies d8518529c gp.mod: github.com/gofrs/flock v0.12.1 c79f15da9 go.mod: golang.org/x/sys v0.22.0 3f55382ff update to go1.21.12 44337d2bb Enhance JSON progress events with more fields. bc733508d bump compose-go v2.1.5 c422b5447 bump github.com/docker/cli v27.1.0 e74441c90 bump github.com/docker/docker v27.1.0 2bac32a46 bump github.com/containerd/containerd v1.7.20 f278400fb gha: add docker 27.1.0 4f9db4d3e fix(containers): fix sorting logic by adding secondary sorting for one-off containers 06bf339a4 fix: typos 231ea1005 update docs generation to avoid man pages generation 46679150d bump compose-go to v2.1.4, buildx to v0.16.0, containerd to v1.7.19 and buildx to v0.15.0 d3d378b92 restore setEnvWithDotEnv 163cdfd31 empty env variable with no value must be unset in container 25f85938b exclude unnecessary resources after services have been selected cacbca859 change time for stale bot ecac13f27 Remove debug mode and run twice a week 14793cc2e Add stale workflow 11d5ecdc7 update docs 9549a213b feat(watch): Add --prune option to docker-compose watch command da434013e Remove COMPOSE_MENU env from e2e tests ace69c96a Use rawjson for the build backend. 2db04c1e4 Set logging format to JSON. 8f7cd0048 Format errors as JSON when in JSON progress mode. 5a6e1a7e2 Pass 'plain' instead of 'json' to build backend 06545d066 Add JSON stream progress writer 075fd9345 go.mod: docker/cli, docker/docker v27.0.3 d062ad739 gha: test against docker v27.0.3 7cd5209cc go.mod: docker/cli, docker/docker v27.0.2 f79c28168 Remove `console.Terminal` check and use `IsTerminal` from `streams.Out` Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* Revert "docker-compose: WIP [needs go 1.22.10+]: not for merge: update to ↵Bruce Ashfield2025-01-174-320/+470
| | | | | | v2.32.2" This reverts commit 61c4511b2ac313c587a42012bd0e188b9b196758.
* docker-compose: WIP [needs go 1.22.10+]: not for merge: update to v2.32.2Bruce Ashfield2025-01-174-470/+320
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumping compose to version v2.26.1-287-gfa3950346, which comprises the following commits: fa3950346 image can be set to a local ID, that isn't a valid docker ref a35158502 can't render progress concurrently with buildkit b6db1380e exclude one-off container running convergence 2ebb47543 Only override service mac if set on the main network. d474515d4 remove engine v25 from e2e test matrix The 1st version available for Ubuntu 24.x is Docker Engine v26 2b21c5df9 fix relative path in compose file 1f3c10eb4 bump compose-go to v2.4.7 68ad165a5 replace tibdex/github-app-token by official GitHub create-github-app-token 3060ed279 bump golang.org/x/net to v0.33.0 to fix potential security issue https://github.com/golang/go/issues/70906 be09b2e8c checkExpectedVolumes must ignore anonymous volumes 571a1af01 When retrying to resolveOrCreateNetwork, retry with a valid network name 8f644eea7 only check bind mount conflict if sync action is involved 56e92e34b use the 3 latest major versions of the engine to run e2e step a42a04dfe bump Golang version to v1.22.10 and update CI actions 34bcd03a7 add --pull to run command ed61e42f9 CI to validate fmt 65696bb1c `make fmt` so any contributor can enforce formatting 446e00520 format code with gofumpt c01c9c29f e2e test to prevent future regression 038c81f34 only check volume mounts for updated config a20b69ac5 e2e test for recreate volume 977530c22 build(deps): bump google.golang.org/grpc from 1.68.0 to 1.68.1 d4db8b6b1 build(deps): bump golang.org/x/crypto from 0.27.0 to 0.31.0 f8ce0f04e build(deps): bump golang.org/x/sys from 0.27.0 to 0.28.0 8e0520e71 prompt user to confirm volume recreation 332311358 Recreate container on volume configuration change df9e420dd introduce watch restart action 142f5dba8 bump otel dependencies to v1.28.0 and v0.53.0 to align with buildx, buildkit and engine versions 700c586bc bump docker/buildx to latest release fc566509d fix support for service.mac_address e73c2303f update xx to v1.6.1 for compatibility with alpine 3.21 and file 5.46+ 624303233 build(deps): bump golang.org/x/sync from 0.9.0 to 0.10.0 a1729c52d Update pkg/e2e/watch_test.go 254224c18 first watch action for a file event wins 0861e6845 fix af5b74850 revisit TestDebounceBatching 32a22c1f4 introduce sync+exec watch action e6ea8fb96 log configuration error as a watch log event 043465448 do not require a build section but for `rebuild` action 1d0839086 pull --quiet should not drop status message, only progress 69a83d130 use latest engine tags 781b9f1cd Bump buildx to 0.19.1 cbff0e555 be sure everything has been cleanup at the end of each tests e4222bff5 add local config.json to test configuration dir if exists 25197fe6d disable failing TestBuildSSH test 85cdaf9dd fix build with bake a8469db83 bump containerd to v1.7,24 08488dae5 bump google.golang.org/grpc to v1.68.0 cc3a216f2 build(deps): bump github.com/moby/buildkit from 0.17.1 to 0.17.2 6e818b9ae build(deps): bump github.com/compose-spec/compose-go/v2 6b3e57503 only stop dependent containers ... if there's some 8e497a128 disable TestNetworkConfigChanged which is unstable on CI 5aed70437 only check attached networks on running containers 1ff9b758d fix: commit tests 9eaba5597 feat: add commit command a85f8a40a run build tests against bake 095f65cb4 delegate build to buildx bake 208e57ded build(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 2d148faed use service.stop to stop dependent containers 43ac1e31c Update wait-timeout flag usage to include the unit 5561a778c go.mod: github.com/docker/cli v27.4.0-rc.2 ae48f488d go.mod: github.com/docker/docker v27.4.0-rc.2 5e3a09538 go.mod: github.com/docker/cli 8d1bacae3e49 (v27.4.0-rc.2-dev) a2a3eb72e go.mod: github.com/docker/cli v27.4.0-rc.1 3513b4242 go.mod: github.com/docker/docker v27.4.0-rc.1 d4fa63fdc Update pkg/compose/convergence.go c21d4cfb4 detect network config changes and recreate if needed 61f1d4f69 go.mod: github.com/docker/buildx v0.18.0 f7cce281d go.mod: github.com/moby/buildkit v0.17.1 bcaacc7f2 gha: test against docker engine v27.4.0 3f5898f8d push empty descriptor layer when using OCI version 1.1 for Compose artifact it fixes a repository creation issue when pushing the 1st time a Compose OCI artifact on the Hub 2bb67f270 remove ddev e2e tests bf521fe3a implement remove-orphans on run 11e9621da ci: enable testifylint linter a9de9abcf Emit events for building images 799ab842a Fix compose images that reutn a different image with the same ID 2f65ace2a remove obsolete containers first on scale down aa0a4189e pass stal bot inactivity limit from 6 to 3 months eba3ff8f3 fix(config): Print service names with --no-interpolate 6313365ba build(deps): bump golang.org/x/sys from 0.26.0 to 0.27.0 dbd51745c build(deps): bump golang.org/x/sync from 0.8.0 to 0.9.0 a8bfbc147 bump compose-go v2.4.4 fbbd6f83d Avoid starting all services on rebuild a00097898 remove ArtifactType from Config in OCI v1.1 definition of the artifact 361c0893a build(deps): bump github.com/compose-spec/compose-go/v2 513b6128c Service being declared in a profile must not trigger re-creation eececb9ad Add profile e2e test case to document in compose 501b5acde Update `MAINTAINERS` file f51bc4cd0 bump compose-go to version v2.4.2 517f87a37 bump google.golang.org/grpc to v1.67.1 718049cbd bump go.uber.org/mock to v0.5.0 02371f312 bump golang minimal version to 1.22 in go.mod a7c9de82b build(deps): bump github.com/containerd/containerd from 1.7.22 to 1.7.23 51ebeb544 introduce generate command as alpha command fafaa9c5b bump compose-go to version v2.4.1 fc9c3cde0 Add license header to dockerignore_test.go 73bfbab54 fix 2ac081b4c fix(dockerignore): Add wildcard support to dockerignore.go eeea049f1 push: Fix error message typo 26064d4b6 allow usage of -f flag with oci Compose artifact 7c46beb8a resurrect --all flag for cp to target oneoff container aa1ec4524 connect to external networks by name a4ee6ca7a don't warn about uid/gid not being supported while ... they are 5617eff0c bump compose-go to v2.4.0 fa24ab8e2 one-off container are not indexed, and must be ignored by exec --index command 0aad9595a don't use progress to render restart, which hides logs 813900180 compose-go clean volume target to avoid ambiguous comparisons 82417bd5b add support for bind.recursive 0cbb73c02 Improve error message to include expected network label 38e3d670a desktop: allow this client to be identified via user-agent 24c78728e bump compose-go to v2.3.0 9eeb2d315 convert gpus to DeviceRequests with implicit "gpu" capability 8da82c98e gha: set default permissions to "contents: read" 1a8c85548 Add security policy 15bd0b0c5 add support for raw env_file format 39d0f6477 build(deps): bump golang.org/x/sys from 0.25.0 to 0.26.0 3a95a0872 add support for CDI device request using `devices` f794c79eb Support Dockerfile-specific ignore-file with watch 407d82570 Remove feature flag integration with Docker Desktop for ComposeUI and ComposeNav 82b41b9eb introduce service hooks 6c06170eb pass device.options to engine 60c1311f6 chore: remove errors depricated pkg 17add87e4 fix: validate-go-mod bf0418bac fix: lint b9d0c77cd feat: add export command bdb854561 fix(convergence): Serialize access to observed state 41df35c1f Remove bind options when creating a volume type 3ef5045a0 Bump docker v27.3.1 d9df7aab6 fix(push): Fix unexpected EOF on alpha publish c9d96b449 use compose-go version fixing extra_hosts unicity issue 1744b4576 Show watch error message and open DD only when w is pressed 87f457e7d add tests to down.go abcc91e2b fix(down): Fix down command if specified services are not running 8b9fe8984 After container restart register printer consumer 34b18194f check secret source exists, as bind mount would create target as a folder otherwise ce27dba52 wait for dependent service up to delay set by --wait-timeout d2b945613 append unix-style relative path when computing container target path 9c60fe67d revert commits link to mount API over bind changes c16df17e1 don't set propagation if target engine isn't linux 20404db12 build(deps): bump github.com/docker/docker v27.3.0-rc.2 f2ff7fd75 build(deps): bump github.com/docker/cli v27.3.0-rc.2 cb00aaad2 set propagation default e885bc084 Remove custom codeql workflow 73d3a25eb fix import 3524bcfad chore(watch): Add debug log when skipping service without build context 1076f1d9a stop dependent containers before recreating diverged service 16652ed26 Fixed possible `nil` pointer dereference c6a76b9bd bump github.com/docker/buildx v0.17.1 3a0e3ba7e build(deps): bump docker, docker/cli to v27.3.0-rc.1 86ef8e62c gha: test against docker engine v27.3.0 8bf0627ea show sync files only in debug level 2e1419168 chore(watch): Add changed files path/count to log 155f64182 build(deps): bump golang.org/x/sync from 0.7.0 to 0.8.0 8db0cba0a bump compose-go to version v2.2.0 a7424435b Restore compose v1 behavior to recreate containers when ran with -V d445ebba3 fix linting issues with golangci-lint 1.60.2 f592aad10 bump golang to version 1.22.7 ef46445ed bump dependencies versions, engine and cli v27.2.1 containerd v1.7.22 buildx v0.17.0 buildkit v0.16.0 150593298 build(deps): bump golang.org/x/sys from 0.22.0 to 0.25.0 524a97e55 Fix typos 1d608e033 Use logrus instead of direct output to stderr. 329ad7392 attach: close streams when done b633c5c3e Fix typo in pull.go e6ef8629a Allow combination of bind mounts and 'rebuild' watches d658fecc6 service hash must exlude depends_on f9c7a0cc0 prefer mount API over bind 6e172d6b8 docs: duplicate documentation for root cmd 98e261ba3 docs(wait): Fix wait command description 11c7a25ae allow to add empty line in the logs when nav menu activated 234036756 upgrade docker versions 9c03797f9 initial sync files that modified after image creation 485c0eba5 initial sync for root directory 69384a9a0 Removes redundant condition from toAPIBuildOptions in build.go 1601ead7b docs: Update docker compose kill usage ea4ccf639 Fix stop on file chane for sync-restart action b1850ea4d bump engine and cli to v27.1.1, buildx to v0.16.1 adba639e8 remove all dependabot update PRs for OTel dependencies d8518529c gp.mod: github.com/gofrs/flock v0.12.1 c79f15da9 go.mod: golang.org/x/sys v0.22.0 3f55382ff update to go1.21.12 44337d2bb Enhance JSON progress events with more fields. bc733508d bump compose-go v2.1.5 c422b5447 bump github.com/docker/cli v27.1.0 e74441c90 bump github.com/docker/docker v27.1.0 2bac32a46 bump github.com/containerd/containerd v1.7.20 f278400fb gha: add docker 27.1.0 4f9db4d3e fix(containers): fix sorting logic by adding secondary sorting for one-off containers 06bf339a4 fix: typos 231ea1005 update docs generation to avoid man pages generation 46679150d bump compose-go to v2.1.4, buildx to v0.16.0, containerd to v1.7.19 and buildx to v0.15.0 d3d378b92 restore setEnvWithDotEnv 163cdfd31 empty env variable with no value must be unset in container 25f85938b exclude unnecessary resources after services have been selected cacbca859 change time for stale bot ecac13f27 Remove debug mode and run twice a week 14793cc2e Add stale workflow 11d5ecdc7 update docs 9549a213b feat(watch): Add --prune option to docker-compose watch command da434013e Remove COMPOSE_MENU env from e2e tests ace69c96a Use rawjson for the build backend. 2db04c1e4 Set logging format to JSON. 8f7cd0048 Format errors as JSON when in JSON progress mode. 5a6e1a7e2 Pass 'plain' instead of 'json' to build backend 06545d066 Add JSON stream progress writer 075fd9345 go.mod: docker/cli, docker/docker v27.0.3 d062ad739 gha: test against docker v27.0.3 7cd5209cc go.mod: docker/cli, docker/docker v27.0.2 f79c28168 Remove `console.Terminal` check and use `IsTerminal` from `streams.Out` Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: update to v2.28.1Bruce Ashfield2024-07-114-180/+330
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumping compose to version v2.26.1-80-gf79c28168, which comprises the following commits: f79c28168 Remove `console.Terminal` check and use `IsTerminal` from `streams.Out` 6a000dcff go.mod: github.com/compose-spec/compose-go v2.1.3 2636dcf06 go.mod: docker/docker and docker/cli v27.0.1-rc.1 77377f2df build(deps): bump github.com/spf13/cobra from 1.8.0 to 1.8.1 af1bc285a build(deps): bump github.com/docker/buildx from 0.15.0 to 0.15.1 e1fd7a656 using as flag of the up command, watch was blocking process shutdown This happened when sunsetting the application from docker compose down command de478f84b Add open watch docs in up menu 24a281fa5 bump buildkit to v0.14.0 and buildx to v0.15.0 54a5e7d4a stop watch process when associated up process is stopped 36ef5b388 build(deps): bump github.com/docker/docker 5694a2b0f build(deps): bump github.com/containerd/containerd from 1.7.17 to 1.7.18 695d3419c build(deps): bump golang.org/x/sys from 0.20.0 to 0.21.0 981bcbbe7 build(deps): bump github.com/hashicorp/go-version from 1.6.0 to 1.7.0 5ec37d08a build: replace uses of archive.CanonicalTarNameForPath 1a14fcb1e update gh actions versions, update engine matrix, bump golang to 1.21.11 084a5ca31 enforce keyboard.Close is always executed to restore terminal d633c33a1 config --environment cc09f39f2 Readd event 918b508bd remove unreachable code 10531f630 Fix dot env file to define COMPOSE_* variables bf1bd3fc6 return an error when --detach and --watch are used together in up command 02f40eea6 Correct 'cancellation' typo in comment 250c3112b Fix: change append to use slice index in ps.go 495a087fb COMPOSE_PROFILES can be set by .env file fd1f73a5e prevent concurrent map write relying on project immutability bf1dd0c26 build(deps): bump github.com/containerd/containerd from 1.7.16 to 1.7.17 1cf6dea44 build(deps): bump github.com/docker/buildx from 0.14.0 to 0.14.1 1adc4cb16 drop COMPOSE_EXPERIMENTAL_OTEL as docker/cli has opentelemetry in 2ed40e804 add gui/composeview as part of available commands 7ad73c289 fix opentelemetry 259325698 bump compose-go to version v2.1.1 048fd136d Set endpoint-specific DriverOpts 663866cbe Bump compose-go version to latest main fb25e88a0 Backport OpenBSD patches 363530337 add new navigation menu to open Compose app configuration in Docker Desktop 2cee028e9 build(deps): bump github.com/fsnotify/fsevents from 0.1.1 to 0.2.0 c78f84aeb build(deps): bump golang.org/x/sys from 0.19.0 to 0.20.0 5c6924ec6 fix --resolve-image-digests 9e8c8caa2 allow a local .env file to override compose.yaml sibling .env da8189cf2 Bump docker engine and cli to version 26.1.3 e64b96d0f Bump docker to v26.1.2 b81624185 Add documentation for --menu up option and COMPOSE_MENU environemnt variable 591d9eb3a chore(deps): bump docker to v26.1.1 (#11794) 9c0b92259 fix: overlapping logs and menu navigation (#11765) cfb110653 build(deps): bump github.com/moby/buildkit 36bf0c458 chore(e2e): fix flaky cascade failure test 299fcd57f use v2.26.1 tag for moby and Docker cli b90cb48a1 chore(deps): update to Moby v26.1 & buildx v0.14 f8808d81c bump compose-go version to v2.1.0 9970a84ae fix support for --context=foo 568248072 Fix #11710: Avoid to try to close channel twice after hitting Ctrl-C on compose up (#11719) fd532a37e fix(desktop): remove overly-aggressive feature flag check (#11748) 2aa568ceb chore: fix typo in comment 4ae2e0ec5 bump dependencies 922422a53 fix: do not try to create file shares for non-directories d239f0f31 check container_name is not in use by another service we will create ca734ce56 don't clear line when navigation is disabled c9e070f0f fix: return correct exit code with `--exit-code-from` (#11715) b3792dd25 progress for resource can be restarted after more Working event comes d8ee474e0 Revert "Stop the resource timer after last expected event" 7d3616474 Revert change to allow trying to kill again if a kill fails 6a3501f90 Handle errors and allow to send multiple kills if one failed 5daed33c6 Ignore errors when killing on second Ctrl-C 5c1e5f3fc docker compose up always kills the containers on second Ctrl-C b032999f0 read COMPOSE_REMOVE_ORPHANS from .env 5059a1d7b Set Required false to depends_on containers for compose -p stop/down 54a525bbe Ignore missing containers when compose stop -p 8ceaf4929 Ignore missing containers when compose down -p 1d3259205 Introduce support for build.entitlements 85567ae09 Remove dead url reference. b4280fb56 e2e test for --all-resources 865a64afe introduce --all-resources to _not_ exclude resources not used by services 29692b592 Introduce --abort-on-container-failure 2658c372a bump golang version to 1.21.9 d71d8bce2 don't use ansi espace sequence when disabled ff20b641c Does not start keyboard manager if there is no tty 339b331a8 Change menu information text to dim dd5614ec3 Handle --no-build and --watch args 4b7b6adc7 build(deps): bump github.com/opencontainers/image-spec 466374bdd Unwrap error message. 2e85b3c26 Include error message in pull warning/errors Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: adapt SRC_URI to include destsuffix=${GO_SRCURI_DESTSUFFIX}Bruce Ashfield2024-05-292-188/+188
| | | | | | | | | | | As of commit cc4ec43a2b657fb4c58429ab14f1edc2473c1327 [go: Drop fork of unpack code, mandate GO_SRCURI_DESTSUFFIX] we require this variable in our go recipes. We also adjust our WORKDIR reference to UNPACKDIR, and the destination for vendor'd source. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: update to v2.26.0Bruce Ashfield2024-04-044-566/+589
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumping compose to version v2.24.7-21-g33712277, which comprises the following commits: 33712277 chore(desktop): revised feature detection for file shares e9dc8201 Add Navigation Menu to compose up 39504607 Add support for volume Subpath option 3b541b07 Bump docker v26.0.0 25671ae6 introduce config --variables to list compose model variables 0191e69d Fix docs on default build image name 897d239f Bump compose-go to v2.0.2 c5a760ce add support for annotations 26f687a1 Revert "Bump compose-go to v2.0.1" ad414613 Bump compose-go to v2.0.1 db4ed895 feat(desktop): synchronized file share integration (#11614) 1b5fa3b9 feat(experiments): add experimental feature state (#11633) 4f97edf3 reduce timeout of the Otel tracing command bc5fc6ba fix `compose config --format json` f937e42a Bump compose-go v2.0.0 f46ca459 services shell completion bugfix b2d4c1b8 fix TestBuildPlatformsWithCorrectBuildxConfig 5a1ba0ef only use ToModel when --no-interpolate is set 17d4229e feat(desktop): add Docker Desktop detection and client skeleton (#11593) 4efb8970 chore(deps): upgrade go to 1.21.8 (#11578) f35449a6 ci(deps): bump moby/moby & docker/cli to v25.0.4 (#11566) 34b11c4f Add test summary for test jobs in ci c525373a make code simpler e99b8ace avoid duplicated "xx exited with code 0" message 8ab8df86 introduce --watch de178267 move code into small functions for better readability 1680f9a8 restore support for `config --no-interpolate` 5c4f3370 remove docker cli step in ci.yml 58ec0e9f get log to manage `attach` 349d9f34 bump compose-go to version v2.0.0-rc.8 697a48af use an dedicated compose file --quiet-pull e2e test 9b0d1ffc Add a fallback check of Watch pid on Windows False positives were detected when checking the previous watch process state d10a179f add support of QuietOption to create command 94246f3c pass QuietOption when starting dependencies from run command 9630cc58 when ran with ANSI disabled, force progress=plain 6c175548 Issue-11374: Modified compose up command to respect COMPOSE_REMOVE_ORPHANS environment variable 9b0e3d53 ci: bump engine version to `25.0.3` de3da829 sort containers to optimize scale down c79aabde discard stdout for laaarge log test 0aad3221 use listeners to collect include metrics b1c06770 docs: update cli reference link e330f590 docs: unify no trailing dots in docstrings and help (#11301) 16c8099c Use listener for file metadata 07bda596 fix deadlock collecting large logs d2034029 chore(watch): remove old `docker cp` implementation 894ab41c ci(deps): bump docker/cli to v25.0.3 (#11481) 3ba66453 pass All option to backend api.Service when length statuses is not equal to zero 2eca9313 Add OTEL specs: build, depends_on, capabilities (gpu/tpu) 1fea7c1b build(deps): bump github.com/opencontainers/image-spec acf2ffb0 feat(tracing): add project hash attr 0d48a93f chore(load): ensure context passed to load aaa7ef6d Include all networks in ContainerCreate call if API >= 1.44 6ef55a53 bump compose-go to v2.0.0-rc.4 a553db33 CI: docker engine version matrix 05bec55d build(deps): bump github.com/docker/cli 8fdd45cd chore(e2e): fix flaky test & standalone behavior (#11382) a0954dc5 ci(deps): replace buildkit to fix fsutil issues on Windows (#11426) 05820018 Fix canonical container name da1a34a8 don't check external network existence when swarm is enabled 8b023ae0 build(deps): bump github.com/docker/cli 8c80297c build(deps): bump github.com/docker/docker 7e991515 Add support for storage_opt d9791156 ci(deps): update DOCKER_CLI_VERSION to v25.0.1 71bebc16 bump compose-go to v2.0.0-rc.3 which fixes multiple compose files merge issues 25d16d1f build(deps): bump actions/upload-artifact from v3 to v4 ab97dcc7 update MAINTAINERS file a8bd3b7a Fix load .env from project directory when project file is set by COMPOSE_FILE 811364b4 use a custom version of fsutils that fixes a bug on Windows causing all Compose builds to fail 1551fcb4 introduce stopAndRemoveContainer to share logic scaling down eb4249ec bump compose-go to v2.0.0-rc.2 1e8241f6 ci(deps): upgrade to Moby v25.0.0 GA (#11381) 053a5604 docs: update link to use canonical URL for command 34ba0bc9 go.mod: github.com/moby/sys/mountinfo v0.7.1 56e38260 go.mod: github.com/google/uuid v1.5.0 c28bf522 bump version of compose-go to v2.0.0-rc.1 51c113b6 build(deps): bump github.com/docker/docker 7cdc7e15 remove watch command from the alpha command fb026543 build(deps): bump github.com/docker/cli d688d3bf fix(tracing): batch span exports to prevent blocking 898e1b60 signals/utils: always handle received signals f414bf78 fix engine version require to use healthcheck.start_interval 3c4593f2 Stop the resource timer after last expected event d2562029 build(deps): bump github.com/containerd/containerd from 1.7.11 to 1.7.12 (#11347) 26ed1051 build(deps): bump github.com/docker/docker from 25.0.0-rc.1+incompatible to 25.0.0-rc.2+incompatible (#11349) 191c10b9 build(deps): bump github.com/docker/cli from 25.0.0-rc.1+incompatible to 25.0.0-rc.2+incompatible (#11348) 5d05df6e update compose-go to version using immutable Project functions b621948c feat(cli): report more useful User-Agent on engine API requests f5c53c2d ci(deps): bump golangci-lint to v1.55.2 1cfeda71 ci(deps): bump golang to version v1.21.6 (#11331) 2bf2b22f Add source policies for build 575f2ed7 watch: remove requirements for tar binary and for sync target to be rw 5f4b22ed make docs dcf6bd77 make mocks 80823b77 go ahead and wire up sig-proxy and no-stdin for consistency with underlying docker container attach 2c16e16d docker compose attach via RunAttach (from docker/cli's docker container attach) d1be9caf build(deps): bump golang.org/x/sys from 0.15.0 to 0.16.0 c3c0cf3d build(deps): bump golang.org/x/sync from 0.5.0 to 0.6.0 (#11317) 27987415 gha: update DOCKER_CLI_VERSION to v24.0.7 566d2207 go.mod: github.com/docker/cli v25.0.0-rc.1 d09c39dc go.mod: github.com/docker/docker v25.0.0-rc.1 a1d36379 go.mod: github.com/klauspost/compress v1.17.4 0c55998b go.mod: github.com/felixge/httpsnoop v1.0.4 2f6ec9b7 go.mod: github.com/docker/go-connections v0.5.0 dcbf005f up: gracefully teardown when command ctx cancelled e105f165 introduce `stats` command ce5a0c65 Fix cancellable context detection in `AdaptCmd` f58f23a6 remove ServiceProxy which was introduced for archived compose-cli 9aa52326 go.mod: docker/docker and docker/cli v25.0.0-beta.3 ccd83b8a go.mod: github.com/gorilla/mux v1.8.1 9e57850c go.mod: github.com/docker/distribution v2.8.3 35d3a7ca go.mod: golang.org/x/crypto v0.17.0 6c998602 go.mod: golang.org/x/crypto v0.16.0 402f3688 go.mod: golang.org/x/text v0.14.0 30dd3e66 go.mod: golang.org/x/term v0.15.0 0c4fa017 Bump compose-go v2-beta.2 b12e23b0 build(deps): bump go.uber.org/mock from 0.3.0 to 0.4.0 17da54da introduce build --with-dependencies 1baa4f44 up: fix write/close race condition in logPrinter 7781b7c9 deps: update docker/cli to fix go version selection issue 785835b1 Add support for endpoint-specific MAC address e4fb5545 build do not require environment to be reslved 74cc0912 github.com/golang/mock is deprecated 5e61c62e collect services to build using WithServices fb3868ff add support for start_interval bdbda790 include disabled services for shell completion ae4fd791 bump golang to version 1.21.5 26aca867 avoid use of service.Name when iterating on project.Services 138facea project.Services is a map cda04f28 adopt compose-go/v2 85a1aec1 regen docs 9c29d223 use custom config type for OCI v1.0 df6fe59f tweak help message on oci version flag 07df9cc4 fix typo 7c8ff36d move around OCI logic, auto fallback/retry 1.1 -> 1.0 111ad3b0 fix(publish): add OCI 1.0 fallback support for AWS ECR 8026d0e2 adopt container.RestartPolicy* df1533a1 [lint] don't use deprecated types 8639fbae go mod tidy 56e2ad9e update to v1.25 for RunAttach ce1ddb6c fix combination of --pull always --no-build c5824702 build(deps): bump golang.org/x/sys from 0.14.0 to 0.15.0 1f148244 send out a cancel event on SIGINT/SIGTERM 9faef4ae Update README.md to use standard compose.yaml file name 59f11ecb Fix configs are mounted under /<id> 750553c8 introduce compose logs --index to select a replica container 8c964f5a Update E2E test 90ca13b7 Fix E2E test to have index in the correct position f9946127 Fix docs ddda59a1 Add index option to compose logs command e981c358 Add failing test 16c4241c log we don't expose service ports when --verbose 9025d63a bump ddev a1de0b96 Restore `Project` is ps json output caa0cbbc Introduce ps --orphans so user can include/exclude services not declared by project 29e9fdba let contributor know we might close unanswered issues c665c53c bump buildx to v0.12.0 and adapt code to changes a39cf75e build(deps): bump github.com/compose-spec/compose-go 46ba9c99 build(deps): bump github.com/spf13/cobra from 1.7.0 to 1.8.0 5c5d30c6 build(deps): bump github.com/docker/cli 36fa8d4e build(deps): bump github.com/docker/docker 2384635e build(deps): bump github.com/moby/buildkit from 0.12.2 to 0.12.3 2ba5e4c1 in watch mode force pull policy to build for services with both build and develop attributes This default behaviour will force a rebuild of the service images at watch process startup and be sure containers will be in sync with the local source code b1a26dac Assume /src/pkg/compose/testdata absolute workingdir to make tests reproducible 5e77ae92 avoir use of []types.ServiceConfig f5572201 identify services to build and don't display 'building' if none 8e1b3236 fix --remove-orphans not to consider disabled services as orphaned 7cb1f8ba introduce RuntimeVersion for code to check container runtime supports required features cb01186c push also consider build.tags 9c4efbdd Strip project prefix from docker-compose up output 8ea7c9e0 Make it context aware and add test skipping options c1694360 render quiet after filtering applied 254a94b0 bump golang to version 1.21.4 cf608fa9 bump compose-go to v1.20.1 426377a4 reject compose file using `secrets|configs.driver or template_driver` 493f6c80 skips flaky e2e tests on watch and attach 646a8fc0 fix docker/compose#11170 add newline in cmd/compose/build.go fmt.Fprint 2945532f fix --pull documentation e5cd265a improve watch configuration logging Add action associated to each managed path d646d757 lint 71237ef6 do not resolve cache dir until remote resource is in use 0d905a89 add a copyright notice with original author b847c7f5 implement runtime file selection 5e3d8f67 re-implement cache folder detection 67279088 introduce --resolve-image-digests for publish to seal service images by digest 4cd61957 fix build 0d4cbbdb fix 9631a49d ENGDOCS-1764 328ca3f2 add docs upstream validation workflow e1bbfc63 build(deps): bump go.uber.org/goleak from 1.2.1 to 1.3.0 616bba0a linter errors fixed ee6e3c2a NetworkList to NetworkInspect for ID search c7e31a3c Squashing feature branch commits in order to add signoff message. 704a9fd3 Use project.ServiceNames() if no service specified in hash d9e0e42d Add branch configuration for pull_request trigger c48e3c4a Initial codeql.yml commit dd0803db fix SIGTERM support to stop/kill stack 39008c53 align with OCI artifact best practices 6c345b37 refactor(cmd/compose/run): remove redundant `len` check 1ffa194e fail start if depependency is missing b9298101 check that the pull policy provided is a valid one or is not missing when --pull is used 3d0207eb remove uncessary return value of pullComposeFiles function 16a7c209 enable profile when down is ran with explicit service names 818bc3c3 add sync+restart action to watch attribute 38bc6d5d build(deps): bump github.com/containerd/containerd from 1.7.6 to 1.7.7 0b6ce6ee build(deps): bump github.com/google/go-cmp from 0.5.9 to 0.6.0 ae16bbbf build(deps): bump google.golang.org/grpc from 1.58.2 to 1.59.0 d13ad1f9 build(deps): bump golang.org/x/sync from 0.3.0 to 0.4.0 9b4d577c remove refrecence docs generation 14b43c1a remove cucumber tests as we haven't added new ones for a while 9dd081b9 add support of COMPOSE_ENV_FILES env variable to pass a list of env files 2c0b0232 add dry-run support for publish command 599e4b24 extract method to reduce cyclomatic complexity fe8c2780 warn user remote resource is disabled a345515f Don't delete dependent services 8967df7a Apply platform before hashing 4f694919 deps: remove deprecated github.com/pkg/errors 6ecab957 Include image name in error message 12e0ac89 pkg/compose/publish: use empty config descriptor mediaType a6b7d785 pkg/remote/oci: check artifactType instead of config.mediaType 991901f2 pkg/remote/oci: refer to the manifest as manifest 2d971fc9 update the watch warning message when no services with a develop section 78f33619 ci: enable verbose output for e2e tests (#11045) 44d21280 truncate command by default, introduce --no-trunc flag to get the full command ff2ff18c build(deps): bump google.golang.org/grpc from 1.58.1 to 1.58.2 ab81db5b config --xx don't need `env_file` being parsed 61c8be11 remove --timeout=0 flag to cleanup function of watch e2e test compose down command need the watch process to be killed to succeed 6be5f300 move watch from alpha to main command c34c306c TestWatch to use new `develop` section 5ca35c88 implement publish 805541be watch: use official `develop` section (#11026) 8f489d6d build(deps): bump github.com/opencontainers/image-spec 9ea8fbc6 build(deps): bump github.com/moby/buildkit from 0.12.1 to 0.12.2 76f150e4 build(deps): bump gotest.tools/v3 from 3.5.0 to 3.5.1 f447c809 build(deps): bump google.golang.org/grpc from 1.58.0 to 1.58.1 4587d4ba build(deps): bump github.com/containerd/containerd from 1.7.3 to 1.7.6 a697a069 introduce pull --missing flag to only pull images not present in cache 8af49ff3 resolve service reference into container based on observed state f6e31dbc don't rely on depends_on to resolve volume_from, better use observed state 6d5eb6fd update to go1.21.1 9d7e0ad6 correct scale error messages formatting 1a98a70b add scale command 19bbb12f ci: tweak restricted imports in linter (#10992) 7a134578 deps: upgrade Moby to v24.0.6 and gRPC to v1.58.0 (#10991) 13115468 cli: fix `--build` flag for `create` (#10982) e1aa4f77 otel: add args & flags to cli traces (#10974) d7b0b2bd watch: build & launch the project at start (#10957) e0f39ebb pull OCI remote resource c9d54f09 introduce publish (alpha) command 52e54ef9 doc: updated README.md to remove broken link f4f2e934 migrate to github.com/distribution/reference 32c3d0a3 Enable service explicitly requested to be restarted 1fdbcb62 build: pass BuildOptions around explicitly & fix multi-platform issues 407a0d5b up: fix various race/deadlock conditions on exit (#10934) 8caa6f1f pkg/api: replace uuid for basic random id Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* Revert "docker-compose: update to v2.24.6"Bruce Ashfield2024-03-204-396/+451
| | | | | | | | | | | | One of the vendor components has deleted a commit that docker-compose is using (and has listed as a replacement in go.mod). Until docker-compose comes up with a solution, we temporarily revert to and older compose. We'll update to the latest 2.23.x if this isn't resolved in 2.24+ before release. This reverts commit 29ec8e5ceacdf20bd1f836268cf01a6a12484ba3.
* docker-compose: update to v2.24.6Bruce Ashfield2024-03-154-451/+396
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumping compose to version v2.21.0-154-gce1ddb6c, which comprises the following commits: c665c53c bump buildx to v0.12.0 and adapt code to changes a39cf75e build(deps): bump github.com/compose-spec/compose-go 46ba9c99 build(deps): bump github.com/spf13/cobra from 1.7.0 to 1.8.0 5c5d30c6 build(deps): bump github.com/docker/cli 36fa8d4e build(deps): bump github.com/docker/docker 2384635e build(deps): bump github.com/moby/buildkit from 0.12.2 to 0.12.3 2ba5e4c1 in watch mode force pull policy to build for services with both build and develop attributes This default behaviour will force a rebuild of the service images at watch process startup and be sure containers will be in sync with the local source code b1a26dac Assume /src/pkg/compose/testdata absolute workingdir to make tests reproducible 5e77ae92 avoir use of []types.ServiceConfig f5572201 identify services to build and don't display 'building' if none 8e1b3236 fix --remove-orphans not to consider disabled services as orphaned 7cb1f8ba introduce RuntimeVersion for code to check container runtime supports required features cb01186c push also consider build.tags 9c4efbdd Strip project prefix from docker-compose up output 8ea7c9e0 Make it context aware and add test skipping options c1694360 render quiet after filtering applied 254a94b0 bump golang to version 1.21.4 cf608fa9 bump compose-go to v1.20.1 426377a4 reject compose file using `secrets|configs.driver or template_driver` 493f6c80 skips flaky e2e tests on watch and attach 646a8fc0 fix docker/compose#11170 add newline in cmd/compose/build.go fmt.Fprint 2945532f fix --pull documentation e5cd265a improve watch configuration logging Add action associated to each managed path d646d757 lint 71237ef6 do not resolve cache dir until remote resource is in use 0d905a89 add a copyright notice with original author b847c7f5 implement runtime file selection 5e3d8f67 re-implement cache folder detection 67279088 introduce --resolve-image-digests for publish to seal service images by digest 4cd61957 fix build 0d4cbbdb fix 9631a49d ENGDOCS-1764 328ca3f2 add docs upstream validation workflow e1bbfc63 build(deps): bump go.uber.org/goleak from 1.2.1 to 1.3.0 616bba0a linter errors fixed ee6e3c2a NetworkList to NetworkInspect for ID search c7e31a3c Squashing feature branch commits in order to add signoff message. 704a9fd3 Use project.ServiceNames() if no service specified in hash d9e0e42d Add branch configuration for pull_request trigger c48e3c4a Initial codeql.yml commit dd0803db fix SIGTERM support to stop/kill stack 39008c53 align with OCI artifact best practices 6c345b37 refactor(cmd/compose/run): remove redundant `len` check 1ffa194e fail start if depependency is missing b9298101 check that the pull policy provided is a valid one or is not missing when --pull is used 3d0207eb remove uncessary return value of pullComposeFiles function 16a7c209 enable profile when down is ran with explicit service names 818bc3c3 add sync+restart action to watch attribute 38bc6d5d build(deps): bump github.com/containerd/containerd from 1.7.6 to 1.7.7 0b6ce6ee build(deps): bump github.com/google/go-cmp from 0.5.9 to 0.6.0 ae16bbbf build(deps): bump google.golang.org/grpc from 1.58.2 to 1.59.0 d13ad1f9 build(deps): bump golang.org/x/sync from 0.3.0 to 0.4.0 9b4d577c remove refrecence docs generation 14b43c1a remove cucumber tests as we haven't added new ones for a while 9dd081b9 add support of COMPOSE_ENV_FILES env variable to pass a list of env files 2c0b0232 add dry-run support for publish command 599e4b24 extract method to reduce cyclomatic complexity fe8c2780 warn user remote resource is disabled a345515f Don't delete dependent services 8967df7a Apply platform before hashing 4f694919 deps: remove deprecated github.com/pkg/errors 6ecab957 Include image name in error message 12e0ac89 pkg/compose/publish: use empty config descriptor mediaType a6b7d785 pkg/remote/oci: check artifactType instead of config.mediaType 991901f2 pkg/remote/oci: refer to the manifest as manifest 2d971fc9 update the watch warning message when no services with a develop section 78f33619 ci: enable verbose output for e2e tests (#11045) 44d21280 truncate command by default, introduce --no-trunc flag to get the full command ff2ff18c build(deps): bump google.golang.org/grpc from 1.58.1 to 1.58.2 ab81db5b config --xx don't need `env_file` being parsed 61c8be11 remove --timeout=0 flag to cleanup function of watch e2e test compose down command need the watch process to be killed to succeed 6be5f300 move watch from alpha to main command c34c306c TestWatch to use new `develop` section 5ca35c88 implement publish 805541be watch: use official `develop` section (#11026) 8f489d6d build(deps): bump github.com/opencontainers/image-spec 9ea8fbc6 build(deps): bump github.com/moby/buildkit from 0.12.1 to 0.12.2 76f150e4 build(deps): bump gotest.tools/v3 from 3.5.0 to 3.5.1 f447c809 build(deps): bump google.golang.org/grpc from 1.58.0 to 1.58.1 4587d4ba build(deps): bump github.com/containerd/containerd from 1.7.3 to 1.7.6 a697a069 introduce pull --missing flag to only pull images not present in cache 8af49ff3 resolve service reference into container based on observed state f6e31dbc don't rely on depends_on to resolve volume_from, better use observed state 6d5eb6fd update to go1.21.1 9d7e0ad6 correct scale error messages formatting 1a98a70b add scale command 19bbb12f ci: tweak restricted imports in linter (#10992) 7a134578 deps: upgrade Moby to v24.0.6 and gRPC to v1.58.0 (#10991) 13115468 cli: fix `--build` flag for `create` (#10982) e1aa4f77 otel: add args & flags to cli traces (#10974) d7b0b2bd watch: build & launch the project at start (#10957) e0f39ebb pull OCI remote resource c9d54f09 introduce publish (alpha) command 52e54ef9 doc: updated README.md to remove broken link f4f2e934 migrate to github.com/distribution/reference 32c3d0a3 Enable service explicitly requested to be restarted 1fdbcb62 build: pass BuildOptions around explicitly & fix multi-platform issues 407a0d5b up: fix various race/deadlock conditions on exit (#10934) 8caa6f1f pkg/api: replace uuid for basic random id Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: introduce pkgconfig docker-pluginMing Liu2024-01-041-9/+9
| | | | | | | | | | This allows docker-compose choose to be built as a docker plugin or a standalone binary, in the later case, docker-compose does not have to rdepends on docker, so nother container tools like podman can also use it. Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: v2.20.3 -> v2.21.0Jose Quaresma2023-12-044-13/+21
| | | | | | | | | | | | | | | | | | | | | | | | - d6f842b0 test: e2e test reliability improvements (#10950) - 4fbbf201 build(deps): upgrade to compose-go v1.18.3 (#10947) - 935d72f4 added the dot at the end of the sentence - 41682acc add support for attributes exposed by `docker ps` - 1054792b align docker compose ps with docker CLI to support --format - 19f66918 watch: only allow a single instance per-project - 186744e0 ci: bump golangci-lint to v1.54.2 - bc9d696f Merge pull request #10922 from thaJeztah/replace_dockerignore - 6204fb1c logs: fix for missing output on container exit (#10925) - 5d732010 replace dockerfile/dockerignore with patternmatcher/ignorefile - 2006f3fe go.mod: github.com/moby/patternmatcher v0.6.0 - 192718c0 go.mod: remove some outdated comments - c79f67fe otel: add `include` to project up span - 3b294bfd build(deps): bump github.com/compose-spec/compose-go from 1.18.1 to 1.18.2 (#10915) - dd34f7a2 include: add experimental support for Git resources (#10811) - caad7271 up: handle various attach use cases better - 792afb8d build: use correct values for proxy variables (#10908) - 150449bb warn user secret uid/gid/mode is not supported Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: drop patches from the removed python versionJose Quaresma2023-12-042-85/+0
| | | | | | | | | Drop unused patches from the python version removed in 7bd56074. https://git.yoctoproject.org/meta-virtualization/commit/recipes-containers/docker-compose?id=7bd56074fece944ef9279d87106eb16452ec6338 Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: fix textrel QA issueChen Qi2023-10-021-3/+2
| | | | | | | | | | | | | | Fix textrel QA issue like below: ERROR: QA Issue: docker-compose: ELF binary /usr/lib/docker/cli-plugins/ docker-compose has relocations in .text [textrel] The problem could be fixed by adding -buildmode=pie, as this option has already been in GOBUILDFLAGS except for mips and riscv32, let's make use of GOBUILDFLAGS. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: upgrade to v2.20.3Chen Qi2023-09-154-900/+1086
| | | | | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: fix installation location for multilibChen Qi2023-09-151-3/+3
| | | | | | | | | In case of multilib, the location is /usr/lib64/docker/cli-plugins, which cannot be recognized by docker. We should use nonarch_libdir instead. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: not compatible with mipsKai Kang2023-09-151-0/+2
| | | | | | | | docker-compose rdepends on docker which is not compatible with mips. So set COMPATIBLE_HOST for docker-compose accordingly. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: drop python variantBruce Ashfield2023-08-241-41/+0
| | | | | | | | The python variant of docker-compose is no longer updated. We have the golang version, so we drop this recipe to avoid use of an obselete and potentially non-secure application. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: switch branch to mainBruce Ashfield2023-08-151-1/+1
| | | | | | | | | The upstream repoistory transitioned from master to main, and also deleted the v2 branch this recipe was using. Switch everything to main until (if?) new versioned branches appear. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: update to v2.17.2Bruce Ashfield2023-04-054-156/+303
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumping compose to version v2.17.2-8-g02ad467f, which comprises the following commits: a4c324b8 build(deps): bump github.com/docker/cli 087fae98 build(deps): bump github.com/docker/docker c5317496 workaround race condition in ContainerList 72a61c06 add dry-run support to run command b24af42b ci: bump compose-go to v1.13.2 3b85cd2f test: fix e2e commands on Windows 45a852f4 test: generate valid Compose project names from Cucumber specs cd17c8a9 test: update error message 36625ed2 test: fix race in e2e build test a6ffdf61 ci: upgrade to Go 1.20.2 & bump deps 9ab5d8c4 build(deps): bump github.com/moby/buildkit from 0.11.4 to 0.11.5 d637cc3a watch involves up --build after change has been detected 16d5354d watch: add note about goroutine-safety & test 7aaea283 watch: data race / segfault fixes 6bedc196 update -p project name flag documentation a11515e0 introduce `ignore` attribute for watch triggers 6c1f06e4 Run classic builder with BuildConfig, not buildx.Options 88b0d17f use `build` as common API for build scenarios 9e19bc84 use progress to show copy status 105a7c5b watch: add file delete/rename handling f7a13aee build(deps): bump github.com/docker/buildx from 0.10.3 to 0.10.4 bfeb1dc2 Fix concurrent map read/write when recreating containers 0b41df98 build(deps): bump github.com/moby/buildkit from 0.11.3 to 0.11.4 643557d5 build and push binaries images when a PR is merged or a tag pushed 200f47e5 Add support for `additional_contexts` in `build` service config e0aaccf4 introduce dockerfile_inline 754c0688 one off container name use configured Separator for naming e492330d collect built image IDs bbe1b77a progress writer uses dockercli.Err stream fc4d2dfd Remove "-s" from LDFLAGS 85ddfde5 use go 1.20 -cover support 6a0398d7 pad can be negative on small terminal 4434cea5 add dry-run support for push command 3f7d3c26 add dry-run support for pull command 9cc1613b adopt http://no-color.org/ 167c6a89 add dry-run support to restart command 3cfbac66 restart only needed services by checking depends_on relations a3bed265 update compose-go ae26426c Report error if project name is empty after normalization 4ea44797 only consider containers with config_hash labels (i.e, created by compose) 89633748 build(deps): bump github.com/containerd/containerd from 1.6.18 to 1.6.19 33aa6ace build(deps): bump go.opentelemetry.io/otel from 1.13.0 to 1.14.0 e31b95c1 test: tweak pause test to try and prevent failures in Windows CI 7bb60d09 build(deps): bump github.com/stretchr/testify from 1.8.1 to 1.8.2 da1ca578 watch: ignore ephemeral files & minor output tweaks 18af72af bump golang/x/net to v0.7.0 (CVE-2022-41723) e831ea82 add support for `restart` for `depends_on` 1edc64ef build(deps): bump github.com/containerd/containerd from 1.6.17 to 1.6.18 f3e543fd apply config options for pseudo-subcommands 9732608e build(deps): bump github.com/docker/buildx from 0.10.2 to 0.10.3 24ff0982 compact TUI to monitor layers download progress 593c4263 ci: bump to Go 1.20.1 and latest deps 313b82e9 ignore services without a build section 5e3e2171 sort service --hash output by service name 9ac0392b introduce --timeout on `up` 0612b34c introduce --no-deps on restart 92e0cd40 also restart dependent services after a service has been restarted 282a29e6 build(deps): bump go.uber.org/goleak from 1.1.12 to 1.2.1 256ec499 exclude unstable labels from config hash 9765f171 store exec details to offer better dry-run status on ExecStart b19df5c9 add support for `excludes` and `rebuild` 7a42ba7e use CGO to enable fsevent on OSX 5b043c4d ci: don't use `-race` on Windows 15f7104c ci: use CGO for tests to enable race detector eb1c7989 support dry-run for rm command 78b94047 support dry-run for stop command 25be264e support dry-run for exec command 7532f769 build(deps): bump go.opentelemetry.io/otel from 1.12.0 to 1.13.0 70ab9f8f bump docker engine and cli version to 23.0.0 with buildkit(v0.11.2) and buildx (v0.10.2) 93bffd9a prevent assignment to entry in nil map 52478f0c wait on service containers as dependencies to be deterministic b5f0a4ee use containers we expect to start for wait condition 0f5b5ccb detect replacement container is created and inform printer so it attach and don't stop a2d36b6c bump golang to 1.20 30772342 ci: Replace deprecated command with environment file fdc17381 add log when copying files/directories between host and containers (both way) 2336d9fe support dry-run for cp command 1640f155 initial support for `sync` e63cbfba use tilt watcher to track filesystem changes 25576289 adjust code and dependencies 7d6ee74e cleanup deprecated ioutil functions (#5919) c08e0771 watch: optimization to help avoid inotify nodes for large file trees (#5769) cf314623 tests: make test fixtures responsible for tearing themselves down (#5512) 1b71e3ef lint: fix local-prefixes for goimports (#5453) 4d822676 ci: add exportloopref linter and upgrade to golangci-lint v1.43.0 (#5281) 6fc0b6ff build: ensure file handles properly closed (#5298) ab84b6ac Fix local go_lintfix errors (#5191) 7161778c watch: use WalkDir to speed up file listing (#4684) 1f5bfe88 test: clean up test loggers a bit (#4580) f79c75ab test: fix lint errors on Darwin (macOS) (#4247) e62993a8 test: enable unused check, remove dead code (#4208) 28251e8b watch: improve error messages when you run out of inotify instances (#3960) c7ba7d9d dockerignore: convert ignore patterns to absolute paths [ch9237] (#3743) 8b393223 watch: fix a dumb errcheck (#3622) b3615d64 watch: increase the windows watch i/o buffer (#3620) 1a1d1707 change org name from windmilleng to tilt-dev (#3346) fd3e0bbe watch: use the recursive watcher on windows (#3306) d2d4d052 Revert "watch: fix inotify tests on windows" (#3147) dda0362b watch: fix inotify tests on windows (#3140) ddc88ec4 circleci: run make shorttest on windows. flag off a large swath of broken tests (#3132) 92c6a65a tilt: enable errcheck on tests (#2877) 00b3caec ci: enable staticcheck, fix problems that were surfaced (#2809) 17087447 logger: move to pkg (#2031) ec781687 watch: add retry counts to fsync (#2023) b22dde9f dockerignore: improve MatchesEntireDir (#1865) a31350ed watch: move more of the directory-skipping logic into the interface (#1864) d744c97f watch: add a simple check when there are no exclusions (#1863) 37647bc6 watch: skip setup if nothing is being watched (#1861) 21e5d564 watch: FileEvents must always be absolute (#1841) 390d5cf1 watch: add tests for ignores and number of watches (#1838) 7f6e189d watch: change the watcher interface to better match how we actually use it (#1835) b5ccea7b watch: record num watches in expvars (#1795) 47551895 makefile: fix goimports -local (#1763) 5e0f1eec watch: fix spurious errors while watching (#1726) f82e2de5 watch: don't watch each individual file (#1613) 9c7f7bc0 live_update: error if syncing from outside of docker context (#1396) 6defe7ca watch: tfw you have a test that asserts broken file-watch behavior :cry: (#1354) 0482f927 watch: add watch function that traverses up directory structure recursively (#1013) e8a34c8d watch: remove inotify-specific bits of watcher_linux (#890) 9e261c18 watch: fix a bug when a file and its ancestor both have direct watches (#863) 1fd7ca54 testing: update internal/watch to use the tempdir fixture (#862) 139edc40 cleanup: wrap errors properly (#772) 38b3f3b6 watch: use `sinceWhen` and `HistoryDone` to avoid spurious events (#557) c5bce8bd watch: fix a spurious error (#344) c8a358a4 watch: try a slightly different ignore strategy (#174) a6701652 watch: fix more data races on darwin (#166) 4562b0bf watch: a new strategy for handling spurious events, hoping to fix race conditions (#163) 4801d2b1 watch: fix a flaky test by ignoring spurious events correctly (#162) 3850a341 watch: fix a segfault on linux (#148) 664e6f6f watch: stop skipping tests (#145) d4f074b3 watch: simplify the fileEvent interface to only contain paths (#144) a3b012d8 add errcheck (#93) a755c84e tilt: copy watch code from tesseract ef34a38a Add remote buildx driver 41e05634 rename `convert` to `config` to align with compose v1 UX c0b4dd86 build(deps): bump go.opentelemetry.io/otel from 1.11.2 to 1.12.0 6754c6b6 add dry-run support of pause and unpause commands 982a8ccb support dry-run for kill command 790712fa update tty and plain text writers to support dry run mode 6fae6a41 Update emacs ignore patterns (#5903) dd5ea044 ignore: add Go umask files to ephemeral set (#5740) 12de97b8 filewatch: use apiserver FileWatch model in EngineState (#4277) 62b5f78f Add .kate-swp files to ignore pattern (#3380) 3f526c5c change org name from windmilleng to tilt-dev (#3346) 12916b75 tilt: ignore a few more vim swap files (#2190) e3948f6b ignore: auto-ignore jetbrains .idea file (#2065) 91a2bdd6 model: move to pkg (#2024) ce61e7bf ignore: improve the ephemeral temp file patterns [ch2663] (#1925) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: update to v2.15.1Bruce Ashfield2023-02-104-347/+398
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumping compose to version v2.14.0-155-ga93f09ef, which comprises the following commits: 51bcfa37 build(deps): bump github.com/containerd/containerd from 1.6.15 to 1.6.16 982a8ccb support dry-run for kill command 790712fa update tty and plain text writers to support dry run mode 97752b23 refresh Maintainers list 634a7d2a Support for docker compose build --push when using multiple platforms a288332f Update docs to add `--scale` argument to `compose create` 9d53ed8f Add `--scale` to `compose create`, refactor scale option df707352 Fix: Handle concurrent threads using mutex on the rainbowColor function d8bf175c Remove unecessary files 4816f40b Fix: remove the infinite goroutine ed5a2e83 Remove unecessary files fa8d075d Fix: remove the infinite goroutine 33c3f4df alias -n for --tail to align with docker CLI aa313873 cleanup TUI lines after switching to "compact" mode d47f0f31 Update docs to mention `COMPOSE_PARALLEL_LIMITS` and ways to configure parallelism 4721c017 fix docs to reflect docker compose ps being aligned with docker ps 5919fcb4 Revert "Fix Goroutine leak in v2/command/formatter" 3a21e1e3 Fix Linting Issues b670aefb Feat: Clean inifinite Goroutine 220626ec Only account running containers for logs 291e1bd6 bump compose-go to version v1.9.0 e94eb056 allow a TTY to be allocated with -t c15bf195 debounce refresh requests with quietperiod 0b1c8672 Add tests for filtering containers not created by Compose 82ef9985 Ignore containers created outside compose fb36f7ff directly embed the orignal APIClient in the DryRunClient 3fac506a identify functions which need to be ovorridden for dry run feature eb59b0e2 add alpha command to test dry-run 5081ab05 create custom CLI when dry-run mode active update documentation 13ef440d add DryRun API Client with delagation pattern fbf845c5 add dry-run flag 5a2b7b83 use compose service methods when exist instead of directly service.dockerCli 8c07fa4d mark alpha command as experimental 9daf4189 Adjust terminal height calc bb9cf322 introduce experimental watch command (skeletton) 69a09624 Skip child events when printer events > terminal height f2088bb9 fix typo dadad01e Update docs programatically like you're supposed to 1adc9f54 fix docs yaml 4cebce3a This option lives in the create options, not the run options bd8e5744 Add remove-orphans functionality to run, because it recommends that in error messages 4ad87463 Add :cucumber: GHA workflow cc912c62 introduce --remove-orphans in compose create command 3e12a7cb pass proxy config as build args - same as docker/buildx#959 0c197997 Remove unused kube tag 73ebbffb Don't share the options map b326a9da don't filter by services if no filter was set f1313f3a use a simpler prompt implementation when we lack a terminal a226d014 fix CVE-2022-27664 and CVE-2022-32149 high-risk vulnerability 7e2af3aa build(deps): bump github.com/containerd/containerd from 1.6.14 to 1.6.15 96bbda98 add support for uts namespace aa5cdf2b add support for COMPOSE_PARALLEL_LIMIT (parity with Compose v1) d5e4f006 introduce --no-attach to ignore some service output 8b4ac37f introduce `--ignore-buildable` to ignore buildable images on pull b96e27e0 limit build concurrency according to --parallel 37d15d7e Ignore not only auto-removed containers but also "removal in progress" for orphan containers dde7eea2 Update expected Cucumber `compose ps` output to match changes a2247807 Set `pullChanged` when setting `--pull` on `compose up` ffce33ec Fix empty file when using compose config in case of smaller source files 8a3248d0 Update documentation 52e7f0fb build(deps): bump github.com/docker/cli-docs-tool from 0.5.0 to 0.5.1 fd353ffa add support of privileged attribut in service.build section adf8e753 cleanup framework.go from uncessary debug logs 9f7ad18d reduce cyclomatic complexity 40ebcd62 fix security opts support (seccomp and unconfined) 9bd9f176 check service names based on project, not running containers 5dcadc05 debut output for CI c72f161a change the way finding the just built compose binary 86a648bd e2e tests display Compose version used to run the test currently the version displayed is the one installed and not the one use for the tests 27a32419 rely on CI timeout 935968fe add buildx plugin to e2e configuration directory 91371fef remove flaky TestLocalComposeLogsFollow 986bc445 service hash MUST exclude replicas 24f83271 don't assume os.Stdout and rely on dockerCLI.streams dacf2437 dump stdout to help diagnose flaky test 22d2e838 don't fail `logs` when driver:none is set b4b73199 introduce support for cgroup namespace aae5ddca build(deps): bump github.com/containerd/containerd from 1.6.12 to 1.6.14 0ab5079c fix race condition on compose logs 89ef8198 update projectOptions to be public by renaming it to ProjectOptions b8bbdcd8 detect dependency failed to start d0e95cca set CPU quota 7bc27d44 Use `DOCKER_DEFAULT_PLATFORM` to determine platform when creating container c1ce53c9 fix regression running pull --ignore-pull-failures e42673da only list running containers when --all=false ffb95449 volume: fix WCOW volume mounts 5c1484ec apply uid/gid when creating secret from environment 84984864 load project from explicit --files when set 8566daa9 use recently introduced `withSelectedServicesOnly` to reduce code duplication 84ea395d introduce --timestamp option on compose up 1cb5536a Address review comments e4850d9c Add --include-deps to push command 8c39b5b7 align `--format` flag and UX with docker cli bc568eeb align `compose ps` output with `docker ps` a501ab3a use StatusError from docker/cli, not "dockerd" d4a4dcf4 resolve --env-file as absolute path 05e987dd fix parsing of repository:tag 0368f190 distinguish stdout and stderr in `up` logs 3ee2ab87 ContainerStart must run sequentially for engine to assing distinct ports within configured range 8f991a20 Fix corner case when there's no container to attach to 0234e134 Don't stop pull for images that can be built c342891f Squashed commit of the following: 8ef34947 build(deps): bump github.com/containerd/containerd from 1.6.10 to 1.6.12 cc247fdb remove go.* from e2e tests directory a4ac6ab6 added table of contents inside readme a73dce44 fix race condition collecting pulled images IDs 804d7163 detect required service are gone to stop watching explicit API to stop the log printer cc60026c update to go1.19.4 87a0a57f Cleanup tips from output 95bc6c58 check only running containers in after down tests of profiles e2e tests 57a1e1e0 Update `e2e` mod deps 02305756 build(deps): bump go.opentelemetry.io/otel from 1.11.1 to 1.11.2 a0acc20d introduce --parallel to limit concurrent engine calls 053f20ed port: improve error-handling if port not found (#10039) 9b8d520b ci: upgrade to Go 1.19.3 & bump deps 113fb673 schema: add support for tmpfs.mode in mount definition (#10031) b9e5f9e9 test: speed up Cucumber stop test (#10032) c74a77e8 Make use of Containers.filter() and isService() 7f975fa4 Fix replacing "service:x" with "container:y" 73691276 use StringToBool to detect COMPOSE_IGNORE_ORPHANS 2e7644ff use api.Separator to print right image names 8f2b7471 use DistributionInspect to resolve image digest 9ac4f699 move image digests resolution to backend 2bef9769 Broken Link fixed in compose docs 707d55c7 add file header and cleanup profiles e2e tests 5edd7830 add e2e tests to check profile activation via targeted service 6fbef296 add e2e tests to check no profile usages 7fe43a8b add e2e tests using explicitly profiles 24ec0b2d pass services list to projectOrName function to add profiles for targeted services ed38fe0d only stop services started by `up` on interruption 06e71371 docs: fix grammatical issues (#9997) fb5b90ed implement support for oom_score_adj 10a5d998 useDockerDefaultOrServicePlatform fct should return service.platform if defined and present in the build.platforms list (or if the list is empty) c3e5e499 configure buildx for plain output if --ansi=never has been set 4bf98c70 change the default branch of the doc repository d7a24e9c Update `e2e` module deps 19d6ca9c ignore error parsing container number label, just warn 6fe03e93 Update docs 35d31cc5 Add `--build` option to `compose run` 7c5675c3 use platform defined by DOCKER_DEFAULT_PLATFORM when pulling and no service platform defined a077e8a2 display creation warnings from the engine 8c1e2af3 add e2e tests to check build dependency between services a9e07020 check if a missing image won't be build via a service declared in depends_on section 32f29b83 add --no-consistency flag to convert command 533fc616 use COMPOSE_PROFILES value only if no command line arg profiles used bfb9e11f build(deps): bump github.com/containerd/containerd from 1.6.9 to 1.6.10 09e742b3 exclude issues with the kind/feature label from stale bot process 306ae161 ci: upgrade to compose-go v1.7.0 fd4aecef ci: update dependencies to latest 34e945a5 ci: remove uses of deprecated gotest.tools v2 (#9935) e1899421 Update `e2e` module dependencies 369e9125 build(deps): bump github.com/containerd/containerd from 1.6.8 to 1.6.9 7ba9aac5 add support of deploy.reservation.memory 6d64242f Update deps for `e2e` module eaf27d9d map deploy.restart_policy.condition to engine values 36a91839 build(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1 533abc3b go.mod: docker 5aac513617f072b15322b147052cbda0d451d389 / v22.06-dev 197c1690 update docker engine API to apply fix of CVE-2022-39253 c630c8d2 go.mod: update docker-credential-helpers v0.7.0 41cf5ee3 go.mod: remove replace for runc b7053cad go mod: tidy and group "require" blocks, update comments 717ace99 Update `e2e` module deps 8bdfc627 build(deps): bump go.opentelemetry.io/otel from 1.11.0 to 1.11.1 dd13299e Skip flaky test in CI 3f0550f8 log the error object instead of the string message only 18ce1f41 replace deprecated functions 3bf29d40 bump docker dependencies version 7424a3d3 Fix Makefile target `validate-go-mod` to only run correct bakefile target 6b7e9466 Update `e2e` module deps 91eae4f0 Add Codecov 8b897214 port: fix container name in error message (#9909) f43a1e3e github: add feature request template fa1ae635 github: switch to issue template form afc0263f build(deps): bump go.opentelemetry.io/otel from 1.10.0 to 1.11.0 bb002a76 Update e2e mod dependencies 2ccd57e0 build(deps): bump github.com/spf13/cobra from 1.5.0 to 1.6.0 Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose2: introduce go version of docker-composeBruce Ashfield2022-10-254-0/+1169
| | | | | | | | | | Introducing a recipe to build (and create a vendor directory) for the docker-compose2 command, which is a go implementation of he formely python3 docker-compose. This co-exists (for now) with the python version. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* global: overrides syntax conversionBruce Ashfield2021-08-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OEcore/bitbake are moving to use the clearer ":" as an overrides separator. This is pass one of updating the meta-virt recipes to use that syntax. This has only been minimally build/runtime tested, more changes will be required for missed overrides, or incorrect conversions Note: A recent bitbake is required: commit 75fad23fc06c008a03414a1fc288a8614c6af9ca Author: Richard Purdie <richard.purdie@linuxfoundation.org> Date: Sun Jul 18 12:59:15 2021 +0100 bitbake: data_smart/parse: Allow ':' characters in variable/function names It is becomming increasingly clear we need to find a way to show what is/is not an override in our syntax. We need to do this in a way which is clear to users, readable and in a way we can transition to. The most effective way I've found to this is to use the ":" charater to directly replace "_" where an override is being specified. This includes "append", "prepend" and "remove" which are effectively special override directives. This patch simply adds the character to the parser so bitbake accepts the value but maps it back to "_" internally so there is no behaviour change. This change is simple enough it could potentially be backported to older version of bitbake meaning layers using the new syntax/markup could work with older releases. Even if other no other changes are accepted at this time and we don't backport, it does set us on a path where at some point in future we could require a more explict syntax. I've tested this patch by converting oe-core/meta-yocto to the new syntax for overrides (9000+ changes) and then seeing that builds continue to work with this patch. (Bitbake rev: 0dbbb4547cb2570d2ce607e9a53459df3c0ac284) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* python3-docker-compose: Upgrade 1.29.1 -> 1.29.2Leon Anavi2021-07-201-2/+1
| | | | | | | | | | Upgrade to release 1.29.2: - Remove prompt to use docker compose in the up command - Bump py to 1.10.0 in requirements-indirect.txt Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: update to 1.29.1Bruce Ashfield2021-04-152-17/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following changes are part of this version bump: 1.29.1 (2021-04-13) ------------------- Bugs Fix for invalid handler warning on Windows builds Fix config hash to trigger container recreation on IPC mode updates Fix conversion map for placement.max_replicas_per_node Remove extra scan suggestion on build 1.29.0 (2021-04-06) ------------------- Features Add profile filter to docker-compose config Add a depends_on condition to wait for successful service completion Miscellaneous Add image scan message on build Update warning message for --no-ansi to mention --ansi never as alternative Bump docker-py to 5.0.0 Bump PyYAML to 5.4.1 Bump python-dotenv to 0.17.0 1.28.6 (2021-03-23) ------------------- Bugs Make --env-file relative to the current working directory and error out for invalid paths. Environment file paths set with --env-file are relative to the current working directory while the default .env file is located in the project directory which by default is the base directory of the Compose file. Fix missing service property storage_opt by updating the compose schema Fix build extra_hosts list format Remove extra error message on exec Miscellaneous Add compose.yml and compose.yaml to default filename list 1.28.5 (2021-02-25) ------------------- Bugs Fix OpenSSL version mismatch error when shelling out to the ssh client (via bump to docker-py 4.4.4 which contains the fix) Add missing build flags to the native builder: platform, isolation and extra_hosts Remove info message on native build Avoid fetching logs when service logging driver is set to 'none' 1.28.4 (2021-02-18) -------------------- Bugs Fix SSH port parsing by bumping docker-py to 4.4.3 Miscellaneous Bump Python to 3.7.10 1.28.3 (2021-02-17) ------------------- Bugs Fix SSH hostname parsing when it contains leading s/h, and remove the quiet option that was hiding the error (via docker-py bump to 4.4.2) Fix key error for '--no-log-prefix' option Fix incorrect CLI environment variable name for service profiles: COMPOSE_PROFILES instead of COMPOSE_PROFILE Fix fish completion Miscellaneous Bump cryptography to 3.3.2 Remove log driver filter Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* docker-compose: update to 1.28.2Bruce Ashfield2021-02-062-13/+11
| | | | | | | Along with the version bump, we refresh our dependency patch to apply. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* python3-docker-compose: upgrade 1.26.0 to 1.27.4Ricardo Salveti2020-11-032-16/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Release notes for 1.27.4: - Bugs - Remove path checks for bind mounts - Fix port rendering to output long form syntax for non-v1 - Add protocol to the docker socket address Release notes for 1.27.3: - Bugs - Merged max_replicas_per_node on docker-compose config. - Fixed depends_on serialization on docker-compose config. - Fixed scaling when some containers are not running on docker-compose up. - Enabled relative paths for driver_opts.device for local driver. - Allowed strings for cpus fields. Release notes for 1.27.2: - Bugs - Fix bug on docker-compose run container attach Release notes for 1.27.1: - Bugs - Fix compose run when service.scale is specified - Allow driver property for external networks as temporary workaround for swarm network propagation issue - Pin new internal schema version to 3.9 as the default - Preserve the version when configured in the compose file Release notes for 1.27.0: - Features - Merge 2.x and 3.x compose formats and align with COMPOSE_SPEC schema - Implement service mode for ipc - Pass COMPOSE_PROJECT_NAME environment variable in container mode - Make run behave in the same way as up - Use docker build on docker-compose run when COMPOSE_DOCKER_CLI_BUILD environment variable is set - Use docker-py default API version for engine queries (auto) - Parse network_mode on build - Bugs - Ignore build context path validation when building is not required - Fix float to bytes conversion via docker-py bump to 4.3.1 - Fix scale bug when deploy section is set - Fix docker-py bump in setup.py - Fix experimental build failure detection - Fix context propagation to docker cli - Miscellaneous - Drop support for Python 2.7 - Add script for docs syncronization - Bump docker-py to 4.3.1 - Bump tox to 3.19.0 - Bump virtualenv to 20.0.30 Release notes for 1.26.2: - Bugs - Enforce docker-py 4.2.2 as minimum version when installing with pip Release notes for 1.26.1: - Features - Bump docker-py from 4.2.1 to 4.2.2 - Bugs - Enforce docker-py 4.2.1 as minimum version when installing with pip - Fix context load for non-docker endpoints Signed-off-by: Ricardo Salveti <ricardo@foundries.io> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* python3-docker-compose: uprev 1.25.5 > 1.26.0Ming Liu2020-07-012-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The major changes include: d4451659 Bump 1.26.0 3d94f442 Bump 1.26.0-rc5 1386a855 Merge pull request #7485 from ulyssessouza/fix-https-daemon 8034c96d Bump docker-py 48d09369 Fix flake8 errors 28bf47ce Pin wcwidth==0.1.9 d279b7a8 Bump 1.26.0-rc4 83371df2 Merge branch 'master' into 1.26.x 9c5351cf Merge pull request #7389 from ulyssessouza/general-bumps-for-1_26 836e2b7c General bumps 266d287e Merge pull request #7390 from ulyssessouza/remove-unused-resources d64f3f39 Remove unused files 4e310a94 Merge pull request #7386 from ulyssessouza/bump-python-dotenv-1_13_0 d52b51e8 Bump python-dotenv from 0.11.0 to 0.13.0 64a6a48b Merge pull request #7345 from docker/dependabot/pip/certifi-2020.4.5.1 0979c7a1 Merge pull request #7380 from joehattori/simplify-code ce782b59 Simplify code in compose/config/config.py b7d6dc79 Bump certifi from 2019.11.28 to 2020.4.5.1 c22a2510 Merge pull request #7374 from ulyssessouza/fix-distro-guess a62a1e1d Add "distro" package afc5d205 Merge pull request #7371 from ulyssessouza/bump-openssl-111f 4d2afc07 Merge pull request #7372 from ulyssessouza/update-changelog Have verified on arm/arm64/x86_64 against: https://docs.docker.com/compose/gettingstarted Signed-off-by: Ming Liu <ming.liu@toradex.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* python3-docker-compose: update to 1.25.5Ricardo Salveti2020-05-051-2/+2
| | | | | | | | | | | | | | Main change is support for the compose format version 3.8. Relevant git changes between versions: - 41d229eb Fix v3.8 schema support for binaries - 15bb3eeb add warning when max_replicas_per_node limits scale - 5d34f12f set min engine version needed for v38 schema support - 82873d2b update api version for 3.8 - fe832661 Add v3.8 schema support Signed-off-by: Ricardo Salveti <ricardo@foundries.io> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* python3-docker-compose: update to 1.25.4Ricardo Salveti2020-02-112-6/+6
| | | | | Signed-off-by: Ricardo Salveti <ricardo@foundries.io> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* python3-docker-compose: import fastentrypointsMing Liu2020-02-032-1/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The docker-compose project is using console_scripts which hence imports pkg_resources which is very slow at starting time, see: https://github.com/pypa/setuptools/issues/510 This could be workaround by importing fastentrypoints module. Some tests: Before the patch, on a colibri-imx8x machine: $ time docker-compose ``` real 0m5.108s user 0m4.761s sys 0m0.272s ``` After the patch, on a colibri-imx8x machine: $ time docker-compose ``` real 0m3.526s user 0m3.249s sys 0m0.235s ``` Have verified the patch with: https://docs.docker.com/compose/gettingstarted Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* python3-docker-compose: uprev to 1.25.0Ming Liu2019-12-063-47/+51
| | | | | Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* python3-docker-compose: remove maximum version requirementsChen Qi2019-11-273-45/+59
| | | | | | | | | | | | | | | | | Remove maximum version requirements for docker-compose so that it does not require old version recipes. The old version recipes required are as below. * PyYAML * requests * urllib3 * idna * jsonschema The current one has been tested against https://docs.docker.com/compose/gettingstarted/. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* python3-docker-compose: upgrade to version 1.21.2Li Zhou2019-10-193-35/+47
| | | | | | | | | | The python3-docker-compose_1.16.1 requires 'docker<3.0, >=2.5.1', while python3-docker 3.4.0 is provided. Error occurs when running 'docker-compose --version'. Upgrade to python3-docker-compose_1.21.2 to make it work. Signed-off-by: Li Zhou <li.zhou@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
* python3-docker-compose: remove deprecated python3-enum from RDEPENDSRicardo Salveti2018-03-141-1/+0
| | | | | | | The python3-enum package was removed and it is now part of core. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* add python3-terminal RDEPENDS to docker-compose recipeValerio De Benedetto2018-01-181-0/+1
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* python3-docker-compose: add version 1.16.1 + dependenciesPascal Bach2017-09-152-0/+63
This requires some packages as well as the pypi.bbclass from meta-python. It uses Python 3 as I don't think it makes sense to use Python 2 anymore. Signed-off-by: Pascal Bach <pascal.bach@siemens.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>