Comments (12)
Yes the docs do confirm your findings about -f flag
https://docs.docker.com/compose/reference/overview/
from podman-compose.
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.
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.
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
- make sure you use latest podman-compose
- 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.
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.
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.
Please find attached requested files :)
from podman-compose.
Also I have checked and I am using latest podman-compose file
from podman-compose.
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.
For completeness, full output from running with podman-compose
from podman-compose.
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.
awesome :)
from podman-compose.
Related Issues (20)
- Error Validating CNI Config HOT 1
- Feature request: save and load images
- --env-file option does not match docker-compose's behavior
- env_file: does not match docker-compose's behavior HOT 2
- Add --remote option
- podman-compose up -d --pull-always does not always pull
- network ipam: podman fails when driver is set to "default"
- podman-compose pull does not pass on exit code
- can't merge value of depends_on of type <class 'dict'> and <class 'list'> HOT 1
- Help needed: -- on running podman-compose getting this error -- AttributeError: module 'asyncio' has no attribute 'run' HOT 1
- podman-compose
- Support for dockerfile_inline missing HOT 1
- How can I configure the bridge network to be accessible from other machines? HOT 1
- Fails to handle the `service_healthy` condition of a `depends_on` element
- pytest unit test are currently failing HOT 3
- env_file ignored for environment
- Error loading cached network config: network "hello-app_config" not found in CNI cache HOT 1
- Update documentation to reflect branching strategy
- Variable interpolation with missing value not handled properly
- Podman Compose does not accept proxy settings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from podman-compose.