<commit_before># deploy an SDOS demo system
in this repo you can find scripts/tools to set up a complete demo environment including backend storage

The easiest option is to use docker-compose



# Docker compose based all-in-one demo system
I recommend you install docker and docker-compose manually from the docker.io website. You can use the docker version that comes with your linux distro but it might be outdated and not work.

#### prepare storage

**This part is optional; skip if you just want to try it**

This deployment includes a container for the Swift object store. This container needs an external volume for swift, by default this is
 mapped to `/tmp/mcm_swift`. For production/benchmark you should use a dedicated xfs partition:


    sudo mkfs.xfs /dev/X
    sudo mount /dev/X /mnt -o noatime,nodiratime,nobarrier,logbufs=8

then in docker-compose.yaml, swift section replace `- /tmp/mcm_swift:/srv` with `-v /mnt:/srv`


#### run docker-compose
**these 3 commands are all you actually need!**


    git clone https://github.com/sdos/deploy-sdos.git
    cd deploy-sdos
    docker-compose up


once finished, visit


    http://172.18.0.100:8000

    tenant: mcmdemo
    user: user
    pass: <PASSWORD>
    
    
### Issues
if docker can't access the internet, often the issue is that the local network only allows its own DNS servers.<commit_msg>how is this possible? oh you javascript guys...<commit_after># deploy an SDOS demo system
in this repo you can find scripts/tools to set up a complete demo environment including backend storage

The easiest option is to use docker-compose



# Docker compose based all-in-one demo system
I recommend you install docker and docker-compose manually from the docker.io website. You can use the docker version that comes with your linux distro but it might be outdated and not work.

#### prepare storage

**This part is optional; skip if you just want to try it**

This deployment includes a container for the Swift object store. This container needs an external volume for swift, by default this is
 mapped to `/tmp/mcm_swift`. For production/benchmark you should use a dedicated xfs partition:


    sudo mkfs.xfs /dev/X
    sudo mount /dev/X /mnt -o noatime,nodiratime,nobarrier,logbufs=8

then in docker-compose.yaml, swift section replace `- /tmp/mcm_swift:/srv` with `-v /mnt:/srv`


#### run docker-compose
**these 3 commands are all you actually need!**


    git clone https://github.com/sdos/deploy-sdos.git
    cd deploy-sdos
    docker-compose up


once finished, visit


    http://localhost:8000
    or
    http://172.18.0.100:8000

    tenant: mcmdemo
    user: user
    pass: <PASSWORD>
    
    
### Issues
if docker can't access the internet, often the issue is that the local network only allows its own DNS servers.
{'fraction_non_alphanumeric': 0.07222023596710761, 'fraction_numerical': 0.01215588130139435, 'mean_word_length': 3.520193861066236, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4681355', 'n_tokens_mistral': 872, 'n_tokens_neox': 778, 'n_words': 374}