mirror of
https://github.com/MeiK2333/river.git
synced 2025-09-26 22:49:11 +08:00
init
This commit is contained in:
parent
0a3ea0bb2a
commit
d667248050
2
.cargo/bin/cargo
Executable file
2
.cargo/bin/cargo
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
$(which cargo) ${@:1}
|
2
.cargo/bin/cargo-clippy
Executable file
2
.cargo/bin/cargo-clippy
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
$(which cargo-clippy) ${@:1}
|
2
.cargo/bin/cargo-fmt
Executable file
2
.cargo/bin/cargo-fmt
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
$(which cargo-fmt) ${@:1}
|
2
.cargo/bin/cargo-miri
Executable file
2
.cargo/bin/cargo-miri
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
$(which cargo-miri) ${@:1}
|
2
.cargo/bin/cargo-ndk
Executable file
2
.cargo/bin/cargo-ndk
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
$(which cargo-ndk) ${@:1}
|
2
.cargo/bin/clippy-driver
Executable file
2
.cargo/bin/clippy-driver
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
$(which clippy-driver) ${@:1}
|
2
.cargo/bin/rls
Executable file
2
.cargo/bin/rls
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
$(which rls) ${@:1}
|
2
.cargo/bin/rust-gdb
Executable file
2
.cargo/bin/rust-gdb
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
$(which rust-gdb) ${@:1}
|
2
.cargo/bin/rust-lldb
Executable file
2
.cargo/bin/rust-lldb
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
$(which rust-lldb) ${@:1}
|
6
.cargo/bin/rustc
Executable file
6
.cargo/bin/rustc
Executable 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
2
.cargo/bin/rustdoc
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
$(which rustdoc) ${@:1}
|
2
.cargo/bin/rustfmt
Executable file
2
.cargo/bin/rustfmt
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
$(which rustfmt) ${@:1}
|
2
.cargo/bin/rustup
Executable file
2
.cargo/bin/rustup
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
$(which rustup) ${@:1}
|
2
.cargo/config
Normal file
2
.cargo/config
Normal file
@ -0,0 +1,2 @@
|
||||
[build]
|
||||
target = "x86_64-unknown-linux-gnu"
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "newbie-sandbox"]
|
||||
path = newbie-sandbox
|
||||
url = git@github.com:MeiK2333/newbie-sandbox.git
|
11
README.md
11
README.md
@ -3,14 +3,3 @@
|
||||
## 环境要求
|
||||
|
||||
- linux
|
||||
|
||||
## TODO
|
||||
|
||||
- 解决偶发性的 `wait4 failure` 问题
|
||||
- 解决内存占用已经超出限制时,未能结束进程,从而结果表现为 TLE 的问题
|
||||
- 修复 Rust 无法编译的问题
|
||||
- 更新内存测量机制
|
||||
- 修复某些情况下时间占用会偏高的 bug(使用 `cin` 输入的代码会测量出偏高的时间,`scanf` 却没有这个问题)
|
||||
- 添加 debug 界面以定位并解决问题
|
||||
- 修改 `cgroup v1` 为 `cgroup v2`
|
||||
- 研究下是否需要复用沙盒,之前因为沙盒创建与启动的速度很快(1-2ms),就没有考虑复用
|
||||
|
1
newbie-sandbox
Submodule
1
newbie-sandbox
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit ca67e0ca3bf23379a39c2552de1985b8d2d753bb
|
@ -1,2 +0,0 @@
|
||||
rootfs
|
||||
Dockerfile
|
1
runtime/.gitignore
vendored
1
runtime/.gitignore
vendored
@ -1 +0,0 @@
|
||||
rootfs/
|
@ -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/*
|
@ -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
|
@ -1 +0,0 @@
|
||||
1 2
|
@ -1 +0,0 @@
|
||||
3
|
@ -1 +0,0 @@
|
||||
-1 -2
|
@ -1 +0,0 @@
|
||||
-3
|
@ -1 +0,0 @@
|
||||
-1 -2
|
@ -1 +0,0 @@
|
||||
-3
|
@ -1 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 -1 +0,0 @@
|
||||
-1 -2
|
@ -1 +0,0 @@
|
||||
-3
|
@ -1 +0,0 @@
|
||||
-1 -2
|
@ -1 +0,0 @@
|
||||
-3
|
@ -1 +0,0 @@
|
||||
-1 -2
|
@ -1 +0,0 @@
|
||||
-3
|
@ -1 +0,0 @@
|
||||
-1 -2
|
@ -1 +0,0 @@
|
||||
-3
|
@ -1 +0,0 @@
|
||||
-1 -2
|
@ -1 +0,0 @@
|
||||
-3
|
@ -1 +0,0 @@
|
||||
-1 -2
|
@ -1 +0,0 @@
|
||||
-3
|
@ -1 +0,0 @@
|
||||
-1 -2
|
@ -1 +0,0 @@
|
||||
-3
|
@ -1 +0,0 @@
|
||||
-1 -2
|
@ -1 +0,0 @@
|
||||
-3
|
@ -1 +0,0 @@
|
||||
-1 -2
|
@ -1 +0,0 @@
|
||||
-3
|
@ -1 +0,0 @@
|
||||
-1 -2
|
@ -1 +0,0 @@
|
||||
-3
|
@ -1 +0,0 @@
|
||||
-1 -2
|
@ -1 +0,0 @@
|
||||
-3
|
@ -1 +0,0 @@
|
||||
-1 -2
|
@ -1 +0,0 @@
|
||||
-3
|
@ -1 +0,0 @@
|
||||
-1 -2
|
@ -1 +0,0 @@
|
||||
-3
|
@ -1 +0,0 @@
|
||||
-1 -2
|
@ -1 +0,0 @@
|
||||
-3
|
@ -1 +0,0 @@
|
||||
-1 -2
|
@ -1 +0,0 @@
|
||||
-3
|
@ -1 +0,0 @@
|
||||
-1 -2
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user