Skip to content
Merged
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
6 changes: 3 additions & 3 deletions c_cpp_dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# for c_cpp

FROM ubuntu:18.04
FROM ubuntu:20.04

LABEL org.opencontainers.image.authors="Normal-OJ Maintainers <[email protected]>"

# update
RUN apt-get update -y

# install seccomp
RUN apt-get install seccomp -y
RUN apt-get install libseccomp-dev -y

# install g++
RUN apt-get install g++ -y
RUN apt-get install g++ gcc -y

# sandbox user with uid:1450
RUN useradd sandbox -u 1450
Expand Down
2 changes: 1 addition & 1 deletion dispatcher/testdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def ensure_testdata(problem_id: int):
client = get_redis_client()
key = f'problem-{problem_id}-checksum'
lock_key = f'{key}-lock'
with client.lock(lock_key, timeout=15):
with client.lock(lock_key, timeout=60):
curr_checksum = client.get(key)
if curr_checksum is not None:
curr_checksum = curr_checksum.decode()
Expand Down
Loading