Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduced devcontainer #194

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM debian:bullseye AS base

ARG DEBIAN_FRONTEND=noninteractive

RUN --mount=type=cache,target=/var/cache/apt apt-get update && \
apt-get install -y --no-install-recommends python3 python3-dev python3-pip python3-setuptools virtualenv build-essential libpcap-dev libgraph-easy-perl libffi-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
24 changes: 24 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "Netzob DevContainer",
"dockerFile": "Dockerfile",
"customizations": {
"vscode": {
"extensions": [
"hbenl.vscode-test-explorer",
"GitHub.vscode-pull-request-github"
]
}
},
"postCreateCommand": "virtualenv venv && sh ./venv/bin/activate && pip3 install Cython==0.29.32 && pip3 install -e .",
"runArgs": [
"-u",
"root",
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined",
"--hostname",
"netzob-dev",
"-v",
"${env:HOME}/.ssh:/root/.ssh:ro"
]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*.pyc
*.so
*.[ao]
**/*.DS_Store
/MANIFEST
/dist/*
/.settings/*
Expand Down Expand Up @@ -34,3 +35,4 @@ dist/
src/netzob/Fuzzing/Generators/xorshift.c
doc/documentation/build/
.vagrant/
venv