Hi Robert, I am glad you were able to compile and run the example using the rrastak/dealii:ubuntu-package image. It seems that the example directory does not exist in this image, so you need to download the examples folder from GitHub. But be careful about possible incompatibly error in case the version of the GitHub code is very different than the dealii version already installed in this image as an ubuntu package. In most cases, it should work fine.
Alternatively, you can use the images rrastak/dealii:master-bare-gcc or rrastak/dealii:master-bare-clang and run the examples that are located in /dealii/examples. The advantage is that these images are updated every week based on the latest master branch of dealii. The disadvantage is that these images are bare, so they don't have the external libraries such as Trilinos, or OpemMPI. If you use the official image dealii/dealii:latest, the examples are included in the directory /home/dealii/dealii-master-src/examples. Although this image represents dealii version 9.1.1 it has not been updated since 9 months ago, so the examples might be a little different than the latest development version on GitHub. Hope this explanation is helpful. Regards, Reza On Tuesday, March 17, 2020 at 9:45:06 PM UTC-7, Robert Kopp wrote: > > I was able to make it work, in a certain manner of speaking. I already had > the source code of dealii on the host, with the examples in it. Then: > > docker run --rm -t -i -v `pwd`:/home/dealii/app > rrastak/dealii:ubuntu-package > > See what an expert I am? This maps to the home directory on the host, and > the examples can be run. I'm sure there's room for improvement (at least, > on my part) though. > > > On Sunday, March 15, 2020 at 3:58:30 PM UTC-7, Reza Rastak wrote: >> >> Hi Robert, >> >> Please take a look at the dealii docker images that I built. They are >> updated weekly based on the latest master branch of dealii. It also >> includes a docker image built from the libdealii.ii-dev ubuntu package >> installed on ubuntu 18.04. I use these images to perform automated testing >> of my repositories. Feel free to ask me question about it or provide >> suggestions. >> >> https://github.com/rezarastak/dealii-containers >> https://hub.docker.com/r/rrastak/dealii >> >> Regards, >> >> Reza >> >> On Saturday, March 14, 2020 at 11:23:55 AM UTC-7, luca.heltai wrote: >>> >>> By the way, the examples in the docker image are located under >>> >>> $(spack location -i dealii)/share/deal.II/examples >>> >>> i.e., you can go to >>> >>> cd $(spack location -i dealii)/share/deal.II/examples >>> >>> and from there, compile and run. Notice that they are not pre-compiled >>> (they would just take up download bandwidth). >>> >>> Best, >>> Luca >>> >>> > On 13 Mar 2020, at 2:47, Robert Kopp <[email protected]> wrote: >>> > >>> > After some false starts, I was able to use deal.II on Ubuntu 18.04 by >>> installing it from the backport PPA. It occurred to me that I might want to >>> use it during a Windows session, and since Windows does not support it >>> natively, the use of a pre-built Docker container came to mind. >>> > >>> > The most likely candidate was dealii/dealii:latest. I was disappointed >>> to note the the "examples" weren't there (or, at least, I can't find them) >>> so I downloaded these from Github. As in the case of my abortive attempts >>> on bare metal, I received such messages as the following: >>> > >>> > dealii@5ee4b768bb50:~/dealii/examples/step-5$ cmake . >>> > CMake Error at CMakeLists.txt:30 (MESSAGE): >>> > >>> > *** Could not locate a (sufficiently recent) version of deal.II. >>> *** >>> > >>> > You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to >>> cmake >>> > >>> > or set an environment variable "DEAL_II_DIR" that contains this >>> path. >>> > >>> > I was hoping that it would be a complete kit, but upbeat_albattani had >>> let me down. Can anyone suggest a good way (reference, etc.) to get up to >>> speed on this container? I can do everything I need to do on Linux, but >>> there would be some advantage to being able to use it on Windows as well. >>> > >>> > >>> > -- >>> > The deal.II project is located at http://www.dealii.org/ >>> > For mailing list/forum options, see >>> https://groups.google.com/d/forum/dealii?hl=en >>> > --- >>> > You received this message because you are subscribed to the Google >>> Groups "deal.II User Group" group. >>> > To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> > To view this discussion on the web visit >>> https://groups.google.com/d/msgid/dealii/e007aee1-2057-4541-9eed-92c9bf5b0cf6%40googlegroups.com. >>> >>> >>> >>> -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/a3677279-3472-48a1-b4c8-389980c586e6%40googlegroups.com.
