podman-compose icon indicating copy to clipboard operation
podman-compose copied to clipboard

JetBrains IntelliJ IDEA does not work well with podman-compose

Open devurandom opened this issue 2 years ago • 1 comments
trafficstars

Describe the bug

IntelliJ IDEA and its Docker plugin support Docker Compose and managing services using compose files (cf. https://www.jetbrains.com/help/idea/docker-compose.html).

When pointing it at podman-compose instead (or swapping out docker-compose for podman-compose by means of ln -s /usr/bin/podman-compose ~/bin/docker-compose; $HOME/bin is on the $PATH), it can start ("up") and stop ("down") services, but the interaction is generally very poor:

  • It says it is bringing the "deployment" up, but shows the ready container count as "0/0" and the spinner keeps spinning.
  • It does not show the "bundle" (my words) of services.
  • It does not link the output of a specific service to that container.

Other things, like opening a "Terminal" to one of the containers, seem to work without any obvious problems.

Output

❯ podman-compose version
podman-compose version: 1.0.6
['podman', '--version', '']
using podman version: 4.5.0
podman-compose version 1.0.6
podman --version
podman version 4.5.0
exit code: 0


❯ dnf info docker-compose podman-compose
Last metadata expiration check: 0:00:11 ago on Wed May 31 17:31:55 2023.
Installed Packages
Name         : docker-compose
Version      : 1.29.2
Release      : 7.fc38
Architecture : noarch
Size         : 1.1 M
Source       : docker-compose-1.29.2-7.fc38.src.rpm
Repository   : @System
From repo    : fedora
Summary      : Multi-container orchestration for Docker
URL          : https://github.com/docker/compose
License      : ASL 2.0
Description  : Compose is a tool for defining and running multi-container Docker
             : applications. With Compose, you use a Compose file to configure your
             : application's services. Then, using a single command, you create and
             : start all the services from your configuration.
             :
             : Compose is great for development, testing, and staging environments,
             : as well as CI workflows.
             :
             : Using Compose is basically a three-step process.
             :
             : 1. Define your app's environment with a Dockerfile so it can be
             :    reproduced anywhere.
             : 2. Define the services that make up your app in docker-compose.yml so
             :    they can be run together in an isolated environment:
             : 3. Lastly, run docker-compose up and Compose will start and run your
             :    entire app.

Name         : podman-compose
Version      : 1.0.6
Release      : 1.fc38
Architecture : noarch
Size         : 300 k
Source       : podman-compose-1.0.6-1.fc38.src.rpm
Repository   : @System
From repo    : updates
Summary      : Run docker-compose.yml using podman
URL          : https://github.com/containers/podman-compose
License      : GPL-2.0-only
Description  : An implementation of docker-compose with podman backend.
             : The main objective of this project is to be able to run docker-compose.yml
             : unmodified and rootless.

Environment:

  • OS: Linux
  • podman version: 4.5.0
  • podman compose version: 1.0.6
  • JetBrains IntelliJ IDEA: 2023.1.2 (Ultimate)
  • JetBrains IntelliJ IDEA Docker plugin: bundled 231.9011.34

devurandom avatar May 31 '23 15:05 devurandom