adding validated services? patching forcad_local.py
This commit is contained in:
10
ctfcup2025-school-final/services/grob/Dockerfile
Normal file
10
ctfcup2025-school-final/services/grob/Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM ubuntu@sha256:c35e29c9450151419d9448b0fd75374fec4fff364a27f176fb458d472dfc9e54
|
||||
|
||||
RUN useradd ctf
|
||||
|
||||
COPY docker-entrypoint.sh /
|
||||
|
||||
WORKDIR /app
|
||||
COPY grob .
|
||||
|
||||
CMD ["/docker-entrypoint.sh"]
|
||||
33
ctfcup2025-school-final/services/grob/docker-compose.yml
Normal file
33
ctfcup2025-school-final/services/grob/docker-compose.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
services:
|
||||
grob:
|
||||
build:
|
||||
context: .
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "11331:11331"
|
||||
volumes:
|
||||
- history:/app/history
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: 4
|
||||
memory: 2048M
|
||||
|
||||
cleaner:
|
||||
image: c4tbuts4d/dedcleaner
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- history:/history
|
||||
environment:
|
||||
- DELETE_AFTER=7m
|
||||
- SLEEP=1m
|
||||
- DIRS=/history
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.25'
|
||||
memory: 128M
|
||||
|
||||
volumes:
|
||||
history:
|
||||
|
||||
4
ctfcup2025-school-final/services/grob/docker-entrypoint.sh
Executable file
4
ctfcup2025-school-final/services/grob/docker-entrypoint.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
chown -R ctf:ctf /app/history
|
||||
exec runuser -u ctf /app/grob
|
||||
BIN
ctfcup2025-school-final/services/grob/grob
Executable file
BIN
ctfcup2025-school-final/services/grob/grob
Executable file
Binary file not shown.
Reference in New Issue
Block a user