mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-24 18:44:07 +03:00
docker: make reset-urbit-code work properly
This commit is contained in:
parent
a77eeed64a
commit
cc3fdf80d5
@ -78,11 +78,16 @@ let
|
||||
resetUrbitCode = writeScriptBin "reset-urbit-code" ''
|
||||
#!${bashInteractive}/bin/bash
|
||||
|
||||
curl -s -X POST -H "Content-Type: application/json" \
|
||||
-d '{ "source": { "dojo": "|code %reset" }, "sink": { "stdout": null } }' \
|
||||
http://127.0.0.1:12321
|
||||
curl=$(curl -s -X POST -H "Content-Type: application/json" \
|
||||
-d '{ "source": { "dojo": "+hood/code %reset" }, "sink": { "app": "hood" } }' \
|
||||
http://127.0.0.1:12321)
|
||||
|
||||
echo "OK"
|
||||
if [[ $? -eq 0 ]]
|
||||
then
|
||||
echo "OK"
|
||||
else
|
||||
echo "Curl error: $?"
|
||||
fi
|
||||
'';
|
||||
|
||||
in dockerTools.buildImage {
|
||||
|
Loading…
Reference in New Issue
Block a user