<commit_before>docker-fstrim
=============

Static fstrim binary built inside a container (as lucid doesn't come with one)<commit_msg>fstrim in a can<commit_after># fstrim in a can

This is a small Docker recipe to build `nsenter` easily and install it in your
system.


## How do I install `fstrim` with this?

If you want to install `nsenter` into `/usr/local/bin`, just do this:

    docker run --rm -v /usr/local/bin:/target bobtfish/fstrim

The `bobtfish/fstrim` container will detect that `/target` is a
mountpoint, and it will copy the `nsenter` binary into it.

If you don't trust me, and prefer to extract the `nsenter` binary,
rather than allowing my container to potentially wreak havoc into
your system's `$PATH`, you can also do this:

    docker run --rm bobtfish/fstrim cat /nsenter > /tmp/nsenter

Then do whatever you want with the binary in `/tmp/nsenter`.


## Caveats

- This only works on Intel 64 bits platforms.

## Credit

All credit for this idea goes to jpetazzo for the [nsenter container](https://github.com/jpetazzo/nsenter)

{'fraction_non_alphanumeric': 0.09392789373814042, 'fraction_numerical': 0.0018975332068311196, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 1, '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': '1131250', 'n_tokens_mistral': 341, 'n_tokens_neox': 321, 'n_words': 149}