Skip to content

containertools/hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

containertools/hello-world

Sample container image for testing.

Usage

To create the image containertools/hello-world, execute the following command:

docker build -t containertools/hello-world .

Running your Hello World container:

docker run -it -p 8080:8080 containertools/hello-world

Running your Hello World container mouting a files directory:

docker run -it -p 8080:8080 -v "$PWD/files:/files" -e FILES_BASEPATH=/files containertools/hello-world

Environment Variables

FILES_BASEPATH: Path to the directory containing the files to be listed. Default value: /tmp

Endpoints

  • /: Shows an HTML page containing some container configuration information.
  • /json: Shows a JSON object containing some container configuration information.
  • /files: List files in the FILES_BASEPATH directory.

License

Apache 2.0 - See LICENSE for more information.