running your own cyber-dojo server on a Mac

Note that these instructions are for running Docker-Toolbox for Mac.
Running Docker natively on a Mac is not supported.
This is because cyber-dojo requires a case-sensitive file system.
If you want to run a server for a group of people, and to maintain access to previous practice sessions you are strongly advised to run a server natively on a Linux machine.
These instructions are provided mostly for developers who wish to run cyber-dojo locally on their personal Mac laptop.

install Docker-Toolbox for Mac

From here.


open a Docker-Quickstart-Terminal




get your cyber-dojo server's IP address

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


shell into your cyber-dojo server

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




get the cyber-dojo 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.

No comments:

Post a Comment