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

Oct 29, 2024
e99d6e9 · Oct 29, 2024
May 9, 2019
Apr 22, 2021
Dec 8, 2016
Sep 26, 2016
Nov 3, 2016
Nov 15, 2016
Nov 19, 2016
Apr 19, 2018
Nov 1, 2017
Oct 13, 2020
Jun 5, 2022
Apr 19, 2018
Oct 29, 2024
Oct 16, 2020
May 1, 2018
Jun 5, 2022
Sep 26, 2016
Dec 11, 2019
Apr 12, 2020
Nov 1, 2017
Aug 7, 2019
Aug 26, 2016
Nov 1, 2017
Nov 1, 2017
Feb 6, 2017
Jul 27, 2022
Apr 17, 2018
Oct 28, 2017
Nov 2, 2017
Mar 25, 2021
May 11, 2018
Jul 4, 2018
Aug 25, 2023
May 15, 2018

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 ..