<commit_before># NAME

/etc/rktrunner.toml - configuration file for rkt-run

# SYNTAX

`rkt = ` *string* `# path to rkt program`

`default-interactive-cmd = ` *string* `# shell for interactive containers`

`attach-stdio = ` *bool* `# whether to use experimental rkt attach for stdin,stdout,stderr streams`

`preserve-cwd = ` *bool* `# whether to change to the host working directory in the container`

`exec-slave-dir = ` *string* `# host directory containing rkt-run-slave program`

## environment

[environment]

*name* `=` *value* `# environment variable for container`

## options

[options]

`general = ` *list-of-string* `# options passed to rkt program`

`run = ` *list-of-string* `# options passed to run subcommand`

`image = ` *list-of-string* `# options passed to image`

## auto-image-prefix

[auto-image-prefix]

*string* ` = ` *string* `# substitution performed on image prefix`

## volume

`[volume.` *identifier* `]`

`volume = ` *string* `# parameters passed to --volume`

`mount = ` *string* `# parameters passed to --mount`

## alias

`[alias.` *identifier* `]`

`image = ` *string* `# image name`

`exec = ` *list-of-string* `# executables within image to expose as rkt-run aliases`

# TEMPLATE VARIABLES

The following template variables may be used, in addition to any environment variable.

`{{.HomeDir}}` user home directory

`{{.Username}}` user login name

`{{.Uid}}` numerical user id

`{{.Gid}}` numerical group id

# EXAMPLE
```
rkt = "/usr/bin/rkt"
attach-stdio = true
preserve-cwd = true
exec-slave-dir = "/usr/libexec/rktrunner"
default-interactive-cmd = "sh"

[options]
general = ["--insecure-options=image"]
run = [
    "--net=host",
    "--set-env=HOME=/home/{{.Username}}",
    "--set-env=http_proxy={{.http_proxy}}",
    "--set-env=https_proxy={{.https_proxy}}",
]
image = [
    "--user={{.Uid}}",
    "--group={{.Gid}}",
    "--seccomp", "mode=retain,@docker/default-whitelist,mbind",  # for Julia, see https://github.com/rkt/rkt/issues/3651
]

[auto-image-prefix]
"biocontainers/" = "docker://biocontainers/"

[volume.home]
volume = "kind=host,source={{.HomeDir}}"
mount = "target=/home/{{.Username}}"

[volume.dataset]
volume = "kind=host,source=/dataset"
mount = "target=/dataset"

[volume.bifo]
volume = "kind=host,source=/bifo"
mount = "target=/bifo"

[volume.volume-config]
volume = "kind=empty,uid={{.Uid}},gid={{.Gid}}"

[volume.volume-data]
volume = "kind=empty,uid={{.Uid}},gid={{.Gid}}"
<commit_msg>Updated example on rktrunner.toml manpage.<commit_after># NAME

/etc/rktrunner.toml - configuration file for rkt-run

# SYNTAX

`rkt = ` *string* `# path to rkt program`

`default-interactive-cmd = ` *string* `# shell for interactive containers`

`attach-stdio = ` *bool* `# whether to use experimental rkt attach for stdin,stdout,stderr streams`

`preserve-cwd = ` *bool* `# whether to change to the host working directory in the container`

`exec-slave-dir = ` *string* `# host directory containing rkt-run-slave program`

## environment

[environment]

*name* `=` *value* `# environment variable for container`

## options

[options]

`general = ` *list-of-string* `# options passed to rkt program`

`run = ` *list-of-string* `# options passed to run subcommand`

`image = ` *list-of-string* `# options passed to image`

## auto-image-prefix

[auto-image-prefix]

*string* ` = ` *string* `# substitution performed on image prefix`

## volume

`[volume.` *identifier* `]`

`volume = ` *string* `# parameters passed to --volume`

`mount = ` *string* `# parameters passed to --mount`

## alias

`[alias.` *identifier* `]`

`image = ` *string* `# image name`

`exec = ` *list-of-string* `# executables within image to expose as rkt-run aliases`

# TEMPLATE VARIABLES

The following template variables may be used, in addition to any environment variable.

`{{.HomeDir}}` user home directory

`{{.Username}}` user login name

`{{.Uid}}` numerical user id

`{{.Gid}}` numerical group id

# EXAMPLE
```
rkt = "/usr/bin/rkt"
attach-stdio = true
preserve-cwd = true
exec-slave-dir = "/usr/libexec/rktrunner"
default-interactive-cmd = "sh"

[environment]
# these are passed in a file, not on the command line
HOME = "/home/{{.Username}}"
http_proxy = "{{.http_proxy}}"
https_proxy = "{{.https_proxy}}"

[options]
general = ["--insecure-options=image"]
run = [
    "--net=host",
]
image = [
    "--user={{.Uid}}",
    "--group={{.Gid}}",
    "--seccomp", "mode=retain,@docker/default-whitelist,mbind",  # for Julia, see https://github.com/rkt/rkt/issues/3651
]

[auto-image-prefix]
"biocontainers/" = "docker://biocontainers/"

[volume.home]
volume = "kind=host,source={{.HomeDir}}"
mount = "target=/home/{{.Username}}"

[volume.dataset]
volume = "kind=host,source=/dataset"
mount = "target=/dataset"

[volume.bifo]
volume = "kind=host,source=/bifo"
mount = "target=/bifo"

[volume.volume-config]
volume = "kind=empty,uid={{.Uid}},gid={{.Gid}}"

[volume.volume-data]
volume = "kind=empty,uid={{.Uid}},gid={{.Gid}}"

{'fraction_non_alphanumeric': 0.1870837537840565, 'fraction_numerical': 0.0016145307769929364, 'mean_word_length': 4.352051835853132, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2446423', 'n_tokens_mistral': 1805, 'n_tokens_neox': 1776, 'n_words': 429}