Skip to content
Ricardo de Matos edited this page Jan 30, 2023 · 6 revisions

valifn-python requires: Git 2.39+, Docker 20+


You can use this image as is or you can add your own requirements, before using it in the Valispace Scripting Module.

  1. Clone this repository:

    git clone https://github.com/valispace/valifn-python.git
  2. If necessary, add your required packages to requirements.txt:

    # Valispace packages (mandatory)
    valispace==0.1.16 # Valispace Python API
    
    # Basic scientifical packages (mandatory)
    git+https://git@github.com/valispace/pint.git@0.21.dev0+valispace#egg=pint # Physical quantities module (Valispace version)
    scipy==1.7.3 # Fundamental algorithms for scientific computing in Python
    
    # Add your packages here (optional)
    # super_cool_package==1.2.3 (example)
    
  3. Build the Docker image with tag valispace/valifn-python:latest:

    docker build --compress --tag valispace/valifn-python:latest .

    NOTE: If you build the image on your deployment server, you can ignore steps 4, 5 and 6.

  4. Save the Docker image to a file:

    docker save valispace/valifn-python:latest | gzip > valifn-python-docker.tar.gz
  5. Copy the tarball valifn-python-docker.tar.gz to your destination

  6. Load the image to your Docker instance:

    docker load --input valifn-python-docker.tar.gz
  7. That's it! You have now replaced the Valispace Python Image to match your needs on your deployment! No restart is needed!

Clone this wiki locally