|
1 | 1 | Underworld Installation |
2 | 2 | ======================= |
3 | 3 |
|
4 | | -Detailed instructions for supported HPC platforms may be found at `docs/install_guides |
5 | | -<https://github.com/underworldcode/underworld2/tree/master/docs/install_guides>`_. You may also find useful usage information (on docker/hpc/compilation/other) on the Underworld blog. |
| 4 | +Underworld 2 can be installed in multiple ways, using the container (preferred), from source code (advanced). It can also be installed on HPC clusters. These installation methods are documented below. |
| 5 | + |
| 6 | +Container |
| 7 | +---------- |
| 8 | + |
| 9 | +Containers provide a type of lightweight virtualisation. The Underworld 2 container includes the latest version of Underworld 2 with all the dependencies packages and is the preferred method for usage on personal computers. |
| 10 | + |
| 11 | +You will first need to install *podman* (recommended) or *docker* on your system. Both these tools can be used from the command line, but new users may wish to use the GUI Desktop versions to get started with it. |
| 12 | + |
| 13 | +The following script is the recommended way for launching the container with *podman*. |
| 14 | + |
| 15 | +.. code:: bash |
| 16 | +
|
| 17 | + sh ./docs/development/container/launch-container.sh |
| 18 | +
|
| 19 | +This will take a moment to load up - be patient please. What you'll get is a container running a functioning Jupyterlab environment with the latest Underworld 2 installed at `localhost:20000 <localhost:20000>`_. A directory called **uw_space** will be create in the user's home directory which is (volume) mapped into the container, this acts as a tranfser directory for sending files to and from the container. |
| 20 | + |
| 21 | +Remember to take note of the Jupyterlab token from the start up messages. It will look something like. |
| 22 | + |
| 23 | +.. code:: bash |
| 24 | + |
| 25 | + http://127.0.0.1:8888/lab?token=e79006f4e441cf781440a9ea0cad8cf2a0dfd3b9c236a0ca |
| 26 | +
|
| 27 | +The value must be copy-pasted into the jupyterlab launch page the first time. |
| 28 | + |
| 29 | + |
| 30 | +.. podman run -p 8888:8888 -v uw2-vol:/home/jovyan/workspace underworldcode/underworld2 |
| 31 | +.. |
| 32 | +.. Navigate to `localhost:8888 <localhost:8888>`_ to see the notebooks. Note that you can also use particular versions of Underworld using any of the Docker image tags. For example: |
| 33 | +.. |
| 34 | +.. .. code:: bash |
| 35 | +.. |
| 36 | +.. docker run -p 8888:8888 underworldcode/underworld2:2.7.1b |
| 37 | +.. |
| 38 | +.. By default (ie, if no tag is provided), docker will use the latest stable release. A list of available tags may be found on `our DockerHub page <https://hub.docker.com/r/underworldcode/underworld2/tags>`_. Tags can also be accessed in Kitematic via the ellipsis button on container search results. |
| 39 | +.. |
| 40 | +.. A number of useful docker commands are provided within the `Underworld cheat-sheet <https://github.com/underworldcode/underworld2/tree/master/docs/cheatsheet/cheatsheet.pdf>`_. |
| 41 | +.. |
| 42 | +.. see old `Notes on Installing Docker`_) and then you may install Underworld via Docker. Docker can be driven from the command line, but new users may wish to use the Docker Kitematic GUI instead for ease. Simply search for 'underworldcode/underworld2' within Kitematic, and then click 'CREATE' to launch a container. You will eventually wish to modify your container settings (again through Kitematic) to enable local folder volume mapping, which will allow you to access your local drives from within your container. |
| 43 | +.. |
| 44 | +.. For Linux users, and those who prefer the command line, the following minimal command should be sufficient to access the Underworld2 Jupyter Notebook examples: |
| 45 | +.. |
| 46 | +
|
6 | 47 |
|
7 | 48 | We welcome feedback and support requests at our `github issue tracker <https://github.com/underworldcode/underworld2/issues>`_. |
8 | 49 |
|
| 50 | +HPC Installation |
| 51 | +---------------- |
| 52 | + |
| 53 | +Detailed instructions for supported HPC platforms may be found at `docs/install_guides |
| 54 | +<https://github.com/underworldcode/underworld2/tree/master/docs/install_guides>`_. You may also find useful usage information (on docker/hpc/compilation/other) on the Underworld blog. |
| 55 | + |
9 | 56 | Native Installation |
10 | 57 | ------------------- |
11 | 58 |
|
12 | 59 | Requirements |
13 | | -~~~~~~~~~~~~ |
| 60 | +++++++++++++ |
14 | 61 |
|
15 | 62 | Build environment |
16 | 63 | ***************** |
@@ -70,27 +117,6 @@ Note that some tests also require *matplotlib* |
70 | 117 | pytest -vvv ./docs/pytests |
71 | 118 |
|
72 | 119 |
|
73 | | -Docker |
74 | | ------- |
75 | | - |
76 | | -Docker is a type of lightweight virtualisation, and is the preferred method for Underworld usage on personal computers. You will first need to install Docker on your system (see `Notes on Installing Docker`_) and then you may install Underworld via Docker. Docker can be driven from the command line, but new users may wish to use the Docker Kitematic GUI instead for ease. Simply search for 'underworldcode/underworld2' within Kitematic, and then click 'CREATE' to launch a container. You will eventually wish to modify your container settings (again through Kitematic) to enable local folder volume mapping, which will allow you to access your local drives from within your container. |
77 | | - |
78 | | -For Linux users, and those who prefer the command line, the following minimal command should be sufficient to access the Underworld2 Jupyter Notebook examples: |
79 | | - |
80 | | -.. code:: bash |
81 | | -
|
82 | | - docker run -p 8888:8888 underworldcode/underworld2 |
83 | | -
|
84 | | -Navigate to `localhost:8888 <localhost:8888>`_ to see the notebooks. Note that you can also use particular versions of Underworld using any of the Docker image tags. For example: |
85 | | - |
86 | | -.. code:: bash |
87 | | -
|
88 | | - docker run -p 8888:8888 underworldcode/underworld2:2.7.1b |
89 | | -
|
90 | | -By default (ie, if no tag is provided), docker will use the latest stable release. A list of available tags may be found on `our DockerHub page <https://hub.docker.com/r/underworldcode/underworld2/tags>`_. Tags can also be accessed in Kitematic via the ellipsis button on container search results. |
91 | | - |
92 | | -A number of useful docker commands are provided within the `Underworld cheat-sheet <https://github.com/underworldcode/underworld2/tree/master/docs/cheatsheet/cheatsheet.pdf>`_. |
93 | | - |
94 | 120 | Notes on Installing Docker |
95 | 121 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
96 | 122 |
|
|
0 commit comments