upsya

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2022 License: MIT Imports: 25 Imported by: 0

README

upsya

UDESA Python evaluator proof of concept.

Usage
  1. Run project with PYTHON3 environment variable set.

    PYTHON3=python3 go run . -evalglob testdata/evaluations/*/*.py
    

    This will run uncontainerized code. Very unsafe for production. See below on how to containerize.

  2. Navigate to address as logged to stdout.

Containerization

Download soypat/gontainer and create a filesystem for use. The instructions over there are straightforward and simple. I've found the size of a python installation is usually around 320MB (without libraries) so I'd suggest creating a VFS with at least 500MB. The Alpine Mini-Root filesystem is enough to run python.

Once you have a mounted filsystem with a python install on it run the following

sudo su # You must be root to modify containerized filesystem
PYTHON3=python3 GONTAINER_FS=/mnt/your-vfs go run . -evalglob testdata/evaluations/*/*.py

Ready. All code run from there on out will be containerized.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL