Container image with node.js latest 7th version
run#!/bin/bash
getinput 1 > student/example.js
output=$(run_student node student/example.js 2> errors)
if [ "$( cat errors )" != "" ]; then
feedback-result failed
feedback-msg -em "There are errors in your code:\n\n"
echo "$(cat errors)" | feedback-msg -ae
exit
fi
if [ "$output" == "Hello, World!" ]; then
feedback-result success
feedback-msg -em "Your code is right! Output:\n\n"
else
feedback-result failed
feedback-msg -em "Your code is false. Output:\n\n"
fi
echo $output | feedback-msg -ae
Content type
Image
Digest
Size
117.6 MB
Last updated
over 9 years ago
docker pull bogem/inginious-c-nodejs