Skip to content
/ sandbox Public

sandbox ⌛ experiments, scripts, snippets (AWS, Docker, ...)

Notifications You must be signed in to change notification settings

markhu/sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sandbox

sandbox is a test

basic Git steps:

  1. git-clone
  2. (edit files)
  3. git add # (optional)
  4. git-commit
  5. git-push

basic docker steps:

  1. docker build -t repo/name .
  2. docker run repo/name <optional_command(s)>

basic Spock steps:

Note that running the Groovy/Spock scripts standalone requires un-commenting the Grapes/Grab lines. And conversely, running them under Maven requires commenting out the Grapes/Grab lines.

  1. mvn clean test ; # runs the tests under src/ via Maven
  2. ./src/test/groovy/spock/test-spock-Spec.groovy ; # standalone script

basic Vert.X steps

Note that running Groovy/VertX scripts from bash env/shbang has different instantiation defaults vs. using the vertx command-line lanucher. See more docs at http://vertx.io/docs/vertx-core/groovy/

  1. vertx run ScriptName # run in VertX context (auto-import certain libs + instantiated object(s)
  2. vertx start AppScriptSrv # launch VertX app into background process (daemon)
  3. vertx run ServiceScript -clustert # enable VertX eventBus (HazelCast)

see also ..