meta-virtualization/recipes-containers/docker-compose/docker-compose_git.bb
Bruce Ashfield cfa6717d3a docker-compose: update to v2.15.1
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 🥒 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>
2023-02-10 12:36:11 -05:00

82 lines
2.1 KiB
BlitzBasic

HOMEPAGE = "https://github.com/docker/compose"
SUMMARY = "Multi-container orchestration for Docker"
DESCRIPTION = "Docker compose v2"
DEPENDS = " \
go-md2man \
rsync-native \
"
# Specify the first two important SRCREVs as the format
SRCREV_FORMAT="compose_survey"
SRCREV_compose = "a93f09efacbbc59324ddbab8b81dea8423a0cb63"
SRC_URI = "git://github.com/docker/compose;name=compose;branch=v2;protocol=https"
include src_uri.inc
# patches and config
SRC_URI += "file://modules.txt"
SRC_URI[sha256sum] = "d7b05a9bff34dfb25abe7e5b1e54cf2607f953d91cb33fb231a4775a1a4afa3d"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=175792518e4ac015ab6696d16c4f607e"
GO_IMPORT = "import"
PV = "v2.15.2"
COMPOSE_PKG = "github.com/docker/compose/v2"
inherit go goarch
inherit pkgconfig
do_configure[noexec] = "1"
PACKAGECONFIG ?= ""
include relocation.inc
do_compile() {
cd ${S}/src/import
export GOPATH="$GOPATH:${S}/src/import/.gopath"
# Pass the needed cflags/ldflags so that cgo
# can find the needed headers files and libraries
export GOARCH=${TARGET_GOARCH}
export CGO_ENABLED="1"
export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}"
export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}"
export GOFLAGS="-mod=vendor -trimpath"
# our copied .go files are to be used for the build
ln -sf vendor.copy vendor
# inform go that we know what we are doing
cp ${WORKDIR}/modules.txt vendor/
GO_LDFLAGS="-s -w -X internal.Version=${PV} -X ${COMPOSE_PKG}/internal.Version=${PV}"
GO_BUILDTAGS=""
mkdir -p ./bin
${GO} build $GOFLAGS -tags "$GO_BUILDTAGS" -ldflags "$GO_LDFLAGS" -o ./bin/docker-compose ./cmd
}
do_install() {
#install -d "${D}${BIN_PREFIX}/bin"
#install -m 755 "${S}/src/import/bin/docker-compose" "${D}${BIN_PREFIX}/bin"
# commonly installed to: /usr/lib/docker/cli-plugins/
install -d "${D}${libdir}/docker/cli-plugins/"
install -m 755 "${S}/src/import/bin/docker-compose" "${D}${libdir}/docker/cli-plugins/"
}
RDEPENDS:${PN} += " docker"
FILES:${PN} += " ${libdir}/docker/cli-plugins/"
INHIBIT_PACKAGE_STRIP = "1"
INSANE_SKIP:${PN} += "ldflags already-stripped"