Comments (6)
There's no automated GitHub workflow to publish the PyPI package, is it handled manually?
from podman-compose.
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.
@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.
from podman-compose.
@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)
- podman multiple erros starting container HOT 1
- podman-compose 1.1.0 no longer loads env file in the same directory with compose.yaml when using `-f` HOT 1
- Podman-compose mount volume incorrectly under Windows with podman machine on WSL
- Required variable syntax ("${BAR:?BAR variable missing}") not resolved when not in quotation marks since v1.1.0 (in command)
- multiple include cannot be done
- Wrongly relative path by include HOT 1
- Codespelling tests no longer work HOT 1
- podman-compose did not process ipvlan_mode option in the docker-compose.
- Overlay Volume Mounts not working
- TypeError in podman_compose.py container_to_args HOT 1
- missing or incorrect use of --in-pod and pod-args HOT 8
- Make PodmanCompose.prefer_volume_over_mount configurable
- When no network is specified and using network_mode: host, it will use unexpected default network
- Repeated wait time options when using `podman-compose stop` HOT 1
- Typo in error message for x-podman.gidmap HOT 1
- compose does not use pasta network
- Error setting up OTBR ''extra spaces found" HOT 1
- podman-compose rebuilds an image that is up-to-date, pressumably for the environment set in docker-compose.yml HOT 1
- Environment handling needs integration tests
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.