running your own cyber-dojo Docker server on a Mac

These instructions are intended for individuals wishing to run cyber-dojo locally on their Mac laptop.
Note that these instructions are for running Docker-Toolbox for Mac.
Running Docker Desktop for Mac may or may not work.

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


ssh into your cyber-dojo server

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




setup directory permissions

cyber-dojo saves the practice sessions to /cyber-dojo
You need to set the correct permissions for this directory.
The user-id for the saver service is 19663, and its group-id is 65533.
In the cyber-dojo server terminal, type:
docker@default:~$ sudo mkdir /cyber-dojo docker@default:~$ sudo chown 19663:65533 /cyber-dojo


install the cyber-dojo script

In the cyber-dojo server terminal, type:
docker@default:~$ curl -O https://raw.githubusercontent.com/cyber-dojo/commander/master/cyber-dojo docker@default:~$ chmod 700 cyber-dojo


Now use this cyber-dojo script, from a (default VM) cyber-dojo server terminal, to run your own cyber-dojo server.

5 comments:

  1. Hi Jon

    How do I make cyber-dojo on my mac visible to other computers on my wireless LAN?

    Cheers, James

    ReplyDelete
  2. Hi James.
    I don't know. Sorry
    Cheers
    Jon

    ReplyDelete
  3. This is a practical and informative article that explains how to run a personal Cyber-Dojo server, giving developers greater control over coding practice environments and collaborative programming exercises. The author provides useful guidance on setup, configuration, and deployment considerations, making it easier for readers to create a self-hosted platform for learning, experimentation, and software development activities.

    ReplyDelete
  4. The discussion focuses on server deployment, containerized environments, infrastructure management, and platform hosting concepts that are essential in modern development ecosystems. These topics are closely related to Cloud Computing Projects, where scalable deployment, virtualization, and distributed application management play a key role in building reliable software platforms.

    ReplyDelete
  5. Deploying and maintaining self-hosted development platforms often involves automation, scripting, and environment management techniques. These practical skills complement Python Projects For Final Year, where developers build tools and automation workflows that improve software deployment, testing, and operational efficiency.

    ReplyDelete