Skip to content

dbrrt/noaas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nomad-as a Service

noaas-go-ci

Requirements

Get Started

Start Nomad service

make start_nomad

For the sake of simplicity and portability, nomad has been dockerized and configuration added to a compose file.

make start_nomad_compose

Once nomad agent has been started, the nomad UI can be accessed via http://localhost:4646

Start NoaaS API local

make dev

Start Unit

make unit

Start E2E

  1. Start Nomad in a container
make start_nomad_compose
  1. Execute API tests
make ci

Measure Code coverage

make coverage

Notes

  • busybox has been used instead of nginx, as it's simpler to configure, can receive dynamic port through command line, doesn't require a custom configuration file, then I've been able to focus on code quality over nginx configuration.
  • Remote code execution is dangerous, I've skipped the sanity checks, but that's something required in a secured context.
  • Created a custom action to test my services with a Nomad cluster in GitHub actions
  • Replaced script query parameter type from boolean to string for parsing conveniency by routing validation

About

Nomad SDK + Gin Gonic integration sample

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published