Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing config command #106

Closed
yajo opened this issue Feb 6, 2020 · 3 comments
Closed

Missing config command #106

yajo opened this issue Feb 6, 2020 · 3 comments

Comments

@yajo
Copy link

yajo commented Feb 6, 2020

To debug your docker-compose.yml file it's very useful the docker-compose config command, which outputs the final configuration that gets used by docker-compose, including all merges, variable expansions, etc.

podman-compose is missing that subcommand.

@pleonex
Copy link

pleonex commented Sep 27, 2020

This is also required to make it work with VS Code Remote Container extensions. It tries to run this command (after symlink to podman-compose):

docker-compose -f /myrepo/.devcontainer/docker-compose.yml config --services

EDIT:
If anyone is trying to use the VSCode extension, you may want to try something like the below script for /usr/bin/docker-compose. It gets now stuck in a podman inspect command...

#!/usr/bin/sh
if [[ "$1" == "--version" ]]; then
    echo "It works!"
elif [[ "$3" == "config" ]]; then
    exec /usr/bin/python3 /<path_to_the_fix_for_this_issue_in_the_PR>/podman_compose.py "$@"
else
    exec /usr/bin/podman-compose "$@"
fi

@mabulgu
Copy link

mabulgu commented May 17, 2022

Hi. Is someone working on this issue? If not, I would love to start working on this.

Edit: Oh I realized we already have a PR: #138

That would be great if the PR owner also owned the issue for more visibility.

Is this issue still valid?

@muayyad-alsadi
Copy link
Collaborator

the latest devel branch 1.0.4 have a config command (since #394)

I'm not sure about the released version 1.0.3

hello-python]$ ../../podman_compose.py config
services:
  redis:
    command:
    - redis-server
    - --appendonly
    - 'yes'
    - --notify-keyspace-events
    - Ex
    image: docker.io/redis:alpine
    read_only: true
    volumes:
    - redis:/data
  web:
    build:
      context: .
    environment:
      REDIS_HOST: redis
    image: hello-py-aioweb
    ports:
    - 8080:8080
    read_only: true
version: '3'
volumes:
  redis: null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants