Skip to content

Commit

Permalink
new: Documentation to install PyMISP on offline machine
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Dec 19, 2023
1 parent e8ecb3f commit afa9809
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,35 @@ Your new MISPObject generator must generate attributes and add them as class pro

When the object is sent to MISP, all the class properties will be exported to the JSON export.

## Installing PyMISP on a machine with no internet access

This is done using poetry and you need to have this repository cloned on your machine.
The commands below have to be run from inside the cloned directory.


1. From a machine with access to the internet, get the dependencies:

```bash
mkdir offline
poetry export --all-extras > offline/requirements.txt
poetry run pip download -r offline/requirements.txt -d offline/packages/
```

2. Prepare the PyMISP Package

```bash
poetry build
mv dist/*.whl offline/packages/
```

2. Copy the content of `offline/packages/` to the machine with no internet access.

3. Install the packages:

```bash
python -m pip install --no-index --no-deps packages/*.whl
```

# License

PyMISP is distributed under an [open source license](./LICENSE). A simplified 2-BSD license.
Expand Down

0 comments on commit afa9809

Please sign in to comment.