Giter Site home page Giter Site logo

Comments (12)

dellgreen avatar dellgreen commented on July 17, 2024 1

Yes the docs do confirm your findings about -f flag

https://docs.docker.com/compose/reference/overview/

from podman-compose.

muayyad-alsadi avatar muayyad-alsadi commented on July 17, 2024 1

I've implemented deep merge of multiple composer files

the following would be treated as lists

  • "env_file"
  • "security_opt"

and the following would be treated as dicts

  • "environment"
  • "labels"

from podman-compose.

dellgreen avatar dellgreen commented on July 17, 2024

Testing podman-compose as a drop in replacement for docker-compose for mender.io project which uses the following script:

exec docker-compose
-p menderproduction
-f ../docker-compose.yml
-f ../docker-compose.storage.minio.yml
-f ./prod.yml
"$@"

Using above with docker-compose pulls the images, using podman-compose fails as documented above

from podman-compose.

muayyad-alsadi avatar muayyad-alsadi commented on July 17, 2024

the documentation for docker-compose does not mention that you can pass multiple yaml files using -f multiple times

$ docker-compose -h
Define and run multi-container applications with Docker.

Usage:
  docker-compose [-f <arg>...] [options] [COMMAND] [ARGS...]
  docker-compose -h|--help

Options:
  -f, --file FILE             Specify an alternate compose file
                              (default: docker-compose.yml)

so currently this is not supported it will be treated as last one of them

but regarding prefix with -p I can't reproduce that

if you try this

https://github.com/containers/podman-compose/blob/master/tests/short/docker-compose.yaml

with -p it will work fine

$ cd tests/short/
$ ../../podman_compose.py -p foobar up
...
podman create --name=foobar_web_1 --pod=foobar ...  busybox /bin/busybox httpd -f -h /var/www/html -p 8000

as you can see image name was not prefixed with foobar
would you please

  1. make sure you use latest podman-compose
  2. give me minimal-reproducible-example preferably with busybox and alpine (because I'm limited on resources) or instructions to for menderproduction as I'm not familiar with it.

from podman-compose.

dellgreen avatar dellgreen commented on July 17, 2024

Ok great, I'll check i'm using the latest version
The following instructions are what i am following for installing and running this docker project

https://docs.mender.io/2.0/administration/production-installation

from podman-compose.

muayyad-alsadi avatar muayyad-alsadi commented on July 17, 2024

would you please send me the 3 YAML files used in the script. attached here or using paste bin (please make sure to mask sensitive data like passwords)

from podman-compose.

dellgreen avatar dellgreen commented on July 17, 2024

Please find attached requested files :)

mender.zip

from podman-compose.

dellgreen avatar dellgreen commented on July 17, 2024

Also I have checked and I am using latest podman-compose file

from podman-compose.

muayyad-alsadi avatar muayyad-alsadi commented on July 17, 2024

here is a segment from prod.yml

    minio:
        environment:
            # access key
            MINIO_ACCESS_KEY: mender-deployments
            # secret
            MINIO_SECRET_KEY: <SECRET-REMOVED>
        volumes:
            # mounts a docker volume named `mender-artifacts` as /export directory
            - mender-artifacts:/export:rw

it does not specify an image, it seems that docker-compose merge it with docker-compose.storage.minio.yml

    minio:
        image: minio/minio:RELEASE.2018-09-25T21-34-43Z
        networks:
            mender:
                aliases:
                    - minio.s3.docker.mender.io
        command: server /export

this is undocumented behavior of docker-compose,
but I think we can do it.

from podman-compose.

dellgreen avatar dellgreen commented on July 17, 2024

For completeness, full output from running with podman-compose

output.txt

from podman-compose.

muayyad-alsadi avatar muayyad-alsadi commented on July 17, 2024

I've pushed a minimal-reproducible-example here

https://github.com/containers/podman-compose/tree/devel/tests/multicompose

we aim for bug for bug compatibility

from podman-compose.

dellgreen avatar dellgreen commented on July 17, 2024

awesome :)

from podman-compose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.