Uploading Slurm Application Environment
Validate and Push the Customized Environment to the MGMT_SERVER
Validate the JSON asset with
jq:- CODE
jq . env0.json You will see well-formatted JSON if
jqcan read the file, indicating no errors. If you see an error message, that means the JSON is not valid.
When the JSON is valid, the file can be pushed to the MGMT_SERVER:
- CODE
curl -d "@env0.json" -H 'Content-Type: application/json' -X PUT http://${MGMT_SERVER_IP}:5000/v1/env