Setting up the environment¶
If you have any troubles setting up the environment, please reach out to us in our session.
We recommend you to use Podman on Linux and MacOS, but Docker should work fine as well.
If you choose Podman, install
podman-docker
wrapper, which enables you to typedocker
andpodman
interchangably.
Get and run the container image¶
Pull the container:
docker pull quay.io/bughunting/client:test
(A) With bind mounting¶
Bind mounting the container to a directory allows to use local IDEs and text editors to complete the task, because the folder will be available for you locally, as usual.
Create and enter a directory that the tasks will be mounted to:
mkdir bughunting-tasks-test
cd bughunting-tasks-test
Run the container
docker run -e KEY=1234567890101112 -dt --name bughunting-test -v"${PWD}:/home/bughunting/sources:z,rw" quay.io/bughunting/client:test
(B) Without bind mounting¶
The container can be ran without bind mounting the tasks directory.
Run the container
docker run -e KEY=1234567890101112 -dt --name bughunting-test quay.io/bughunting/client:test
Choose your command-line file editor
We recommend nano
. Please go to (A) if unsure.
Enter the running container¶
You can enter the container repeatedly any time it’s running (and re-run it if it’s not).
Enter the container:
docker exec -ti bughunting-test zsh
Remove the running container & its image¶
When you’re finished, you can clean up the running container:
Remove the running container
docker rm -f bughunting-test
And, if you don’t intend to run BugHunting again.
Remove the downloaded container image
docker rmi -f quay.io/bughunting/client:test