-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jian Zeng <[email protected]>
- Loading branch information
Showing
19 changed files
with
110 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
FROM ustcmirror/base:alpine | ||
LABEL maintainer="iBug <[email protected]>" | ||
LABEL bind_support=true | ||
RUN apk add --no-cache --update wget perl ca-certificates git python3 py3-requests && \ | ||
RUN <<EOF | ||
set -euo pipefail | ||
apk add --no-cache --update wget perl ca-certificates git python3 py3-requests | ||
mkdir -p /usr/local/lib/tunasync | ||
EOF | ||
ADD tunasync /usr/local/lib/tunasync | ||
ADD sync.sh sync.py / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
FROM alpine:edge | ||
LABEL maintainer="Yifan Gao<git AT yfgao.com>" \ | ||
org.ustcmirror.images=true | ||
RUN apk add --no-cache bash tzdata su-exec && \ | ||
RUN <<EOF | ||
set -euo pipefail | ||
apk add --no-cache bash tzdata su-exec | ||
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime | ||
EOF | ||
ADD ["entry.sh", "savelog", "/usr/local/bin/"] | ||
VOLUME ["/data", "/log"] | ||
CMD ["entry.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
FROM debian:bookworm-slim | ||
LABEL maintainer="Jian Zeng <anonymousknight96 AT gmail.com>" \ | ||
org.ustcmirror.images=true | ||
RUN echo 'Asia/Shanghai' > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata && \ | ||
apt-get update && apt-get install -y wget && \ | ||
wget -O /usr/local/bin/su-exec https://ftp.lug.ustc.edu.cn/misc/su-exec && chmod +x /usr/local/bin/su-exec && \ | ||
echo "592f25c51d0e4c90945ece8c4fa35018d20a1091ac109c98b66eb95deef211c7 /usr/local/bin/su-exec" | sha256sum -c - && \ | ||
apt-get purge -y --auto-remove wget && rm -rf /var/lib/apt/lists/* | ||
RUN --mount=type=cache,target=/var/cache/apt \ | ||
--mount=type=cache,sharing=locked,target=/var/lib/apt <<EOF | ||
|
||
set -euo pipefail | ||
echo 'Asia/Shanghai' > /etc/timezone | ||
dpkg-reconfigure -f noninteractive tzdata | ||
apt-get update && apt-get install -y wget | ||
wget -O /usr/local/bin/su-exec https://ftp.lug.ustc.edu.cn/misc/su-exec | ||
chmod +x /usr/local/bin/su-exec | ||
echo "592f25c51d0e4c90945ece8c4fa35018d20a1091ac109c98b66eb95deef211c7 /usr/local/bin/su-exec" | sha256sum -c - | ||
apt-get purge -y --auto-remove wget | ||
EOF | ||
ADD ["entry.sh", "savelog", "/usr/local/bin/"] | ||
VOLUME ["/data", "/log"] | ||
CMD ["entry.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
FROM ustcmirror/base:alpine | ||
LABEL maintainer="Keyu Tao <[email protected]>" | ||
RUN apk add --no-cache --update wget perl ca-certificates git python3 py3-requests py3-pip py3-lxml && \ | ||
pip3 install pyquery && \ | ||
mkdir -p /usr/local/lib/tunasync | ||
RUN <<EOF | ||
set -euo pipefail | ||
apk add --no-cache --update wget perl ca-certificates git python3 py3-requests py3-pip py3-lxml | ||
pip3 install pyquery | ||
EOF | ||
ADD tunasync /usr/local/lib/tunasync | ||
ADD sync.sh / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
FROM ustcmirror/base:alpine | ||
LABEL maintainer="Shengjing Zhu <[email protected]>" | ||
LABEL bind_support=true | ||
RUN apk add --no-cache zsh curl rsync ca-certificates gawk grep bzip2 coreutils diffutils findutils \ | ||
&& curl -fLo /usr/local/bin/quick-fedora-mirror https://pagure.io/quick-fedora-mirror/raw/master/f/quick-fedora-mirror \ | ||
&& chmod +x /usr/local/bin/quick-fedora-mirror | ||
RUN <<EOF | ||
set -euo pipefail | ||
apk add --no-cache zsh curl rsync ca-certificates gawk grep bzip2 coreutils diffutils findutils | ||
curl -fLo /usr/local/bin/quick-fedora-mirror https://pagure.io/quick-fedora-mirror/raw/master/f/quick-fedora-mirror | ||
chmod +x /usr/local/bin/quick-fedora-mirror | ||
EOF | ||
ADD ["pre-sync.sh", "sync.sh", "/"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
FROM ustcmirror/base:alpine | ||
LABEL maintainer="Yulong Ming <[email protected]>" | ||
LABEL bind_support=true | ||
RUN apk add --no-cache python3 py3-requests py3-yaml && \ | ||
mkdir -p /usr/local/lib/tunasync | ||
RUN apk add --no-cache python3 py3-requests py3-yaml | ||
ADD tunasync /usr/local/lib/tunasync | ||
ADD sync.sh / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
FROM ustcmirror/base:alpine | ||
LABEL maintainer="Keyu Tao <taoky AT lug.ustc.edu.cn>" | ||
RUN apk add --no-cache git curl python3 openssh-client gnupg && \ | ||
curl -fLo /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo && \ | ||
RUN <<EOF | ||
set -euo pipefail | ||
apk add --no-cache git curl python3 openssh-client gnupg | ||
curl -fLo /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo | ||
chmod +x /usr/local/bin/repo | ||
EOF | ||
ADD ["pre-sync.sh", "sync.sh", "/"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
FROM ustcmirror/base:alpine | ||
LABEL maintainer="Yao Wei (魏銘廷) <[email protected]>" | ||
|
||
RUN apk add --no-cache python3 py-setuptools openssl libffi && \ | ||
apk add --no-cache --virtual .build-deps gcc musl-dev python3-dev py3-pip openssl-dev libffi-dev && \ | ||
pip3 install --upgrade pip && \ | ||
RUN <<EOF | ||
set -euo pipefail | ||
apk add --no-cache python3 py-setuptools openssl libffi py3-pip | ||
pip3 install --upgrade pip | ||
pip3 --no-cache-dir install gsutil | ||
|
||
EOF | ||
ADD pre-sync.sh sync.sh / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,14 @@ | |
FROM ustcmirror/base:alpine | ||
|
||
ENV JULIA_DEPOT_PATH="/opt/julia/depot" | ||
RUN apk update && apk add --no-cache curl python3 gnupg py3-pip && \ | ||
pip3 install jill && jill install 1.5 --confirm && \ | ||
ln -s /opt/julias/julia-1.5 /opt/julia && \ | ||
julia -e 'using Pkg; pkg"add [email protected]"' && \ | ||
chmod a+rx -R $JULIA_DEPOT_PATH | ||
RUN <<EOF | ||
apk update | ||
apk add --no-cache curl python3 gnupg py3-pip | ||
pip3 install jill && jill install 1.5 --confirm | ||
ln -s /opt/julias/julia-1.5 /opt/julia | ||
julia -e 'using Pkg; pkg"add [email protected]"' | ||
chmod a+rx -R $JULIA_DEPOT_PATH | ||
EOF | ||
|
||
ADD startup.jl /opt/julia/etc/julia/startup.jl | ||
ADD ["pre-sync.sh", "sync.sh", "/"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
FROM ustcmirror/base:alpine | ||
|
||
RUN \ | ||
RUN <<EOF | ||
set -euo pipefail | ||
# Install Nix. To simplify management we only copy binaries and create | ||
# symlinks, and do no further configuration | ||
wget https://nixos.org/releases/nix/nix-2.3.2/nix-2.3.2-x86_64-linux.tar.xz -O /tmp/nix.tar.xz && \ | ||
mkdir /tmp/nix.unpack && \ | ||
tar xpf /tmp/nix.tar.xz -C /tmp/nix.unpack && \ | ||
mkdir /nix && \ | ||
cp -dpr /tmp/nix.unpack/*/store /nix/store && \ | ||
ln -s /nix/store/*-nix-*/bin/* /usr/local/bin && \ | ||
rm -rf /tmp/nix.tar.xz /tmp/nix.unpack && \ | ||
wget https://nixos.org/releases/nix/nix-2.3.2/nix-2.3.2-x86_64-linux.tar.xz -O /tmp/nix.tar.xz | ||
mkdir /tmp/nix.unpack | ||
tar xpf /tmp/nix.tar.xz -C /tmp/nix.unpack | ||
mkdir /nix | ||
cp -dpr /tmp/nix.unpack/*/store /nix/store | ||
ln -s /nix/store/*-nix-*/bin/* /usr/local/bin | ||
rm -rf /tmp/nix.tar.xz /tmp/nix.unpack | ||
# ca-certificates required by nix | ||
apk add --no-cache ca-certificates python3 py3-requests py3-pip py3-lxml py3-tz && \ | ||
apk add --no-cache ca-certificates python3 py3-requests py3-pip py3-lxml py3-tz | ||
pip3 install pyquery minio==6.0.2 | ||
EOF | ||
|
||
ADD [ "sync.sh", "nix-channels.py", "/" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters