Skip to content

Commit

Permalink
Fix Rust after DMOJ/judge-server#888
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyene authored and quantum5 committed Sep 15, 2021
1 parent e502543 commit 7d688b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tier2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ RUN apt-get update && \
mkdir rust && ( \
cd rust && \
curl -sL https://raw.githubusercontent.com/DMOJ/judge/master/dmoj/executors/RUST.py | \
sed '/^CARGO_TOML/,/^'"'''"'/!d;//d' > Cargo.toml && \
sed '/^CARGO_TOML/,/^"""/!d;//d' > Cargo.toml && \
curl -sL https://raw.githubusercontent.com/DMOJ/judge/master/dmoj/executors/RUST.py | \
sed '/^CARGO_LOCK/,/^'"'''"'/!d;//d' > Cargo.lock && \
sed '/^CARGO_LOCK/,/^"""/!d;//d' > Cargo.lock && \
mkdir src && \
curl -sL https://raw.githubusercontent.com/DMOJ/judge/master/dmoj/executors/RUST.py | \
sed '/^HELLO_WORLD_PROGRAM/,/^'"'''"'/!d;//d' > src/main.rs && \
sed '/^HELLO_WORLD_PROGRAM/,/^"""/!d;//d' > src/main.rs && \
chown -R judge: . && \
runuser -u judge /home/judge/.cargo/bin/cargo fetch \
) && \
Expand Down

0 comments on commit 7d688b1

Please sign in to comment.