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

Pin Flask version so that container runs #55

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion cmgr/dockerfiles/flask.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
build-essential \
python3-pip
RUN pip3 install flask
RUN pip3 install flask==2.2.5
RUN groupadd -r flask && useradd -r -d /app -g flask flask

ENV FLASK_RUN_HOST=0.0.0.0
Expand Down
3 changes: 1 addition & 2 deletions examples/custom/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ RUN echo $FLAG | openssl aes-256-cbc -k unguessable -pbkdf2 -out secret.enc
# These "artifacts" are available to competitors for download
RUN tar czvf /challenge/artifacts.tar.gz secret.enc time.txt

CMD socat TCP4-LISTEN:4242,reuseaddr,fork exec:'echo -n openssl aes-256-cbc -d -k unguessable -pbkdf2 -in secret.enc'
CMD socat TCP4-LISTEN:4200,reuseaddr,fork exec:'echo -n openssl aes-256-cbc -d -k unguessable -pbkdf2 -in secret.enc'

EXPOSE 4200
# PUBLISH 4200 AS socat
2 changes: 1 addition & 1 deletion examples/custom/solver/solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import subprocess

c = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
c.connect(("challenge", 4242))
c.connect(("challenge", 4200))
command = c.recv(4096).decode()

results = subprocess.run(command, capture_output=True, shell=True, text=True)
Expand Down