This Docker image provides the Ubuntu 17.10 environment with X Windows with Overture and FEniCS for testing conjugate heat transfer. The X Windows will display in your web browser in full-screen mode. You can use this Docker image on 64-bit Linux, Mac or Windows. It allows you to use the same programming environment regardless which OS you are running on your laptop or desktop.
Before you start, you need to first install Python and Docker on your computer by following the steps below.
If you use Linux or Mac, Python is most likely already installed on your computer, so you can skip this step.
If you use Windows, you need to install Python if you have not yet done so. The easiest way is to install Miniconda, which you can download at https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe. During installation, make sure you check the option to make Miniconda the system's default Python.
Download the Docker Community Edition for free at https://www.docker.com/community-edition#/download and then run the installer. Note that you need administrator's privilege to install Docker. After installation, make sure you launch Docker before proceeding to the next step.
Notes for Windows Users
Computer Management. Open up Local Users and Groups, select Groups, right click on docker-users in the list, and then click on Add to Group... to add your username to the group.Settings.... Go to Shared Drives tab and check the C drive.C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\MobyLinuxVM.vhdx. This is a major security risk because all your images and data can be accessed and modified by other Docker users on the same computer. If you are using a shared Windows computer, make sure you create a private folder such as C:\Users\YourUserName\Documents\Hyper-V\Virtual Hard Disks and then go to Advanced tab in Docker Settings, and change the Image and Volume VHD Location to this folder.Notes for Mac Users
Notes for Linux Users
sudo adduser $USER docker
Then, log out and log back in before you can use Docker.
To run the Docker image, first download the script cht_jupyter.py
and save it to the working directory where you will store your codes and data. You can download the script using command line: On Windows, start Windows PowerShell, use the cd command to change to the working directory where you will store your codes and data, and then run the following command:
curl https://raw.githubusercontent.com/unifem/cht-overture-fem/master/cht_jupyter.py -outfile cht_jupyter.py
On Linux or Mac, start a terminal, use the cd command to change to the working directory, and then run the following command:
curl -s -O https://raw.githubusercontent.com/unifem/cht-overture-fem/master/cht_jupyter.py
After downloading the script, you can start the Docker image using the command
python cht_jupyter.py -p
This will download and run the Docker image and then launch your default web browser to show the desktop environment. The -p option is optional, and it instructs the Python script to pull and update the image to the latest version. The work directory by default will be mapped to the current working directory on your host.
For additional command-line options, use the command
python cht_jupyter.py -h
To run the simple test example, open the file simpleExample/simpleEample.ipynb in Jupyter Notebook.
To stop the Docker image, press Ctrl-C twice in the terminal (or Windows PowerShell on Windows) on your host computer where you started the Docker image, and close the tab for the desktop in your web browser.
Settings (or Preferences for Mac) and then select the Advanced tab to adjust the settings.Content type
Image
Digest
Size
2.2 GB
Last updated
about 8 years ago
docker pull unifem/cht-desktop