The sandbox is a local Forgejo instance on your computer. It has the practice repository, the actors of the community and the CI. Nothing reaches GitHub.
Requirements
- Docker with
docker compose(see Install Docker if you do not have it) - Python 3.11 or later
- Git
The CI of the sandbox runs Docker in a privileged container. Do not start the sandbox on a computer where this is not allowed.
Install Docker
Docker runs the sandbox in isolated containers, so you do not install Forgejo yourself. If docker compose version already prints a version number in your terminal, skip this section.
macOS
- Download Docker Desktop. Choose Apple Silicon for M1/M2/M3/M4 Macs and Intel for older Macs. To check your Mac, open the Apple menu and choose About This Mac.
- Open the downloaded
.dmgfile and drag Docker to the Applications folder. - Open Docker from the Applications folder and accept the terms.
- Wait until the whale icon in the menu bar stops moving. Docker is then running.
Windows
- Download Docker Desktop and run the installer.
- Keep the option Use WSL 2 instead of Hyper-V selected. The installer sets up WSL 2 for you.
- Restart the computer when the installer asks.
- Open Docker Desktop from the Start menu and accept the terms.
- Wait until Docker Desktop shows Engine running at the bottom left.
- Run the commands of this page in PowerShell or in a WSL terminal.
Docker Desktop needs Windows 10 (64-bit) or Windows 11 with virtualization turned on in the BIOS. Most computers have it on by default.
Linux
Install Docker Engine with the official script:
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.shThen allow your user to run Docker without sudo:
sudo usermod -aG docker $USERLog out and log in again for this to take effect. The script installs the docker compose plugin too.
For other ways to install Docker on Linux, see the official Docker installation guide.
Check the installation
Open a new terminal and run:
docker --version
docker compose version
docker run hello-worldThe first two commands print a version number. The last command prints Hello from Docker!. If you see all three, Docker works.
Start the sandbox
Clone IOSS:
git clone https://github.com/florence-bockting/IOSS.gitGo to the sandbox folder:
cd IOSS/sandboxStart Forgejo:
docker compose up -dCreate the users, the repository and the issues:
python3 setup.pyThe first CI job takes about 5 minutes, because Docker downloads the images. Later jobs take less than 1 minute.
Log in
- Open http://localhost:3000/tinystats/tinystats.
- Log in as
newcomer. The password is in the file.env:
grep NEWCOMER_PASSWORD .envPlay
- The tour starts on your first visit to the repository. The Start tour button at the bottom right starts it again.
- The quest issue is pinned in the issue list. It shows your tasks as a checklist. When you finish a task, the bot ticks the box and names the next task.
- The actors answer you. For example, the maintainer assigns an issue to you when you write that you want to work on it.
The steps of the game are in the scenario file.
Start again
This deletes all users, issues and pull requests of the sandbox.
docker compose down -vrm .envThen start the sandbox again.
More information
The sandbox README explains the CI, the tour and the quest in detail.