Giter Site home page Giter Site logo

Update the pypi version to 1.1.0 because the 1.0.6 version does not support the Compose specification for env_file about podman-compose HOT 6 OPEN

andrew-ma avatar andrew-ma commented on July 18, 2024 4
Update the pypi version to 1.1.0 because the 1.0.6 version does not support the Compose specification for env_file

from podman-compose.

Comments (6)

manics avatar manics commented on July 18, 2024

There's no automated GitHub workflow to publish the PyPI package, is it handled manually?

from podman-compose.

luckylinux avatar luckylinux commented on July 18, 2024

I also have this Issue (related to podman + network_mode: "pasta:[options]" Networking not working correctly prior to 1.1.0).

Workaround 😃:

# (Optional) Create a Dedicated Python venv
(podman-compose) podman@HOST:~$ python -m venv ~/podman-compose
(podman-compose) podman@HOST:~$ source ~/podman-compose/bin/activate

# Install Podman Compose
(podman-compose) podman@HOST:~$ pip install git+https://github.com/containers/[email protected]

# Print Version
(podman-compose) podman@HOST:~$ podman-compose --version
podman-compose version 1.1.0
podman version 4.9.4

On a Separate Note, this does NOT work 😞:

# Create User ~/.local/bin Folder if not existing yet
podman@HOST:~$ mkdir -p ~/.local/bin

# Follow Manual Setup Instructions
podman@HOST:~$ curl -o ~/.local/bin/podman-compose https://raw.githubusercontent.com/containers/podman-compose/main/podman_compose.py
podman@HOST:~$ chmod +x ~/.local/bin/podman-compose

# Test
/usr/local/bin/podman-compose --version
Traceback (most recent call last):
  File "/usr/local/bin/podman-compose", line 5, in <module>
    from podman_compose import main
ModuleNotFoundError: No module named 'podman_compose'

Not sure if it's a podman-compose vs podman_compose (dash vs underscore) issue that is NOT correctly handled by Python and/or podman-compose.

from podman-compose.

luckylinux avatar luckylinux commented on July 18, 2024

@andrew-ma: are you sure you need podman-compose Version 1.1.0 to get the env_file Directive working ? I used env_file several Times with podman-compose Version 1.0.6 without Issues ...

EDIT: this is what I usually use

version: '3'

services:
  <myservice>:
    ...
    env_file:
      - .env
    ...

It also works with podman-compose Version 1.0.6 (NOT sure about 1.0.3).

On the other Hand your version of podman is quite old (for a very brief Period I ran podman Version 4.3.1 on Debian Bookworm 12, then I "upgraded" using APT Pinning to Debian Testing currently feaeturing podman 4.9.4).

Fedora just got podman Version 5.1.0 😃.

from podman-compose.

andrew-ma avatar andrew-ma commented on July 18, 2024

from podman-compose.

luckylinux avatar luckylinux commented on July 18, 2024

@andrew-ma: well I thought it was ... and it is ... but only if the file is named .env:

env_file:
  - .env

I was trying to get Nautobot Example running with Podman (long story ... not working yet) and there they used 2 .env files (local.env and creds.env and those were NOT recognized).

Similarly when I was trying to feed Caddy some Environment Variables: caddy.env was getting ignored, .env worked correctly).

So I think you are right, if the file is NOT .env (or maybe also other files are supported ? .env.xxx or .xxx.env ???).

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.