Coder Social home page Coder Social logo

fenics-hazmath's Introduction

Running hazmath in the container pulled from dockerhub

  1. Obtain image docker pull mirok/fenics-hazmath:latest

  2. Run image somewhere where HAZMath lib is accessible as a subdirectory Here we make /home/fenics/shared bound to the directory from which docker is launched

    docker run -it -v $(pwd):/home/fenics/shared hazmath_dev
    
  3. In simple_test.py edit the hazmath_path to point to HAZMath dynamic lib. As an example, if docker was launched from ~/Documents and libhazmath.so resides in ~/Documents/Software/hazmath/lib then

    hazmath_path = '/home/fenics/shared/Software/hazmath/lib/libhazmath.so'
    

    in the script.

  4. Run python3 simple_test.py

Building image locally based on dockerfile

Our Dockerfile is based on FEniCS dev image from quay.io/fenicsproject/dev and adds FEniCS_ii with its dependencies and cbc.block. For the moment, specific branches/commits of the repos are used but we can always update this to, e.g., work with their latest master. To build the image locally run (in this directory)

docker build --no-cache -t (IMAGE_NAME) .

Optionally, you can push the image to dockerhub having tagged it

docker tag IMAGE_NAME:TAG_NAME DOCKER_HUB_USER/IMAGE_NAME
docker push DOCKER_HUB_USER/IMAGE_NAME

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.