Skip to content

Arm-Examples/topo-welcome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello World

This project is a Topo template and follows the Topo Template Format Specification.

A minimal "Hello, World" web app for validating a Topo setup and deployment. It runs a single service that exposes a web page on the target, with the greeting text customizable via the GREETING_NAME parameter.

This is the most basic Topo project, intended as a starting point for understanding how a Topo Project is structured and how a simple containerized app is deployed to a target.

It demonstrates:

  • Topo template metadata and arguments defined under the x-topo section of compose.yaml.
  • An HTML page that renders a customizable greeting.

To find out more about the Topo template format, see arm/topo-template-format

Usage

To use this template download and install topo from arm/topo

Clone the project:

topo clone git@github.com:Arm-Examples/topo-welcome

You will be prompted to provide an argument for 'GREETING_NAME'

The person to greet
Example: Markus
Default: World
GREETING_NAME (required)> Clark Kent

Build and Deploy the project:

cd topo-welcome
topo deploy --target <ip-address-of-target>

What you will see

Once deployment completes, open a browser to http://<ip-address-of-target>:8000 and you'll see a page that says "Hello <GREETING_NAME>, from a Topo container".

screenshot of the webpage showing a greeting for Clark Kent

About

A Hello World web app to test Topo setup

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors