Skip to content

How to weekly update the StratoCyberLab

Martin Řepa edited this page Oct 10, 2024 · 2 revisions

Every week as part of the CTU Introduction to Security class we are updating the StratoCyberLab with new tools and challenges.

Note: If you are just getting started, check the guides on how to get the StratoCyberLab up and running in our Wiki.

If you already have the StratoCyberLab up and running, follow the next steps to update it:

:~$ cd stratocyberlab/
:~$ 
:~$ # Let's pull the latest changes from the StratoCyberLab GitHub repository
:~$ git pull
:~$ 
:~$ # Let's use the latest code to build the new docker images
:~$ docker compose build
:~$ 
:~$ # Let's start (or restart) the StratoCyberLab making sure it uses the latest images
:~$ docker compose up -d --build --force-recreate

How do I know if I'm on the last version of the StratoCyberLab?

To know if you are in the last version of the StratoCyberLab check that you have the last local commit ID matches what you see on the web.

To know the latest commit ID locally, execute the following command: git show --oneline -s

The output will be something like the image shown below: image

The ID on the left should match the last ID on the GitHub repository: image