https://github.com/djenriquez/nomad-parse-json
Tool to encode HCL to proper JSON format for Nomad's "/v1/parse" endpoint.
https://github.com/djenriquez/nomad-parse-json
Last synced: about 1 month ago
JSON representation
Tool to encode HCL to proper JSON format for Nomad's "/v1/parse" endpoint.
- Host: GitHub
- URL: https://github.com/djenriquez/nomad-parse-json
- Owner: djenriquez
- Created: 2018-12-04T00:03:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-04T19:03:24.000Z (over 6 years ago)
- Last Synced: 2025-02-01T18:42:48.475Z (3 months ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nomad-parse-json
Nomad-parse-json is a simple public docker image that will encode an HCL defined Nomad job into the JSON body required for the Nomad `/v1/parse` endpoint.To use:
```
curl \
--request POST \
--data "`docker run -i --rm -e CANONICALIZE=true djenriquez/nomad-parse-json:latest < hello-world.nomad`" \
http://localhost:4646/v1/jobs/parse
```