Skip to main content

Lorem Ipsum Example Container

This is an example container that generates a lot of text using the Lorem Ipsum generator.

Environment variables

  • LOREM: The arguments for lipsum.sh. (default: "paragraphs 10 -m 4 -M 6 -w 8 -W 10")
  • REPEAT: The number of times to repeat the lorem output. (default: 1)
  • INFINITE: If set to true, the dice will roll forever. (default: false)
  • SLEEP: The duration between each roll in seconds. (default: 0.2)
  • QUIET: If set to true, the dice will not output the result of each roll. (default: false)
  • LOG_JSON: If set to true, the dice will output the result of each roll in JSON format. (default: false)
  • 'LOG_COLOR': If set to true, the dice will output the result of each roll in color. Ignored if LOG_JSON is set. (default: false)
  • TERMINATE_SLEEP: The duration to sleep before terminating the job. (default: 0)

For lipsum.sh see lipsum-shell or following.

Running with docker

docker run --rm mhus/example-lorem:latest

Running with kubernetes

kubectl run dice --image=mhus/example-lorem:latest --restart=Never

lipsum-shell Usage

lipsum <command> [count] [-m|M|w|W|h|v]

# Generate 10 characters
lipsum characters 10

# Generate 10 words
lipsum words 10

# Generate 10 sentences with 8 to 12 words
lipsum sentences 10 -m 8 -M 12

# Generate 10 paragraphs with 4 to 6 sentences that are 8 to 10 words
lipsum paragraphs 10 -m 4 -M 6 -w 8 -W 10

Commands

CommandDescription
charactersGenerate characters
wordsGenerated words
sentencesGenerate sentences
paragraphsGenerate paragraphs
helpShow help
versionShow version

Structure commands also have the following aliases:

TypeAliases
Characterscharacters, character, char, c
Wordswords, word, w
Sentencessentences, sentence, sent, s
Paragraphsparagraphs, paragraph, para, p

Arguments

ArgumentDescriptionDefault
countNumber of structures to generate1

Options

NameDescription
-mMinimum number of structures to generate (applies to sentence and paragraph only)
-MMaximum number of structures to generate (applies to sentence and paragraph only)
-wMinimum number of words to generate per sentence (applies to paragraph only)
-WMaximum number of words to generate per sentence (applies to paragraph only)
-vPrint version
-hPrint help

Defaults

TypeOptionValue
Sentences-m4
Sentences-M8
Paragraphs-m5
Paragraphs-M10
Paragraphs-w4
Paragraphs-W8

lipsum-shell License

Code released under the MIT License.