<commit_before># A project for creating minimal Docker images

The concept of this project is to find all the libraries for running an
application or process in a Docker container. This will lead to smaller Docker
images so that deploys are faster, disk usage is minimized, and attack surfaces
are decreased.

## To get started

    docker build -t centos:java1.8.0_121 .

    docker run -v "${PWD}:/data" -w /data centos:java1.8.0_121 python create_minimal_image.py

# TODOS

[ ]: copy files found by command above into `build-output/` to be used by a subsequent Docker image
[ ]: test out that this actually works for a Java application
[ ]: create a script that does the build process so a single command needs to be run<commit_msg>[DOCUMENTATION] add paragraph about running tests<commit_after># A project for creating minimal Docker images

The concept of this project is to find all the libraries for running an
application or process in a Docker container. This will lead to smaller Docker
images so that deploys are faster, disk usage is minimized, and attack surfaces
are decreased.

## To get started

    docker build -t centos:java1.8.0_121 .

    docker run -v "${PWD}:/data" -w /data centos:java1.8.0_121 python create_minimal_image.py

# Running tests

    # create virtualenv if you'd like
    pip install -r requirements.txt
    pytest

# TODOS

[ ]: copy files found by command above into `build-output/` to be used by a subsequent Docker image
[ ]: test out that this actually works for a Java application
[ ]: create a script that does the build process so a single command needs to be run
{'fraction_non_alphanumeric': 0.057799875699192045, 'fraction_numerical': 0.014916096954630205, 'mean_word_length': 3.908536585365854, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '6129723', 'n_tokens_mistral': 461, 'n_tokens_neox': 423, 'n_words': 234}