Sign inSign up

bogem/inginious-c-nodejs

By bogem

Updated over 9 years ago

Node.js container for INGInious

Image
0

381

bogem/inginious-c-nodejs repository overview

Node.js image for INGInious

Container image with node.js latest 7th version

Example of 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

Tag summary

Content type

Image

Digest

Size

117.6 MB

Last updated

over 9 years ago

docker pull bogem/inginious-c-nodejs