diff --git a/.gitignore b/.gitignore index 69b6f20..f6fb660 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ install_manifest.txt compile_commands.json CTestTestfile.cmake _deps +.history # ---> Go # Binaries for programs and plugins diff --git a/12/Dockerfile b/12/Dockerfile new file mode 100644 index 0000000..bd954b0 --- /dev/null +++ b/12/Dockerfile @@ -0,0 +1,13 @@ +FROM node:12-alpine3.15 + +RUN set -eu; \ + sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories; \ + apk add --no-cache tzdata \ + && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ + && echo "Asia/Shanghai" > /etc/timezone \ + && apk del tzdata; \ + npm config set registry https://registry.npm.taobao.org; \ + cp /root/.npmrc /home/node; \ + chown node:node /home/node/.npmrc + +USER node diff --git a/14/Dockerfile b/14/Dockerfile new file mode 100644 index 0000000..41ffee8 --- /dev/null +++ b/14/Dockerfile @@ -0,0 +1,13 @@ +FROM node:14-alpine3.15 + +RUN set -eu; \ + sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories; \ + apk add --no-cache tzdata \ + && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ + && echo "Asia/Shanghai" > /etc/timezone \ + && apk del tzdata; \ + npm config set registry https://registry.npm.taobao.org; \ + cp /root/.npmrc /home/node; \ + chown node:node /home/node/.npmrc + +USER node diff --git a/dev/12/Dockerfile b/dev/12/Dockerfile new file mode 100644 index 0000000..16d6601 --- /dev/null +++ b/dev/12/Dockerfile @@ -0,0 +1,13 @@ +FROM node:12-bullseye-slim + +RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list; \ + sed -i 's|security.debian.org/debian-security|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list; \ + apt-get update; \ + apt-get install -y --no-install-recommends build-essential zlib1g-dev libncurses5-dev \ + libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev gcc g++ \ + libsqlite3-dev wget libbz2-dev coreutils util-linux ca-certificates wget \ + patch dstat vim curl git sudo glibc-source python3 python3-pip python2; \ + apt-get clean; \ + rm -rf /var/lib/apt/lists/*; \ + ln -s /usr/bin/python3 /usr/bin/python + diff --git a/dev/14/Dockerfile b/dev/14/Dockerfile new file mode 100644 index 0000000..40a77c5 --- /dev/null +++ b/dev/14/Dockerfile @@ -0,0 +1,13 @@ +FROM node:14-bullseye-slim + +RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list; \ + sed -i 's|security.debian.org/debian-security|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list; \ + apt-get update; \ + apt-get install -y --no-install-recommends build-essential zlib1g-dev libncurses5-dev \ + libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev gcc g++ \ + libsqlite3-dev wget libbz2-dev coreutils util-linux ca-certificates wget \ + patch dstat vim curl git sudo glibc-source python3 python3-pip python2; \ + apt-get clean; \ + rm -rf /var/lib/apt/lists/*; \ + ln -s /usr/bin/python3 /usr/bin/python + diff --git a/dev/16/Dockerfile b/dev/16/Dockerfile new file mode 100644 index 0000000..b8e5bf2 --- /dev/null +++ b/dev/16/Dockerfile @@ -0,0 +1,13 @@ +FROM node:16-bullseye-slim + +RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list; \ + sed -i 's|security.debian.org/debian-security|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list; \ + apt-get update; \ + apt-get install -y --no-install-recommends build-essential zlib1g-dev libncurses5-dev \ + libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev gcc g++ \ + libsqlite3-dev wget libbz2-dev coreutils util-linux ca-certificates wget \ + patch dstat vim curl git sudo glibc-source python3 python3-pip python2; \ + apt-get clean; \ + rm -rf /var/lib/apt/lists/*; \ + ln -s /usr/bin/python3 /usr/bin/python + diff --git a/dev/Dockerfile b/dev/Dockerfile deleted file mode 100644 index e9e0a9a..0000000 --- a/dev/Dockerfile +++ /dev/null @@ -1,31 +0,0 @@ -FROM ubuntu:22.04 - -RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list; \ - sed -i 's/security.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list; \ - apt-get update; \ - apt-get install -y --no-install-recommends build-essential zlib1g-dev libncurses5-dev \ - libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev gcc g++ \ - libsqlite3-dev wget libbz2-dev coreutils util-linux ca-certificates wget \ - patch dstat vim curl git sudo glibc-source python3 python3-pip python2; \ - apt-get clean; \ - rm -rf /var/lib/apt/lists/*; \ - ln -s /usr/bin/python3 /usr/bin/python - -ADD nvm.tar.gz /home/nvm/.nvm - -RUN useradd -d /home/nvm -s /bin/bash nvm; \ - echo 'nvm ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers; \ - chown nvm:nvm -R "home/nvm/" - -USER nvm - -WORKDIR /home/nvm - -RUN echo 'export NVM_DIR="$HOME/.nvm"' >> "$HOME/.bashrc"; \ - echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> "$HOME/.bashrc"; \ - echo '[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion' >> "$HOME/.bashrc"; \ - bash -c 'source $HOME/.nvm/nvm.sh; \ - nvm install 16; \ - nvm install 14; \ - nvm install 12' - \ No newline at end of file diff --git a/dev/nvm.tar.gz b/dev/nvm.tar.gz deleted file mode 100644 index 5555a20..0000000 Binary files a/dev/nvm.tar.gz and /dev/null differ