This repository contains several app examples runnable in a Cosmian Enclave (formerly MSE) architecture.
Each example contains:
- A file
mse.toml, which is the configuration of the MSE app. - A folder
mse_srcis the code to run inside the MSE node. - A folder
testenables you to unit test your application locally or remotely.
Read the full documentation for more details about MSE and mse-cli.
Clone the repository as follows:
# apt install git-lfs
$ git clone https://github.com/Cosmian/mse-app-examplesThese examples have been generated using:
$ mse cloud scaffold $NAMEYou can test locally an app doing:
$ cd example_name
$ mse cloud localtestYou can quickly deploy this app doing:
$ cd example_name
$ mse cloud deployAnd test it:
$ mse cloud test <APP_ID>This repository also provides some allowed mse dockers. See the packages to get the up-to-date references. The dockerfile are written in these following examples:
| Name | Dockerfile |
|---|---|
| mse-anonymization | data_anonymization_s3 |
| mse-ds | merge_join |
| mse-fastapi | fastapi_helloworld |
| mse-flask | helloworld |
| mse-nlp | sentiment_analysis |
| mse-tensorflow | digit_recognition |
Here a way to tar an example to be run inside an mse-docker:
$ tar -cvf $PWD/helloworld.tar --directory=helloworld/mse_src app.py requirements.txt