Skip to content

drakoswraith/habplan_dummy-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dummy-service

This plan provides a service that does nothing to allow testing of Habitat work flows and processes

Demo Update Strategies

In these examples.. replace the origin or builder URL as needed! This was built and tested using private origins and test systems which may differ from yours.

Overview:

  1. Set the HAB environment variables
  • HAB_BLDR_URL
  • HAB_ORIGIN
  • HAB_AUTO_TOKEN
  1. Build the package, upload, and promote to a channel.
  2. Increment the version, build, and upload, but do not promote
  3. Run a habitat supervisor
  4. Install the packge with an at-once strategy, and from the channel
  5. Promote the newer version of the package to the channel
  6. Check the touch file for updates

On build system (windows example):

hab pkg build
. ./results/last_build.ps1
hab pkg upload $pkg_artifact
hab pkg promote $pkg_ident uac x86_64-windows

On build system (windows example):

hab pkg build
. ./results/last_build.env
hab pkg upload $pkg_artifact
hab pkg promote $pkg_ident uac x86_64-linux

On test system, open two command prompts:

In first command prompt:

hab sup run --auto-update --strategy at-once

In second command prompt (windows) :

hab svc load michaellehman/dummy-service --strategy at-once --channel uac
get-content c:\hab\svc\dummy-service\data\touchfile.txt -wait

In second command prompt (linux):

hab svc load michaellehman/dummy-service --strategy at-once --channel uac
tail -f /hab/svc/dummy-service/data/touchfile.txt

About

Dummy Chef Habitat service for testing/training

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published