Skip to content

Commit 4cab735

Browse files
authored
Merge pull request IvorySQL#1188 from rophy/feat/dev-container
chore: add gdb debugging support to dev container
2 parents 4aa0b6a + a72b7c3 commit 4cab735

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ RUN apt-get update && apt-get install -y \
3434
locales \
3535
# For dev containers
3636
sudo tini \
37+
# Debugging tools
38+
gdb \
3739
&& rm -rf /var/lib/apt/lists/*
3840

3941
# Install meson and ninja from source (matching workflow versions)

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ lib*.pc
4141
/pgsql.sln.cache
4242
/Debug/
4343
/Release/
44-
/tmp_install/
44+
/tmp_install

docker-compose.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@ services:
33
build:
44
context: .
55
dockerfile: .devcontainer/Dockerfile
6-
image: ivorysql-dev
7-
container_name: ivorysql-dev
86
volumes:
97
- .:/home/ivorysql/IvorySQL:rw
108
working_dir: /home/ivorysql/IvorySQL
119
command: ["sleep", "infinity"]
10+
# Enable ptrace for gdb debugging
11+
cap_add:
12+
- SYS_PTRACE
13+
security_opt:
14+
- seccomp:unconfined
1215

1316
# docker compose --profile ora up -d
1417
oracle:

0 commit comments

Comments
 (0)