Skip to content

mnagaso/specfem_training

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

specfem_training

This github repository contains information for specfem's cheese training session 2021. In this file, we explain how to open the jupyter lab with the pyspecfem's docker image.

Install docker

Docker may be installed for Linux/Windows/OSX by following the docker's official homepage

Install docker compose

Please check if docker-compose command is available on your terminal.
Here you can find an instruction for installing it.

Launch preconfigured python/jupyter environment

  1. Only for Windows/OSX user need to check if your Docker docker desctop application is started and engine is running.
  2. Open a terminal window.
  3. Clone this repository by the command git clone https://github.com/mnagaso/specfem_training.git
  4. Enter this repository directory by cd specfem_training
  5. Download and start docker image/container by the command docker-compose up
  6. Access to localhost:8888 on your web browser.

If you find the error message like:

ERROR: for pyspecfem_docker_image_spec_1  Cannot start service spec: driver failed   programming  external connectivity on endpoint pyspecfem_docker_image_spec_1 (f1c7b06807902cff70e348dba40d38e0a957626432957a436b1032aebc9d3027):   
Error starting userland proxy: listen tcp4 0.0.0.0:8888: bind: address already in use

...

please open the docker-compose.yml file and modify the port number for the host side e.g.

      ports:
        - 8888:8888

to

      ports:
        - 8889:8888

then when you will find an available port (which docker-compose up works), you can open jupyterlab by the address localhost:8889 or another port which you use in the docker-compose.yml file.

Please try sudo docker-compose up for the error

ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable. 

Setup the directories on the cluster

Before starting a calculation, we need to prepare some directories on the cluster. Please follow this document.

About

instruction for specfem's cheese training session

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published