add .vimrc for docker

This commit is contained in:
lyon 2022-05-22 02:06:49 +08:00
parent 1d05b82daf
commit 0e6d1cb941
4 changed files with 12 additions and 8 deletions

1
docker/.vimrc Normal file
View File

@ -0,0 +1 @@
: set nu

View File

@ -32,13 +32,14 @@ RUN git clone --branch v1.6.1 https://gitee.com/mirrors/google-benchmark benchma
# Get Rust
# change source of Rust
ADD rust_config /root/.cargo/config
ENV RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static
ENV RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN git config --global --add safe.directory /usr/src/pikascript
RUN git config --global user.email "liang6516@outlook.com"
RUN git config --global user.name "lyon"
@ -61,9 +62,13 @@ RUN apt-get install -y golang
RUN go env -w GO111MODULE=on
RUN go env -w GOPROXY=https://goproxy.cn
RUN git clone https://gitee.com/lyon1998/pikascript root/pikascript
RUN cd /root/pikascript && git pull
ADD rust_config /root/.cargo/config
RUN rustup target add i686-pc-windows-gnu
RUN cd /root/pikascript/tools/pikaCompiler && sh build.sh
ADD .vimrc /root/.vimrc

View File

@ -3,3 +3,7 @@ registry = "https://github.com/rust-lang/crates.io-index"
replace-with = 'ustc'
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"
[source.tuna]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"

View File

@ -1,6 +0,0 @@
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
void pika_binder(void);