Add gdb and instructions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Armin Friedl 2020-12-18 14:19:49 +01:00
parent 85d7881524
commit efe5b75d03
2 changed files with 11 additions and 2 deletions

View file

@ -8,7 +8,8 @@ RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y flex-old bison build-essential \
csh libxaw7-dev wget \
libc6-i386 default-jdk
libc6-i386 default-jdk \
gdb
# Install student dist

View file

@ -55,7 +55,15 @@ accessible from the container:
```shell
docker run -it -v $PWD:/class:Z arminfriedl/lukewarm
# or
podman run -it -v $PWD:/class arminfriedl/lukewarm
podman run -it -v $PWD:/class:Z arminfriedl/lukewarm
```
If you want to debug with gdb you will need to enable:
```shell
docker run it -v $PWD:/class --cap-add=SYS_PTRACE --security-opt seccomp=unconfined arminfriedl/lukewarm
# or
podman run -it -v $PWD:/class --cap-add=SYS_PTRACE --security-opt seccomp=unconfined arminfriedl/lukewarm
```
You can find the repository the container image is built from on