debug warmup
This commit is contained in:
@@ -25,6 +25,7 @@ class Warmup(Challenge):
|
||||
try:
|
||||
url = f'http://localhost:{self.port}/'
|
||||
r = requests.get(url, timeout=5)
|
||||
print(r.text)
|
||||
assert "Simple file viewing application" in r.text.lower(), 'Warmup app not available'
|
||||
|
||||
with open(self.flag_location, 'r') as f:
|
||||
|
||||
+2
-2
@@ -40,8 +40,8 @@ def main():
|
||||
print("Using existing .env files")
|
||||
|
||||
os.chdir(os.path.join(cwd, 'services'))
|
||||
# os.system(f'docker compose -f docker-compose.yml up -d {args.challenges}')
|
||||
os.system(f'docker compose -f docker-compose.yml up --build -d {args.challenges}')
|
||||
os.system(f'docker compose -f docker-compose.yml up -d {args.challenges}')
|
||||
# os.system(f'docker compose -f docker-compose.yml up --build -d {args.challenges}')
|
||||
|
||||
os.chdir(os.path.join(cwd, 'receiver'))
|
||||
os.system('apt-get install -y gcc python3-dev libgmp3-dev libssl-dev libffi-dev build-essential python3-venv')
|
||||
|
||||
Reference in New Issue
Block a user