cyber-dojo Raspberry Pies in action



Liam Friel, who helps to run a CoderDojoBray (in Ireland) asked me for some Raspberry Pies which I was more than happy to give him, paid for from the donations lots of you generous people have made from cyber-dojo.

Liam sent me this wonderful photo of a CoderDojoBray session and writes:

Your Pies have been getting a lot of use... We've got 8 Pies in total. Got a reasonably steady turnout at the dojo, 75-85 kids turning up each week.

Awesome. If, like Liam, you would like some Raspberry Pies to help kids learn about coding, please email. Thanks

running your own cyber-dojo server on Windows

install Docker-Toolbox for Windows

From here.


open a Docker-Quickstart-Terminal



install the cyber-dojo shell script

In a Docker-Quickstart-Terminal, type:
$ curl -O https://raw.githubusercontent.com/cyber-dojo/commander/master/cyber-dojo $ chmod +x cyber-dojo


bring up your cyber-dojo server

In a Docker-Quickstart-Terminal, type:
$ ./cyber-dojo up
The first time you run this it will download the necessary docker images for your server.
This may take several minutes depending on your network connection.


access your cyber-dojo server via a browser

To find your server's IP address, in a Docker-Quickstart-Terminal, type:
$ docker-machine ip default
Put your server's IP address (eg 192.168.99.100) into your browser's address bar.
That's it!
This works in Chrome, in Firefox, in Opera, and in Internet Explorer. Edge sometimes has problems.


update your cyber-dojo server

In a Docker-Quickstart-Terminal, type:
$ curl -O https://raw.githubusercontent.com/cyber-dojo/commander/master/blue-green-deploy.sh $ chmod +x blue-green-deploy.sh $ ./blue-green-deploy.sh



bring down your cyber-dojo server

In a Docker-Quickstart-Terminal, type:
$ ./cyber-dojo down



pre-pull an individual language+testFramework image

The first time you setup a practice-session for a given language and test-framework (eg C#, NUnit) the server will pull its docker image. This can take a few minutes depending on your network connection and the image size. You can pre-pull images to avoid this delay.
To display all the language+testFramework image names, in a Docker-Quickstart-Terminal, type:
$ ./cyber-dojo start-point inspect languages
For example:
MAJOR_NAME MINOR_NAME IMAGE_NAME PULLED? Asm assert cyberdojofoundation/nasm_assert no BCPL all_tests_passed cyberdojofoundation/bcpl_all_tests_passed no Bash bash_unit cyberdojofoundation/bash_unit no Bash shunit2 cyberdojofoundation/bash_shunit2 no C (clang) Cgreen cyberdojofoundation/clang_cgreen no C (clang) assert cyberdojofoundation/clang_assert no C (gcc) Cgreen cyberdojofoundation/gcc_cgreen no C (gcc) CppUTest cyberdojofoundation/gcc_cpputest no C (gcc) Unity cyberdojofoundation/gcc_unity no C (gcc) assert cyberdojofoundation/gcc_assert no C# Moq cyberdojofoundation/csharp_moq no C# NUnit cyberdojofoundation/csharp_nunit no C# SpecFlow cyberdojofoundation/csharp_specflow no C++ (clang++) Cgreen cyberdojofoundation/clangpp_cgreen no C++ (clang++) GoogleMock cyberdojofoundation/clangpp_googlemock no C++ (clang++) GoogleTest cyberdojofoundation/clangpp_googletest no ...
Then pull your chosen image name. For example, in a Docker-Quickstart-Terminal, type:
$ docker pull cyberdojofoundation/csharp_nunit


pre-pull all the language+testFramework images

This will take a while. In the Docker-Quickstart-Terminal, type:
$ ./cyber-dojo start-point pull languages


running your own cyber-dojo server on a Mac

install Docker-Toolbox for Mac

From here.


open a Docker-Quickstart-Terminal



find your cyber-dojo server's IP address

In a Docker-Quickstart-Terminal, type:
$ docker-machine ip default
It will print something like 192.168.99.100

shell into your cyber-dojo server

In a Docker-Quickstart-Terminal, type:
$ docker-machine ssh default


install the cyber-dojo shell script

In your cyber-dojo server, type:
$ curl -O https://raw.githubusercontent.com/cyber-dojo/commander/master/cyber-dojo $ chmod +x cyber-dojo

Now use this cyber-dojo script, from your cyber-dojo server, to run your own cyber-dojo server.

running your own cyber-dojo server on Linux

install docker

If docker is not already installed, install it. There are two ways to do this:
  • Either, follow the instructions on the docker website.
  • Or curl/wget the quick-and-easy install script at https://get.docker.com
    $ curl -sSL https://get.docker.com/ | sh $ wget -qO- https://get.docker.com/ | sh
Now add your user to the docker group. Eg, something like
$ sudo usermod -aG docker YOUR_USERNAME
Now log out and log in again, for the usermod to take effect.

install the cyber-dojo shell script

In a terminal, type:
$ curl -O https://raw.githubusercontent.com/cyber-dojo/commander/master/cyber-dojo $ chmod +x cyber-dojo

Now use this cyber-dojo script to run your own cyber-dojo server.