Skip to content

Commit

Permalink
jupyterize
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Bettens committed Apr 14, 2023
1 parent 20b19de commit e78a625
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ FROM python:3.10
COPY requirements.txt /root/requirements.txt
RUN pip install -r /root/requirements.txt

# allow passwordless su
RUN passwd -d root
WORKDIR /srv

RUN useradd -m polygl0t -s /bin/bash
CMD su - polygl0t
CMD [ "jupyter", "notebook", "--allow-root", "--NotebookApp.token=", "--no-browser", "--ip=0.0.0.0", "--port=8888" ]
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Handy container with CTF tools
# Zero-setup Jupyter environment for CTF crypto
<a href="http://www.wtfpl.net/"><img
src="http://www.wtfpl.net/wp-content/uploads/2012/12/wtfpl-badge-2.png"
width="80" height="15" alt="WTFPL" /></a>

`docker run ghcr.io/polygl0ts/ctf.docker`
`docker run -v polygl0ts_notebooks:/srv -p 127.0.0.1:8888:8888 ghcr.io/polygl0ts/ctf.docker`

Go to http://127.0.0.1:8888 in your browser.
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ fastecdsa

numpy
galois

jupyter

0 comments on commit e78a625

Please sign in to comment.