Skip to content

Commit b958338

Browse files
authored
Merge pull request #44 from Normal-OJ/clean-uncommitted-changes
Clean uncommitted changes
2 parents ea9b861 + 29557a2 commit b958338

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

c_cpp_dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# for c_cpp
22

3-
FROM ubuntu:18.04
3+
FROM ubuntu:20.04
44

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

77
# update
88
RUN apt-get update -y
99

1010
# install seccomp
11-
RUN apt-get install seccomp -y
11+
RUN apt-get install libseccomp-dev -y
1212

1313
# install g++
14-
RUN apt-get install g++ -y
14+
RUN apt-get install g++ gcc -y
1515

1616
# sandbox user with uid:1450
1717
RUN useradd sandbox -u 1450

dispatcher/testdata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def ensure_testdata(problem_id: int):
9898
client = get_redis_client()
9999
key = f'problem-{problem_id}-checksum'
100100
lock_key = f'{key}-lock'
101-
with client.lock(lock_key, timeout=15):
101+
with client.lock(lock_key, timeout=60):
102102
curr_checksum = client.get(key)
103103
if curr_checksum is not None:
104104
curr_checksum = curr_checksum.decode()

0 commit comments

Comments
 (0)