Skip to content
Ricardo de Matos edited this page Feb 13, 2023 · 6 revisions

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


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

    # Valispace packages (mandatory)
    valispace==0.1.16 # Valispace Python API
    
    # Basic scientifical packages (mandatory)
    git+https://[email protected]/valispace/[email protected]+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)
    
  2. 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 3, 4 and 5.

  3. Save the Docker image to a file:

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

  5. Load the image to your Docker instance:

    docker load --input valifn-python-docker.tar.gz
  6. 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