Skip to content

Commit

Permalink
Update dockerfile and instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
cnheitman committed Jun 28, 2023
1 parent 56f71b9 commit 9430453
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,12 @@ RUN pip install pastis-framework
ENV AFLPP_PATH=/usr/local/bin
ENV HFUZZ_PATH=/usr/local/bin

# Add new user.
RUN adduser --disabled-password --gecos '' pastis-user && \
adduser pastis-user sudo && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

# Switch to the new user.
USER pastis-user

WORKDIR /workspace
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ You can also run PASTIS using Docker:
```bash
docker pull ubuntu:22.04
docker build -t pastis-docker .
docker run -v <HOST-WORKSPACE>:/workspace --cap-add=SYS_PTRACE -it pastis-docker
docker run -v <HOST-WORKSPACE>:/workspace --cap-add=SYS_PTRACE --user $(id -u $USER):$(id -g $USER) -it pastis-docker
```

To open another terminal to an already running container:
Expand Down

0 comments on commit 9430453

Please sign in to comment.