This commit is contained in:
MeiK 2021-04-06 20:41:50 +08:00
parent 0a3ea0bb2a
commit d667248050
245 changed files with 36 additions and 1561492 deletions

2
.cargo/bin/cargo Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
$(which cargo) ${@:1}

2
.cargo/bin/cargo-clippy Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
$(which cargo-clippy) ${@:1}

2
.cargo/bin/cargo-fmt Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
$(which cargo-fmt) ${@:1}

2
.cargo/bin/cargo-miri Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
$(which cargo-miri) ${@:1}

2
.cargo/bin/cargo-ndk Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
$(which cargo-ndk) ${@:1}

2
.cargo/bin/clippy-driver Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
$(which clippy-driver) ${@:1}

2
.cargo/bin/rls Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
$(which rls) ${@:1}

2
.cargo/bin/rust-gdb Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
$(which rust-gdb) ${@:1}

2
.cargo/bin/rust-lldb Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
$(which rust-lldb) ${@:1}

6
.cargo/bin/rustc Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
if [[ " ${@} " =~ " --target " ]]; then
$(which rustc) ${@:1}
else
$(which rustc) ${@:1} --target "x86_64-unknown-linux-gnu"
fi

2
.cargo/bin/rustdoc Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
$(which rustdoc) ${@:1}

2
.cargo/bin/rustfmt Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
$(which rustfmt) ${@:1}

2
.cargo/bin/rustup Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
$(which rustup) ${@:1}

2
.cargo/config Normal file
View File

@ -0,0 +1,2 @@
[build]
target = "x86_64-unknown-linux-gnu"

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "newbie-sandbox"]
path = newbie-sandbox
url = git@github.com:MeiK2333/newbie-sandbox.git

View File

@ -3,14 +3,3 @@
## 环境要求
- linux
## TODO
- 解决偶发性的 `wait4 failure` 问题
- 解决内存占用已经超出限制时,未能结束进程,从而结果表现为 TLE 的问题
- 修复 Rust 无法编译的问题
- 更新内存测量机制
- 修复某些情况下时间占用会偏高的 bug使用 `cin` 输入的代码会测量出偏高的时间,`scanf` 却没有这个问题)
- 添加 debug 界面以定位并解决问题
- 修改 `cgroup v1``cgroup v2`
- 研究下是否需要复用沙盒之前因为沙盒创建与启动的速度很快1-2ms就没有考虑复用

1
newbie-sandbox Submodule

@ -0,0 +1 @@
Subproject commit ca67e0ca3bf23379a39c2552de1985b8d2d753bb

View File

@ -1,2 +0,0 @@
rootfs
Dockerfile

1
runtime/.gitignore vendored
View File

@ -1 +0,0 @@
rootfs/

View File

@ -1,38 +0,0 @@
FROM ubuntu:focal
ENV LANG C.UTF-8
RUN apt-get update -y
# install gcc g++
RUN apt-get install -y gcc g++
# install python3.8
RUN apt-get install -y software-properties-common && add-apt-repository -y ppa:deadsnakes/ppa && apt-get install -y python3.8 python3-pip
# install rust
RUN apt-get install -y curl && curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN rustup default stable
# install node
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt-get install -y nodejs
# node compiler
COPY plugins /plugins
RUN cd /plugins/node && npm install
# node runtime
COPY node /
RUN cd / && npm install
# install typescript
RUN npm install -g ts-node typescript
# install go
RUN add-apt-repository -y ppa:longsleep/golang-backports && apt-get install -y golang-go
# install openjdk
RUN apt-get install -y default-jdk
RUN rm -rf /var/lib/apt/lists/*

View File

@ -1,10 +0,0 @@
docker build . -t river
docker run --name river river
rm -rf rootfs
docker cp river:/ ./rootfs
docker stop river
docker rm river
chmod -R 755 rootfs
mknod -m 0666 rootfs/dev/null c 1 3

View File

@ -1 +0,0 @@
1 2

View File

@ -1 +0,0 @@
3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
1 -2

View File

@ -1 +0,0 @@
-1

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

View File

@ -1 +0,0 @@
-3

View File

@ -1 +0,0 @@
-1 -2

Some files were not shown because too many files have changed in this diff Show More