-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Updated dockerfile & added release workflow #11
Conversation
I would rather not install the adapter in editable mode, because I think modifying the adapter stored inside the container is not best practice. My development workflow (on windows) is to mount a local copy of the repository into the Docker container and install it in editable mode (either manual or using an additional
In this way I am independent of the container (which I remove after closing with the |
So when you start the container you remove the pre-built with |
I used a container without adapter: https://github.com/nemocrys/dolfinx-openfoam/blob/main/docker/Dockerfile . I'm not sure about the behavior with pre-installed adapter, I'd just try it out. The version with the pre-installed adapter is definitely useful for testing. Maybe, some people will use it as a reference for installation (at least I do that sometimes ;) ) or directly work with the container in their own projects. |
I just tested, and installing local version automatically triggers a (clean) uninstall of the pre-installed version. |
Changed the dockerfile to install FEniCSx from Ubuntu packages, then install the adapter. I also added a Github Action to push an image on Docker Hub. It would work once 1) A token is set on the repository 2) The PR #1 is merged. Before pushing, I added a rudimentary test: push if and only if
python3 -c "import fenicsxprecice"
runs without error.Currently, the adapter is installed in regular mode. It might be interesting to add the
-e
flag so that this image can be used efficiently for debugging. Opinions welcome!