Skip to content

Latest commit

 

History

History

sample-app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Sample app

Used to test s2i builder. This example uses thor gem, but it can be really used with anything, only cli file is needed, which will be executed as docker entrypoint.

Build and run

Install s2i via preferred method. Then:

$ s2i build . ghcr.io/allanipl/s2i-ruby-cli:3.0-slim sample-app
[...]
Build completed successfully
$ docker run --rm sample-app
Commands:
  cli hello_world     # Prints hello world
  cli help [COMMAND]  # Describe available commands or one specific command
$ docker run --rm sample-app hello_world
Hello world!