Add gdb and instructions
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
85d7881524
commit
efe5b75d03
2 changed files with 11 additions and 2 deletions
|
@ -8,7 +8,8 @@ RUN apt-get update && apt-get upgrade -y
|
||||||
|
|
||||||
RUN apt-get install -y flex-old bison build-essential \
|
RUN apt-get install -y flex-old bison build-essential \
|
||||||
csh libxaw7-dev wget \
|
csh libxaw7-dev wget \
|
||||||
libc6-i386 default-jdk
|
libc6-i386 default-jdk \
|
||||||
|
gdb
|
||||||
|
|
||||||
# Install student dist
|
# Install student dist
|
||||||
|
|
||||||
|
|
10
README.md
10
README.md
|
@ -55,7 +55,15 @@ accessible from the container:
|
||||||
```shell
|
```shell
|
||||||
docker run -it -v $PWD:/class:Z arminfriedl/lukewarm
|
docker run -it -v $PWD:/class:Z arminfriedl/lukewarm
|
||||||
# or
|
# 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
|
You can find the repository the container image is built from on
|
||||||
|
|
Loading…
Reference in a new issue