Commit Graph

4 Commits

Author SHA1 Message Date
Bruce Ashfield
d876cfc5bf global: overrides syntax conversion
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>
2021-08-02 17:17:53 -04:00
Martin Jansa
92f976404b podman-compose: remove pypi inherit to fix do_fetch
* now when pypi uses SRC_URI_prepend since:
  https://git.openembedded.org/openembedded-core/commit/?id=8f17b8bce85efb0e9a7e15d0b98a5cf7b6bd9750
  both entries end in SRC_URI (because of delayed nature of prepend):
  https://files.pythonhosted.org/packages/source/p/podman-compose/podman-compose-0.1.5.tar.gz
  git://github.com/containers/podman-compose.git

  causing:
  ERROR: podman-compose-0.1.5-r0 do_fetch: No checksum specified for '/OE/build/oe-core/downloads/podman-compose-0.1.5.tar.gz', please add at least one to the recipe:
  SRC_URI[sha256sum] = "fb229362f188980ea3fbdee2a25d0a2dd6a0b886d925d5213e22e09f1062ebe9"
  ERROR: podman-compose-0.1.5-r0 do_fetch: Fetcher failure for URL: 'https://files.pythonhosted.org/packages/source/p/podman-compose/podman-compose-0.1.5.tar.gz'. Missing SRC_URI checksum
  ERROR: Logfile of failure stored in: /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/podman-compose/0.1.5-r0/temp/log.do_fetch.55855

  drop pypi inherit to restore the previous SRC_URI with just the git:// entry.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-07-03 23:41:04 -04:00
Bruce Ashfield
f32657ae6e podman-compse: update to latet 0.15 hash
Updating to the latest commits, and switching to the named
'devel' branch (from master previously).

The following commits are part of this update:

   6289d25 fixes #236: compatible with docker-compose
   abc0813 Only pull each image once
   9cd837f Fixes #236: Ensure project name works with podman
   a4b8b5e Fix 'podman-compose version' with no compose file in the working directory
   5971f57 FIXES #249: update dotenv with some envs
   ab96f12 FIXES #249: update dotenv with some envs
   f6a3cb0 Allow environment variables to be unset
   497355f Re-order environment/env_files to match compose
   20a86ea add --no-cache arg to build
   4e2e960 build specific service
   efba3a1 support str style configuration for env_file
   9063976 BUG: 'podman stop -t 360.0' called for float, expects int on cli
   3712b54 ENH: add timeout option to podman-compose down, as in https://docs.docker.com/compose/reference/down/
   294f8ee Hashlib to generate SHA256 instead of MD5 for FIPS
   105b129 Fix infinite loop
   d3f3711 FIXES #181: accept init and init-path
   7eacf14 MAINT: resolve https://github.com/containers/podman-compose/pull/180#issuecomment-632722974
   8cd98ab MAINT: extend instead of append
   047820d ENH: Added restart policy forwarding to podmann run, compose build args added to up args
   e7b1382 Add --build-arg to 'up' (Fixes #161)
   64ed554 Allow empty default/error value in substitution
   93bf39e Add Security Policy
   5915ba3 Catch error when compose file is empty
   1ca6a88 target once
   7b40079 Pass "target" parameter when building an image.
   f9915c4 Check for target property when building images
   1973340 Add support for --build-arg option
   e8147e3 Add support for cap_add/cap_drop
   7f210ff fixing "Error: unknown flag: --shm_size"
   cbed801 start detached
   6a42d68 add ports test
   07a2430 Fixes #152: validate that podman is useable
   5215782 Fixes #152: validate that podman is useable
   03cbd29 pass volumes using -v
   796e6a4 Avoid crash when no services are defined
   efcbc75 Pass ulimit parameters when building container
   dacc753 Add Code of Conduct
   8c3b7e6 Added mount option delegated and cached
   147f0ae Update README with dnf install instructions.
   27d3caf Add support for privileged option
   e7a9bd3 Show stopped containers in ps
   ddd582c Add support for logs subcommand
   169eaee Fix override of the run command
   c5f8973  Mixed-case directory names break 'podman create'
   12036aa FIXES #76: a service extends a service with same name
   7222fdb exit if not files
   bb7120f Fix stop command runs start instead
   7ebbe2e Fix KeyErrors encountered with extended services
   29d4cdc Remove unused funtion in setup.py
   a9216c3 podman volume inspect mountPoint/Mountpoint
   e538852 #57: better ps via label
   b1c2b02 podman_compose.py
   9e0dd2d extends with external file
   72c1992 Remove never-shared options.
   3e2381f Support extends
   dee813a #47: version command
   9684429 #52: fix how we split commands
   87e7211 #54: fix ulimits
   7269701 Fixed get of ulimit tag, according to docker-compose specification
   b369073 Fix podman-compose run command parsing
   62f0cc4 Changed -l flag to --label in order to be compatible with Podman 1.0.2.dev
   c152d28 Support for generic  container-compose format
   8e43e69 FIX #41: compare original volume name
   751aaa8 Add support for devices in a service
   243bdb6 Add support for setting container ulimit
   2202e7f Add support for setting container ulimit
   f505e49 a test showing yaml anchor magic
   2e4378f add string check for cmd line args
   2a8d430 FIXES #35: now support multiple composer files
   a512c0c #35: test for multiple -f

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-02-06 13:02:10 -05:00
Stefan Agner
4d6edd4fc5 podman-compose: move into subdirectory
The layer does not expect recipes in the first subdir. Move the
podman-compose recipe into a podman-compose subdirectory.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-10-14 21:56:17 -04:00