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

Podman/Podman-compose support? #11

Open
imbev opened this issue Jun 24, 2022 · 3 comments
Open

Podman/Podman-compose support? #11

imbev opened this issue Jun 24, 2022 · 3 comments

Comments

@imbev
Copy link

imbev commented Jun 24, 2022

No description provided.

@gdlol
Copy link
Owner

gdlol commented Jun 25, 2022

Hi there!

I have made prebuilt docker images, you can pull and run them on Windows/Linux/Mac with Docker. As mentioned in ReadMe, you can also build it with

docker compose build

@imbev
Copy link
Author

imbev commented Jun 25, 2022

When using docker-compose + docker instead of podman-compose + podman, it now works.

@imbev imbev changed the title Linux support? Podman/Podman-compose support? Jun 25, 2022
@gdlol
Copy link
Owner

gdlol commented Jun 25, 2022

Ok I did some experiment on my Ubuntu VM. I made some updates for easier working with Podman.

There are some issues which will require workarounds:

  1. Podman does not support buildkit cache mount feature. Without it go image building time will be painfully long (not C++ kind of painful, but anyway). This is more of a issue from golang: cmd/go: precompile dependencies for docker image cache golang/go#45474, cmd/go: unclear how to cache transitive dependencies in a Docker image golang/go#27719. With podman you can do
    podman-compose build
    
    by removing the --mount arguments:
    RUN --mount=type=cache,target=/go/pkg/mod/ \
    --mount=type=cache,target=/root/.cache/go-build \

    Looks like Podman has something similar named buildah but I am not sure how can it work in a similar way, e.g., export DOCKER_BUILDKIT=1 (even without that in latest versions of Docker).
  2. I believe podman-compose host network feature is broken at the moment. See network_mode: host have no effect and ports does not opened (podman-compose 1.0.3) containers/podman-compose#397, network_mode=host is not working as expected containers/podman-compose#406. It is said fixed in dev branch, tried without luck.
    As workaround you can start the containers manually (in different terminals):
    docker run --rm --name messagehub_element --network host v2net/messagehub-element
    
    docker run --rm --name messagehub --network host v2net/messagehub
    

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

No branches or pull requests

2 participants